Agent Namespace
Methods
The Agent namespace includes the following methods:
get
getState
getStateList
Signature
|
<static> getStateList() → {Array.<media.State>}
|
Description
|
Gets the list of possible agent states.
|
Returns
|
Array.<media.State>
|
setState
Signature
|
<static> setState(stateOperationName)
|
Description
|
Sets the agent's state.
|
Parameters
|
Name
|
Type
|
Description
|
stateOperationName
|
string
|
An operationName from the agent states list. See State.
|
|
Type Definitions
The agent namespace includes the following object types:
Agent
Description
|
Represents the JSON structure of the agent.
|
Type
|
Object
|
Properties
|
Name
|
Type
|
Description
|
employeeId
|
string
|
The agent's unique identifier used for routing purposes.
|
firstname
|
string
|
The agent's first name.
|
lastname
|
string
|
The agent's last name.
|
username
|
string
|
The agent's username. This is a global unique ID.
|
roles
|
Array.<string>
|
An array of the agent's roles. Possible roles are:
- ROLE_AGENT — mandatory for users of Workspace Web Edition
- ROLE_SUPERVISOR — enables users to perform supervisor operations like monitoring.
- ROLE_ADMIN — provides administrator access to the Genesys Web Services API.
|
|