(HTCC-29218) |
(HTCC-29218) |
||
Line 8: | Line 8: | ||
* [[InteractionNamespace#selectCaseByCaseId|selectCaseByCaseId]] | * [[InteractionNamespace#selectCaseByCaseId|selectCaseByCaseId]] | ||
* [[InteractionNamespace#setUserData|setUserData]] | * [[InteractionNamespace#setUserData|setUserData]] | ||
+ | * [[InteractionNamespace#markdone|markdone]] | ||
+ | * [[InteractionNamespace#blockMarkdone|blockMarkdone]] | ||
+ | * [[InteractionNamespace#unblockMarkdone|unblockMarkdone]] | ||
===deleteUserData=== | ===deleteUserData=== | ||
Line 147: | Line 150: | ||
|} | |} | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
+ | ===markdone=== | ||
+ | {| | ||
+ | ! Signature | ||
+ | | <static> markdone(''interactionId'') | ||
+ | |- | ||
+ | ! Description | ||
+ | | Mark done the selected interaction. | ||
+ | |- | ||
+ | ! Parameters | ||
+ | | | ||
+ | {| | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | interactionId | ||
+ | | string | ||
+ | | The unique identifier for the interaction. | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===blockMarkdone=== | ||
+ | {| | ||
+ | ! Signature | ||
+ | | <static> blockMarkdone(''interactionId'', ''warningMessage'') | ||
+ | |- | ||
+ | ! Description | ||
+ | | Block the mark done operation on the selected interaction. The "markdone" event must be subscribed to receive the event which informs that there is 1 second to block the markdone operation with this method. | ||
+ | |- | ||
+ | ! Parameters | ||
+ | | | ||
+ | {| | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | interactionId | ||
+ | | string | ||
+ | | The unique interaction identifier of the interaction to prevent the mark done operation. | ||
+ | |- | ||
+ | | warningMessage | ||
+ | | string | ||
+ | | The warning message. | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===unblockMarkdone=== | ||
+ | {| | ||
+ | ! Signature | ||
+ | | <static> unblockMarkdone(''interactionId'') | ||
+ | |- | ||
+ | ! Description | ||
+ | | Unblock the mark done operation on the selected interaction. This operation releases the timer which is waiting a potential "blockMarkdone" operation. | ||
+ | |- | ||
+ | ! Parameters | ||
+ | | | ||
+ | {| | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | interactionId | ||
+ | | string | ||
+ | | The unique interaction identifier of the interaction to prevent the mark done operation. | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | |||
Revision as of 08:39, February 5, 2018
Interaction Namespace
Methods
The Interaction namespace includes the following methods:
- deleteUserData
- getByInteractionId
- getInteractions
- selectCaseByCaseId
- setUserData
- markdone
- blockMarkdone
- unblockMarkdone
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 |
|
markdone
Signature | <static> markdone(interactionId) | ||||||
---|---|---|---|---|---|---|---|
Description | Mark done the selected interaction. | ||||||
Parameters |
|
blockMarkdone
Signature | <static> blockMarkdone(interactionId, warningMessage) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Block the mark done operation on the selected interaction. The "markdone" event must be subscribed to receive the event which informs that there is 1 second to block the markdone operation with this method. | |||||||||
Parameters |
|
unblockMarkdone
Signature | <static> unblockMarkdone(interactionId) | ||||||
---|---|---|---|---|---|---|---|
Description | Unblock the mark done operation on the selected interaction. This operation releases the timer which is waiting a potential "blockMarkdone" operation. | ||||||
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!