Get single agent stat

agentRealtimeCJI (orgidentity,usertype,user,pwdtype,password,callbackFuc)

Get agent stat(current status, how long current status last, idle time, busy duration)

Params Type Description
orgidentityStringteam identity string
usertypeStringagent / account
userStringagent No. / username
pwdtypeStringpassword type: plaintext/md5
passwordStringpassword
callbackFucStringcallback 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}