Feedback

  • Contents
 

scripter object

The scripter object adds call, chat, conference, queue, and user objects whose methods and properties are useful in blended call center environments:

  • The CallObject class implements methods that interact with call objects. Methods supported by CallObject can dial, transfer, pickup, listen to, record, pause, or pick up calls. This makes it easy to query or set the properties of call objects, such as the CallID, or StateString.

  • The campaign object encapsulates the Name, ID and Status of a Dialer campaign.

  • The ChatObject class manipulates chat objects. Chat objects are very similar to call objects. The source examples for call objects can be adapted for chat objects. The methods and properties supported by scripter.chatObject are listed below. Click on a link for information concerning input parameters and return values.

  • The ConferenceObject class manages conference calls. It allows you to begin a conference call, add calls to the conference, and disconnect parties from the conference. Properties of the ConferenceObject provide notification, handling, and the ability to enumerate objects in the conference.

  • The Queue object connects to queues, and provides access to properties supported by queue objects. An additional queue object, scripter.myQueue is functionally equivalent to the Queue class, except that the current user's queue is preattached to the object. (scripter.queue can connect to any queue).

  • The User object obtains information about a specific CIC user, such as a list of user, station, line, and workgroup queues that the user can view and modify, the user's status, logged in state, etc.

  • The dialer object encapsulates properties of the agent's session with Dialer and properties such as which campaigns the agent is active in.

Methods

scripter.createCallObject

Creates a new CallObject.

scripter.createChatObject

Creates a new ChatObject.

scripter.createConferenceObject

Creates a new ConferenceObject.

scripter.createQueue

Creates a new Queue object.

scripter.createUser

Creates a new User object.

scripter.trace

Generates a trace log entry to aid in script debugging.

Properties

scripter.breakStatus

Returns the agent's break status (On Break, Break Pending, Not on Break).

scripter.callObject

Provides access to a static CallObject. It returns the current active call.

scripter.chatObject

Provides access to a static ChatObject. It returns the currently active chat object.

scripter.conferenceObject

Provides access to a static ConferenceObject.

scripter.myQueue

Provides access to a static Queue object preconnected to the logged-in agent's queue.

scripter.myUser

Provides access to a static User object referring to the logged-in agent.

scripter.notifierName

Returns the server name of the notifier the agent is connected to.

scripter.queue

Provides access to a static Queue object.

scripter.user

Provides access to a static User object.

scripter.dialer

This dialer object encapsulates properties of the agent's session with Dialer and properties such as which campaigns the agent is active in.

Example

The code snippet below demonstrates how scripter queue and call objects work together.  

scripter.myQueue.objectAddedHandler = ObjectAdded;
function ObjectAdded(ObjType, ObjId) {
    // we only want call objects (type 2)
    if (ObjType == 2) {
        scripter.callObject.id = ObjId;
        var campaign = scripter.callObject.getAttribute("IS_Attr_CampaignID");
        if ((campaign < > "") {

                // move this page to the top                 IS_Action_SelectPage.click();
                // stop listening for object added notifications                 scripter.myQueue.objectAddedHandler = null;
                // pop the data                 location.href = "pop.htm";
            } else {
                // we are not interested in this call                 scripter.callObject.id = -1;             }         }     }