TP-55555 | cybertron integration longhorn

This commit is contained in:
varnit goyal
2024-11-06 09:42:58 +05:30
parent e7abd0c38a
commit 49308c1da6
2 changed files with 3 additions and 0 deletions

View File

@@ -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,

View File

@@ -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);
}