Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

egain-config

0.10.1 • Public • Published

egain-config

JavaScript library for interfacing with eGain back-end systems. Check test/manual/provision.js for dCloud provisioning code.

Usage

const Egain = require('egain-config')
// create eGain interface object
const egain = new Egain({
  fqdn: 'cceece.dcloud.cisco.com',
  username: 'sa',
  password: 'C1sco12345'
})
 
// connect to egain database
egain.connect()
.then(egain => {
  // then list agents
  egain.agent.changeAttribute(5002, 'FIRST_NAME', 'Jimothy')
  .then(function () {
    console.log(`agent 5002 first name changed to 'Jimothy'`)
    process.exit(0)
  })
  .catch(e => {
    // error changing attribute
    console.log(e.message)
  })
})
.catch(e => {
  // error connecting to egain database
  console.log(e.message)
})

Install

npm i egain-config

DownloadsWeekly Downloads

15

Version

0.10.1

License

UNLICENSED

Unpacked Size

120 kB

Total Files

37

Last publish

Collaborators

  • avatar