(Update with the copy of version: 8.5.2DRAFT) |
(Update with the copy of version: 8.5.2DRAFT) |
||
Line 6: | Line 6: | ||
* [[InteractionNamespace#getByInteractionId|getByInteractionId]] | * [[InteractionNamespace#getByInteractionId|getByInteractionId]] | ||
* [[InteractionNamespace#getInteractions|getInteractions]] | * [[InteractionNamespace#getInteractions|getInteractions]] | ||
+ | * [[InteractionNamespace#selectCaseByCaseId|selectCaseByCaseId]] | ||
* [[InteractionNamespace#setUserData|setUserData]] | * [[InteractionNamespace#setUserData|setUserData]] | ||
Line 68: | Line 69: | ||
| Array.<[[InteractionNamespace#Interaction|interaction.Interaction]]> | | Array.<[[InteractionNamespace#Interaction|interaction.Interaction]]> | ||
|} | |} | ||
+ | |||
+ | ===selectCaseByCaseId=== | ||
+ | {| | ||
+ | ! Signature | ||
+ | | <static> genesys.wwe.service.interaction.selectCaseByCaseId(caseId, succeeded, failed) | ||
+ | |- | ||
+ | ! Description | ||
+ | | Select the case in the UI by case identifier. If you subscribe to the "interaction" events (genesys.wwe.service.subscribe([ "interaction" ], eventHandler, this);), you will receive the following event: | ||
+ | <source lang=java> | ||
+ | Received interaction event: { | ||
+ | "event": "interaction", | ||
+ | "data": { | ||
+ | "eventType": "CASE_COLLAPSED", | ||
+ | "selectedCaseId": "4401820b-c4e6-4994-69c2-6ae7fdbc4905" | ||
+ | }, | ||
+ | "userAgent": "WWE Server", | ||
+ | "protocolVersion": 2 | ||
+ | } | ||
+ | Received interaction event: { | ||
+ | "event": "interaction", | ||
+ | "data": { | ||
+ | "eventType": "CASE_EXPANDED", | ||
+ | "selectedCaseId": "4401820b-c4e6-4994-69c2-6ae7fdbc4905" | ||
+ | }, | ||
+ | "userAgent": "WWE Server", | ||
+ | "protocolVersion": 2 | ||
+ | } | ||
+ | Received interaction event: { | ||
+ | "event": "interaction", | ||
+ | "data": { | ||
+ | "eventType": "CASE_SELECTED", | ||
+ | "selectedCaseId": "d4187b87-9fe1-4db8-0515-6a91e666e22d" | ||
+ | }, | ||
+ | "userAgent": "WWE Server", | ||
+ | "protocolVersion": 2 | ||
+ | } | ||
+ | </source> | ||
+ | |- | ||
+ | ! Parameters | ||
+ | | | ||
+ | {| | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | caseId | ||
+ | | string | ||
+ | | The unique identifier for the case. | ||
+ | |} | ||
+ | |||
+ | |} | ||
+ | |||
+ | And | ||
===setUserData=== | ===setUserData=== | ||
Line 204: | Line 258: | ||
| string | | string | ||
| The call recording state. Possible values are: STOPPED, RECORDING or PAUSED. This attribute is only on voice interactions. | | The call recording state. Possible values are: STOPPED, RECORDING or PAUSED. This attribute is only on voice interactions. | ||
+ | |- | ||
+ | | isCaseSelected | ||
+ | | boolean | ||
+ | | Is true if the case containing this interaction is selected, otherwise is false. | ||
+ | |- | ||
+ | | isCaseExpanded | ||
+ | | boolean | ||
+ | | Is true if the case containing this interaction is expanded, otherwise is false. | ||
|} | |} | ||
|} | |} | ||
Line 227: | Line 289: | ||
|} | |} | ||
|} | |} | ||
− | |||
− | |||
− | |||
[[Category:V:HTCC:8.5.2]] | [[Category:V:HTCC:8.5.2]] |
Revision as of 17:48, November 30, 2017
Interaction Namespace
Methods
The Interaction namespace includes the following methods:
deleteUserData
Signature | <static> deleteUserData(interactionId, key) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Deletes the user data attached to the interaction. The service-client-api.user-data.write-allowed option might restrict the allowed key/value pairs. | |||||||||
Parameters |
|
getByInteractionId
Signature | <static> getByInteractionId(interactionId) → {interaction.Interaction} | ||||||
---|---|---|---|---|---|---|---|
Description | Gets an interaction by its unique identifier. | ||||||
Parameters |
| ||||||
Returns | interaction.Interaction or null if the interaction doesn't exist. |
getInteractions
Signature | <static> getInteractions() → {Array.<interaction.Interaction>} |
---|---|
Description | Gets all the interactions. |
Returns | Array.<interaction.Interaction> |
selectCaseByCaseId
Signature | <static> genesys.wwe.service.interaction.selectCaseByCaseId(caseId, succeeded, failed) | ||||||
---|---|---|---|---|---|---|---|
Description | Select the case in the UI by case identifier. If you subscribe to the "interaction" events (genesys.wwe.service.subscribe([ "interaction" ], eventHandler, this);), you will receive the following event:
Received interaction event: {
"event": "interaction",
"data": {
"eventType": "CASE_COLLAPSED",
"selectedCaseId": "4401820b-c4e6-4994-69c2-6ae7fdbc4905"
},
"userAgent": "WWE Server",
"protocolVersion": 2
}
Received interaction event: {
"event": "interaction",
"data": {
"eventType": "CASE_EXPANDED",
"selectedCaseId": "4401820b-c4e6-4994-69c2-6ae7fdbc4905"
},
"userAgent": "WWE Server",
"protocolVersion": 2
}
Received interaction event: {
"event": "interaction",
"data": {
"eventType": "CASE_SELECTED",
"selectedCaseId": "d4187b87-9fe1-4db8-0515-6a91e666e22d"
},
"userAgent": "WWE Server",
"protocolVersion": 2
} | ||||||
Parameters |
|
And
setUserData
Signature | <static> setUserData(interactionId, keyValues) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Sets the user data on the live interaction (for voice, this means the interaction is not in the IDLE state). This request overwrites any existing keys on the user data. The service-client-api.user-data.write-allowed option might restrict the allowed key/value pairs. | |||||||||
Parameters |
|
Type Definitions
The Interaction namespace includes the following object types:
Interaction
Description | Represents the JSON structure of an interaction. Attributes specific to voice interactions are: callUuid, direction, callType, ani, dnis and recordingState. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Properties |
|
Party
Description | Represents the JSON structure of a party. | ||||||
---|---|---|---|---|---|---|---|
Type | Object | ||||||
Properties |
|
Comments or questions about this documentation? Contact us for support!