With workspace nodejs api, after sending agent not ready with reason code request. The "DnStateChanged" event received with empty reasons array.
//msg.mode = null & msg.code = 'Lunch'
workspaceClient.voice.notReady(msg.mode, msg.code).then(()=>{return null;}).catch((error) => {
this.logger.error('not ready failed as ', error);
return error;
});
Json received as,
{
"dn":{
"number":"xxxxx",
"switchName":"xxxx",
"agentId":"xxxxx",
"capabilities":[
"ready",
"not-ready",
"dnd-on",
"set-forward",
"start-monitoring"
],
"agentState":"NotReady",
"agentWorkMode":"Unknown",
"reasons":[
]
}
but expected Json is,
"reasons":[
"key":"ReasonCode",
"type":"str",
"value":"Lunch"
]
Why the reasons are empty for us? any clue.
#Unsure/Other------------------------------
Vinoth Ezhilan Manian
Pointel Inc
------------------------------