Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:custom_development_guide:apis:javascript:agent_group_checkin_checkout [2016/09/07 02:09] – created liuxlen:custom_development_guide:apis:javascript:agent_group_checkin_checkout [2018/12/27 05:56] (current) donnie
Line 2: Line 2:
  
   *Function:   *Function:
-<code>queueActionCJI(type, usertype, user, orgidentity, list, pwdtype, password, pushevent, callbackFuc)</code>+<code>queueActionCJI(type, usertype, user, orgidentity, list, pwdtype, password, deviceexten, pushevent, callbackFuc)</code>
  
   *Description:   *Description:
-<code>Agent login for one or several agents group </code>+<code>Agent login to one or several agents group </code>
  
   *Parameters:   *Parameters:
Line 14: Line 14:
 |user|String|Agent No. or Username| |user|String|Agent No. or Username|
 |orgidentity|String|The identity string of the team| |orgidentity|String|The identity string of the team|
-|list String|Put a string combine with agentgroup id, end with a comma, if you don’t put the list, it will login/logout from all agent group the agent belongs to|+|list|String|Put a string combine with agentgroup id, end with a comma, if you don’t put the list, it will login/logout from all agent group the agent belongs to|
 |pwdtype|String|Use plaintext or md5 password for agent or account| |pwdtype|String|Use plaintext or md5 password for agent or account|
 |password|String|password| |password|String|password|
 +|deviceexten|String|Do not need to fill in. After checking in, use this extension at your desk|
 |pushevent|String|If need send a agent event,  yes / no(default)| |pushevent|String|If need send a agent event,  yes / no(default)|
 |callbackFuc|String|callback function| |callbackFuc|String|callback function|
  
-A valid list format example: agentgroupid1,agentgroupid2,......agentgroupidn,+<code>A valid list format example: agentgroupid1,agentgroupid2,......agentgroupidn,</code>
  
-Return Format: +  *Return Format: 
-{code:code,message:message} +<code>{code:code,message:message}</code>
-Type of the Return Value:JSON+
  
-Return Values: +  *Type of the Return Value:JSON 
-Value Description +  *Return Values: 
-{code:1,message:message} {code:Succeed,message:Messages+ 
-{code:2,message:message} {code:Failed,message:Messages}+^Value ^Description ^ 
 +|<code>{code:1,message:message}</code>|<code>{code:Successful seating group,message:group id: results of enforcement}{code:1, message:1:success,2:NotChecked}</code>| 
 +|<code>{code:2,message:message}</code>|<code>{code:Failed,message:Messages}</code>
 +|<code>{code:3,message:message}</code>|<code>{code:Failed,message:group id: results of enforcement}{code:3,message: 1:NotChecked,2:NotFoundGroup}</code>
 + 
 +Messages:   
 +  * **success** checkin/check out success 
 +  * **CheckedIn** Already checked in 
 +  * **NotInGroup** Agent doesn't belong to the group 
 +  * **NotFoundGroup** Agent group doesn't exist 
 +  * **NotChecked**  Agent is not checked in
  
  
en/custom_development_guide/apis/javascript/agent_group_checkin_checkout.1473214189.txt.gz · Last modified: (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki