cce-unified-config
Advanced tools
Comparing version 0.4.0 to 0.5.0
18
index.js
@@ -32,2 +32,20 @@ const pkg = require('./package.json') | ||
async changeFirstName(id, data) { | ||
const agent = await this.findAgent(id) | ||
// set desk setting refUrl | ||
agent.person.firstName = data | ||
// update agent | ||
await axios.put('https://' + this.fqdn + agent.refURL, agent, {auth: this.auth}) | ||
console.log('agent password changed') | ||
} | ||
async changeLastName(id, data) { | ||
const agent = await this.findAgent(id) | ||
// set desk setting refUrl | ||
agent.person.lastName = data | ||
// update agent | ||
await axios.put('https://' + this.fqdn + agent.refURL, agent, {auth: this.auth}) | ||
console.log('agent password changed') | ||
} | ||
async findAgent(agentId) { | ||
@@ -34,0 +52,0 @@ const params = {q: agentId} |
{ | ||
"name": "cce-unified-config", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "JavaScript library for Cisco Contact Center Enterprise APIs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3092
67