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