====== Get single agent stat in one group of the day ======
* Function:
agentStatisticDayCJI(orgidentity,usertype,user,pwdtype,password,agent_group_id,callbackFuc)
* Description:
Get agent stat of one agent in one agent group(current status, talking duration, inbound answered, outbound answered, total calls, waiting customer number in the group);
* Parameters:
^ 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|
|agent_group_id|String|agent group id, use comma to connect if you have more than one group. 0 means all groups|
|callbackFuc|String|callback function|
* Return Values: JSON
Failed: {"code":2,"message":"BackMsg_01"}
Succeed: {"code":1,"message":{"1":{"agent_status":"idle","total_call_duration":"00:00:00","in_bound_call_answered":"0","out_bound_call_answered":"0","total_calls":6,"waiting_calls":0},"2":{"agent_status":"logout","total_call_duration":"00:00:00","in_bound_call_answered":"0","out_bound_call_answered":"0","total_calls":0,"waiting_calls":0},"4":{"agent_status":"logout","total_call_duration":"00:00:00","in_bound_call_answered":"0","out_bound_call_answered":"0","total_calls":0,"waiting_calls":0}}}
first value in message is agent group id, agent_group_id
^ Value ^ Description ^
|code|code=1 means success, message is json string. Or else it means failed, message is error message|
|agent_status|agent status: logout, idle, ring, busy, pause, acw|
|total_call_duration|call duration, format 00:00:00|
|in_bound_call_answered|inbound answer times|
|out_bound_call_answered|outbound answer times|
|total_calls|total calls|
|waiting_calls|waiting calls in the group|