changeAgentState
Event Name  | changeAgentState  | 
|---|---|
Event Description  | When an agent changes its MRD state, state, or logs out from the agent desk, the agent desk requests to agent manager to change its MRD states: 
  | 
Emitter  | Agent Desk  | 
Name  | Description  | Payload Properties  | 
|---|---|---|
agentId  | type: UUID/String Desc: The ID of the agent for whom state needs to be changed  | -  | 
action  | type: String Desc: describe action to be performed. There are two possible values: 
  | -  | 
state  | type: Object, when the action is 'agentState'. type: String, when the action is 'agentMRDState'. Desc: State of the agent and the reason for the state  | 
 
 
 
  | 
mrdId  | This field is required when the "action" is "agentMRDState", In the  Mention the id of this particular MRD which needs to update  | -  | 
agentState
{
  "agentId": "a13a49f4-7ec6-436b-91b0-0fd1be205799",
  "action": "agentState",
  "state": {
    "name": "NOT_READY || READY || LOGOUT",
    "reasonCode": {"id":"ef172d24-7b35-4c6d-ada5-41827034d308","name":"Lunch Break || Out of Office || End of Shift","type":"NOT_READY"} 
  } 
}
agentMRDState
{
  "agentId": "a13a49f4-7ec6-436b-91b0-0fd1be205799",
  "action": "agentMRDState",
  "state": "READY || NOT_READY",
  "mrdId": "6233dde8c004592808ad3c0d"
}