|
|
Welcome Developers!
Library functions for eTalkup web users. You can use this library to create a charming web panel on your website. Enjoy it.
- source: SDK.js
- desc: Copyright © 2008 eTalkup DigiBell
This example shows how to change image based on online status of the operators.
panelSDK.getStatusOfWorkgroup()- function:Get online/offline status of the company
- returns:1:online,0:offline,-1: Company not found
panelSDK.getStatusOfQueue(string queueName)- function:Get online/offline status of a queue (department)
- parameters:The queue name
- returns:1:online,0:offline,-1:queue not found
panelSDK.getStatusOfOperator(int operaterID)- function:Get online/offline status of a operator
- parameters:The OperaterID
- returns:1:online,0:offline,-1:operator not found
panelSDK.getOperatorIDByName(string operatorName)- function:Get an operator ID by name
- parameters:The Operator's Name
- returns:operatorID if succeed; -1:operator name does not exist
panelSDK.getQueueIDByName(string queueName)- function:Get queue ID by name
- parameters:The queue name
- returns:QueueID if succeed; -1:Queue name does not exits
panelSDK.getQueueIDByoperatorID(int operatorID)- function:Get operator's department(queue) ID
- parameters:The operatorID
- returns:QueueID if succeed; -1:operator not found in the queue
panelSDK.startChatWithWorkgroup()- function:Start chat with the company The system will automatically pickup the available operator in the company
- returns:void
panelSDK.startChatWithQueue(string queueName)- function:Start chat with a specific department(queue) of the company. The system will automatically pickup the available operator in the queue
- parameters:The queueName
- returns:0: if succeed; -1: queue not found
panelSDK.startChatWithOperator(int operatorID)- function:Start chat with a specific operator
- parameters:The operatorID
- returns:0: if succeed; -1: operator not found
panelSDK.getQueueArray()- function:Get an array of all the queues of the company
- returns:The queue object array, which is a hash map of the queue id and queue name
panelSDK.getUserArray()- function:Get the array of all the operators of the company
- returns:The operator object array, which is a hash map of the operator id, operator name, and perator queue id
panelSDK.getUserByQueueIDArray()- function:Get the array of all operators in a specific department(queue)
- returns:The operator object array, which is a hash map of the operator id, operator name, and operator queue id
|
|