GLOBALS Class Methods
The following are the GLOBALS class methods.
Syntax
initJSMCAPI()
Description
The initialization function of the JSMCAPI. This is the first function should be called by application.
Parameters
None.
Returns
None. Initializes JSMCAPI.
Syntax
isValid(obj)
Description
Returns true if an object is not undefined and not null. Obj can be any JavaScript object or literal. This method is a convenience method to check that an object is both not null and not undefined.
Parameters
Field or Control |
Definition |
---|---|
obj |
Obj can be any JavaScript object or literal. |
Returns
Returns a boolean.
Returns true if an object is not undefined and not null.
Syntax
MCFBroadcast(cluster, queue, task, state, presence, message, securitylevel, importancelevel, senderid, NameValuePairString)
Description
Broadcast a message to any queue, cluster, or only agents.
Parameters
Field or Control |
Definition |
---|---|
cluster |
Cluster Id to which we need to send broadcast message. |
queue |
Denotes the queue Id in the cluster. |
task |
Denotes the task, such as email, chat, voice, or generic. |
state |
Denotes the state, such as LoggedIn and NotLoggedIn. |
presence |
Denotes whether the agent is ready or not ready. |
Message |
Enter the message to broadcast. |
security level |
Security level defined by application developers. |
importance level |
Importance level defined by application developers. |
sender Id |
The sender's user id |
namevaluepairs |
Any extra data formed as name-value pair string. |
Returns
None