agentRealtimeCJI (orgidentity,usertype,user,pwdtype,password,callbackFuc)
Get agent stat(current status, how long current status last, idle time, busy duration)
| Params | Type | Description |
|---|---|---|
| orgidentity | String | team identity string |
| usertype | String | agent / account |
| user | String | agent No. / username |
| pwdtype | String | password type: plaintext/md5 |
| password | String | password |
| callbackFuc | String | callback function |
{code:code,message:message}
| Value | Description |
|---|---|
{code:1,message:message}
| {code:succeed,message:message}
message is current agent stat:
agent name|agent No.|current status|status last duration|busy times|paused times|off times|meeting times|training times|break times|other times|busy duration|paused duration|off duration|meeting duration|training duration|break duration|other duration, ex:
{code:1,message:Joe|8005|busy|85|7|1|1|2|1|1|1|120|10|20|60|10|10|10}
If you didn't see agent name, means last name of the agent is empty
agent state includes: idle, pause, ring, busy, acw, logout.
all duration is seconds
|
{code:2,message:message}
| {code:failed,message:message}
|