UNPKG

egain-config

Version:

JavaScript library for interfacing with eGain back-end systems.

28 lines (25 loc) 573 B
// import the library. this library. const Egain = require('../src') // create eGain interface object by specifying the config const egain = new Egain({ host: 'cceece.dcloud.cisco.com', username: 'sa', password: 'C1sco12345', db: 'eGActiveDB' }) describe('alias.isInUse()', function () { it('should', function (done) { egain.alias.isInUse({ emailAddress: 'support_1706@dcloud.cisco.com', aliasName: 'email', departmentId: 1001 }) .then(r => { console.log(r) done() }) .catch(e => { done(e) }) }) })