TP-89230 | softcode sip credentials

This commit is contained in:
varnit goyal
2024-11-04 08:13:54 +05:30
parent c3dc83e8f9
commit 916d8b9aaa

View File

@@ -120,7 +120,6 @@ class AmeyoAdapter implements IAdapter {
}
if(payload?.data?.requestKey === RequestKeys.AMEYO_ON_BREAK) {
debugger;
setAutoStatus(this.sessionId);
this.isAgentAvailable = false;
window.postMessage({ type: 'onAmeyoAvailabiltyChange', data: false }, );
@@ -131,9 +130,6 @@ class AmeyoAdapter implements IAdapter {
if (data?.type === MessagingType.SET_RESPONSE_WITHOUT_CORS) {
this._onListenForCorsBypassResponse(data);
}
if (data?.type === 'setAmeyoAvailabilty') {
window.postMessage({ type: 'onAmeyoAvailabiltyChange', data: true });
}
if(data?.type === MessagingType.ON_AMEYO_CALL_INCOMING) {
this.callbacks.onCallIncoming(data?.data);
this.currentCallMetadata = {...this.currentCallMetadata, ...data?.data}