This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:custom_development_guide:apis:javascript:pause_unpause [2016/09/07 02:18] liuxl created |
en:custom_development_guide:apis:javascript:pause_unpause [2018/12/29 02:57] (current) donnie |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| *Function: | *Function: | ||
| - | <code>queuePauseCJI(type, usertype, user, orgidentity, pwdtype, password, pause_reason, pushevent, callbackFuc)<code> | + | <code>queuePauseCJI(type, usertype, user, orgidentity, pwdtype, password, pause_reason, pushevent, callbackFuc, dnd)</code> |
| *Description: | *Description: | ||
| Line 16: | Line 16: | ||
| |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| | ||
| - | |pause_reason|String|Put a pause reason when it’s for pause. Use the following string, if you need statistics| | + | |pause_reason|String|Put a pause reason when it’s for pause. Use the following string, if you need statistics training / meeting / leave / lunch / rest / other| |
| - | |training / meeting / leave / lunch / rest / other| | + | |
| |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| | ||
| + | |dnd|String|Fill in (any value),When this item is not empty, the extension synchronizes to suspend or cancel the suspension state| | ||
| + | |||
| *Return Format: | *Return Format: | ||
| - | <code>{code:code,message:message} | + | <code>{code:code,message:message}</code> |
| - | Type of the Return Value:JSON</code> | + | *Type of the Return Value:JSON |
| *Return Values: | *Return Values: | ||
| ^Value ^Description ^ | ^Value ^Description ^ | ||
| - | <code>{code:1,message:message}</code><code>{code:Succeed,message:Messages}</code> | + | |<code>{code:1,message:message}</code>|<code>{code:Succeed,message:Messages}</code>| |
| - | <code>{code:2,message:message}</code><code>{code:Failed,message:Messages}</code> | + | |<code>{code:2,message:message}</code>|<code>{code:Failed,message:Messages}</code>| |