Difference between revisions of "PEC-Developer/Current/SCAPI/AgentNamespace"
From Genesys Documentation
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2") |
|||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
|ComingSoon=No | |ComingSoon=No | ||
|Platform=GenesysEngage-cloud | |Platform=GenesysEngage-cloud | ||
− | |||
|Section={{Section | |Section={{Section | ||
|sectionHeading=Methods | |sectionHeading=Methods | ||
|anchor=Methods | |anchor=Methods | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
− | |||
|structuredtext=The Agent namespace includes the following methods: | |structuredtext=The Agent namespace includes the following methods: | ||
Line 23: | Line 20: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> get() → | + | {{!}}<static> get(''succeeded, failed'') → {{{Link-SomewhereInThisVersion|manual=SCAPI|topic=AgentNamespace|anchor=Agent|display text=agent.Agent}}} |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
{{!}}Gets the agent's attributes. | {{!}}Gets the agent's attributes. | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} class="wikitable" | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation succeeds. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation fails. | ||
+ | {{!}}} | ||
{{!}}- | {{!}}- | ||
!Returns | !Returns | ||
Line 35: | Line 48: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> getState() → | + | {{!}}<static> getState(''succeeded, failed'') → {{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=media.State}}} |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
{{!}}Gets the agent's state. | {{!}}Gets the agent's state. | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} class="wikitable" | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation succeeds. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation fails. | ||
+ | {{!}}} | ||
{{!}}- | {{!}}- | ||
!Returns | !Returns | ||
Line 47: | Line 76: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> getStateList() → {Array.<{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=media.State}}>} | + | {{!}}<static> getStateList(''succeeded, failed'') → {Array.<{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=media.State}}>} |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
{{!}}Gets the list of possible agent states. | {{!}}Gets the list of possible agent states. | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} class="wikitable" | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation succeeds. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation fails. | ||
+ | {{!}}} | ||
{{!}}- | {{!}}- | ||
!Returns | !Returns | ||
Line 59: | Line 104: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> setState(''stateOperationName'') | + | {{!}}<static> setState(''stateOperationName, succeeded, failed'') |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
Line 74: | Line 119: | ||
{{!}}string | {{!}}string | ||
{{!}}An <tt>operationName</tt> from the agent states list. See {{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=State}}. | {{!}}An <tt>operationName</tt> from the agent states list. See {{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=State}}. | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation succeeds. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation fails. | ||
{{!}}} | {{!}}} | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
Line 83: | Line 134: | ||
|anchor=TypeDefinitions | |anchor=TypeDefinitions | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
− | |||
|structuredtext=The agent namespace includes the following object types: | |structuredtext=The agent namespace includes the following object types: | ||
*{{Link-SomewhereInThisManual|topic=AgentNamespace|anchor=Agent|display text=Agent}} | *{{Link-SomewhereInThisManual|topic=AgentNamespace|anchor=Agent|display text=Agent}} | ||
− | + | {{AnchorDiv|Agent}} | |
===Agent=== | ===Agent=== | ||
{{{!}} | {{{!}} | ||
Line 121: | Line 170: | ||
{{!}}} | {{!}}} | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Latest revision as of 13:44, February 22, 2023
Learn about the Agent namespace methods and type definitions in the Service Client API.
Methods
The Agent namespace includes the following methods:
get
Signature | <static> get(succeeded, failed) → {agent.Agent} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Gets the agent's attributes. | |||||||||
Parameters |
| |||||||||
Returns | agent.Agent |
getState
Signature | <static> getState(succeeded, failed) → {media.State} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Gets the agent's state. | |||||||||
Parameters |
| |||||||||
Returns | media.State |
getStateList
Signature | <static> getStateList(succeeded, failed) → {Array.<media.State>} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Gets the list of possible agent states. | |||||||||
Parameters |
| |||||||||
Returns | Array.<media.State> |
setState
Signature | <static> setState(stateOperationName, succeeded, failed) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Sets the agent's state. | ||||||||||||
Parameters |
|
Type definitions
The agent namespace includes the following object types:
Agent
Description | Represents the JSON structure of the agent. | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||||||||
Properties |
|
Comments or questions about this documentation? Contact us for support!