====== Agent group (queue) login/logout ====== *Function: queueActionCJI(type, usertype, user, orgidentity, list, pwdtype, password, deviceexten, pushevent, callbackFuc) *Description: Agent login to one or several agents group *Parameters: ^Params ^Type ^Description ^ |type|String|1(login) / 2(logout)| |usertype|String|agent / account| |user|String|Agent No. or Username| |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| |pwdtype|String|Use plaintext or md5 password for agent or account| |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)| |callbackFuc|String|callback function| A valid list format example: agentgroupid1,agentgroupid2,......agentgroupidn, *Return Format: {code:code,message:message} *Type of the Return Value:JSON *Return Values: ^Value ^Description ^ |{code:1,message:message}|{code:Successful seating group,message:group id: results of enforcement}{code:1, message:1:success,2:NotChecked}| |{code:2,message:message}|{code:Failed,message:Messages}| |{code:3,message:message}|{code:Failed,message:group id: results of enforcement}{code:3,message: 1:NotChecked,2:NotFoundGroup}| 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