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')
const egain = new Egain({
fqdn: 'cceece.dcloud.cisco.com',
username: 'sa',
password: 'C1sco12345'
})
egain.connect()
.then(egain => {
egain.agent.changeAttribute(5002, 'FIRST_NAME', 'Jimothy')
.then(function () {
console.log(`agent 5002 first name changed to 'Jimothy'`)
process.exit(0)
})
.catch(e => {
console.log(e.message)
})
})
.catch(e => {
console.log(e.message)
})
Package Sidebar
Install
Weekly Downloads