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

Parameter

Description

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

Parameter

Description

id

The call ID.

Returns

Type: Call object.

Syntax

getChatById(id)

Description

Retrieve the chat object by the task id.

Parameters

Parameter

Description

id

The task ID.

Returns

Type: chat object.

Syntax

getEmailById(id)

Description

Retrieve the email object by the task id.

Parameters

Parameter

Description

id

The task ID.

Returns

Type: email object.

Syntax

getGenericTaskById(id)

Description

Retrieve the Generic object by the task id.

Parameters

Parameter

Description

id

The task ID.

Returns

Type: generic object.

Syntax

getLineById(id)

Description

Retrieve the line object by the line ID.

Parameters

Parameter

Description

id

The line ID.

Returns

Type: Line object.

Syntax

openSession(id)

Description

Creates the session and server objects for the PSMC.

Parameters

Parameter

Description

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.