PSMC Class Methods

The following are the PSMC class methods.

Syntax

closeSession(serverId)

Description

Closes the specified session and server object and deletes them.

Parameters

Field or Control

Definition

serverId

The ID of the REN server cluster for a UQ server, or the server ID for a CTI server.

Returns

None.

Syntax

getCallById(id)

Description

Retrieve the call object by the call ID.

Parameters

Field or Control

Definition

id

The call ID.

Returns

Type: Call object.

Syntax

getChatById(id)

Description

Retrieve the chat object by the task id.

Parameters

Field or Control

Definition

id

The task ID.

Returns

Type: chat object.

Syntax

getEmailById(id)

Description

Retrieve the email object by the task id.

Parameters

Field or Control

Definition

id

The task ID.

Returns

Type: email object.

Syntax

getGenericTaskById(id)

Description

Retrieve the Generic object by the task id.

Parameters

Field or Control

Definition

id

The task ID.

Returns

Type: generic object.

Syntax

getLineById(id)

Description

Retrieve the line object by the line ID.

Parameters

Field or Control

Definition

id

The line ID.

Returns

Type: Line object.

Syntax

openSession(id)

Description

Creates the session and server objects for the PSMC.

Parameters

Field or Control

Definition

id

The ID of the REN server cluster for a UQ server, or the server ID for a CTI server.

Returns

None.

Syntax

start()

Description

Start the JSMCAPI.

Parameters

None.

Returns

None.

Syntax

stop()

Description

Stop the JSMCAPI.

Parameters

None.

Returns

None.