Comments or questions about this documentation? Contact us for support!
(Automated save: adding PEC_Migrated template.) |
(Update with the copy of version: draft) |
||
Line 1: | Line 1: | ||
= Agent namespace= | = Agent namespace= | ||
− | {{Template:PEC_Migrated}} | + | {{Template:PEC_Migrated|Target=https://all.docs.genesys.com/PEC-Developer/Current/SCAPI}} |
The Agent namespace includes the following methods:
Signature | <static> get() → {agent.Agent} |
---|---|
Description | Gets the agent's attributes. |
Returns | agent.Agent |
Signature | <static> getState() → {media.State} |
---|---|
Description | Gets the agent's state. |
Returns | media.State |
Signature | <static> getStateList() → {Array.<media.State>} |
---|---|
Description | Gets the list of possible agent states. |
Returns | Array.<media.State> |
Signature | <static> setState(stateOperationName) | ||||||
---|---|---|---|---|---|---|---|
Description | Sets the agent's state. | ||||||
Parameters |
|
The agent namespace includes the following object types:
Description | Represents the JSON structure of the agent. | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||||||||
Properties |
|