TP-55555 | cybertron integration longhorn
This commit is contained in:
@@ -82,6 +82,7 @@ function extractUserCallModelUpdatedPush(rawResponse) {
|
||||
}
|
||||
if(jsonData.pushType === pushResponseTypes.UserCCRuntimeUpdatedPush) {
|
||||
const payload= jsonData?.data;
|
||||
debugger;
|
||||
//handle ameyo erroronous condition
|
||||
if (payload?.isOnBreak) {
|
||||
window.postMessage({
|
||||
@@ -93,6 +94,7 @@ function extractUserCallModelUpdatedPush(rawResponse) {
|
||||
}
|
||||
}
|
||||
if(jsonData?.pushType == pushResponseTypes.UserLoggedOffPush) {
|
||||
debugger;
|
||||
const payload = jsonData?.data;
|
||||
window.postMessage({
|
||||
type: MessagingType.ON_AMEYO_FORCED_LOGOUT,
|
||||
|
||||
@@ -155,6 +155,7 @@ class AmeyoAdapter implements IAdapter {
|
||||
this.currentCallMetadata = {...this.currentCallMetadata, ...data?.data}
|
||||
}
|
||||
if(data?.type === MessagingType.ON_AMEYO_AGENT_ON_BREAK) {
|
||||
console.log('on availability changed')
|
||||
this.isAgentAvailable = false;
|
||||
this.callbacks.onAgentAvailabilityChange(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user