Skip to content

Commit

Permalink
fix: corected api signature
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarika committed Nov 12, 2024
1 parent 2a661c0 commit a559728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/samples/contact-center/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async function handleAgentStatus(event) {
function setAgentStatus() {
let state = "Available";
if(agentStatus !== 'Available') state = 'Idle';
webex.cc.setAgentStatus({state: state, auxCodeId: auxCodeId, lastStateChangeReason: agentStatus, agentId: agentId}).then((response) => {
webex.cc.setAgentState({state: state, auxCodeIdArray: auxCodeId, lastStateChangeReason: agentStatus, agentId: agentId}).then((response) => {
console.log('Agent status set successfully', response);
}).catch(error => {
console.error('Agent status set failed', error);
Expand Down

0 comments on commit a559728

Please sign in to comment.