NTP-19782 | remove console logs
This commit is contained in:
@@ -62,7 +62,6 @@ class AmeyoAdapter implements IAdapter {
|
||||
private metricTransporter: ((metricData: GenericObject)=>void ) | undefined
|
||||
|
||||
constructor(options: AmeyoInitializationOptions) {
|
||||
console.log('AmeyoAdapter constructor');
|
||||
|
||||
if(document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', this._appendTags);
|
||||
@@ -114,7 +113,6 @@ class AmeyoAdapter implements IAdapter {
|
||||
}
|
||||
|
||||
init() {
|
||||
console.log('initializing ameyo adapter');
|
||||
window.addEventListener('message', this._registerMessageListener);
|
||||
this._initializeAmeyo();
|
||||
if(this.isMetricsEnabled) {
|
||||
@@ -126,7 +124,6 @@ class AmeyoAdapter implements IAdapter {
|
||||
|
||||
|
||||
_initializeSipStack = ({accountName, userName, domain = "", password}: SipAccountInfo) => {
|
||||
console.log('initializing sip stack');
|
||||
const domainOnly = domain?.split?.(':')?.[0];
|
||||
const port = domain?.split?.(':')?.[1];
|
||||
//initialize sip stack
|
||||
@@ -144,7 +141,6 @@ class AmeyoAdapter implements IAdapter {
|
||||
}
|
||||
|
||||
_onListenForCorsBypassResponse = (payload: GenericObject) => {
|
||||
console.log('universal sdk', payload);
|
||||
this.metricProcessor.pushCounterMetric({metricName: `ameyo-api-call-count`, metaData: this.metricMetadata, flow: 'api-call-count', subFlow: payload?.data?.requestKey})
|
||||
this.metricProcessor.pushHistogramMetric({metricName: `ameyo-api-latency-${payload?.data?.requestKey}`, metaData: this.metricMetadata, flow:'api-latency', subFlow: payload?.data?.requestKey,value: payload?.data?.time} )
|
||||
|
||||
@@ -164,10 +160,8 @@ class AmeyoAdapter implements IAdapter {
|
||||
maintainHeartbeat(this.sessionId, window?.listenerName || '', 0);
|
||||
}
|
||||
if (payload?.data?.requestKey === RequestKeys.AMEYO_HEARTBEAT) {
|
||||
console.log('heartbeat response', payload?.data?.response);
|
||||
}
|
||||
if (payload?.data?.requestKey === RequestKeys.SIP_ACCOUNT_INFO) {
|
||||
console.log('sip account info', payload?.data?.response);
|
||||
const response = payload?.data?.response;
|
||||
this._initializeSipStack({
|
||||
accountName: response?.accountName,
|
||||
@@ -175,7 +169,6 @@ class AmeyoAdapter implements IAdapter {
|
||||
domain: response?.domain,
|
||||
password: response?.secret
|
||||
});
|
||||
console.log('sip account info', this.sipAccountInfo)
|
||||
this.sipAccountInfo = payload?.data?.response;
|
||||
getCampaignId(this.sessionId);
|
||||
setAutoStatus(this.sessionId);
|
||||
@@ -195,7 +188,6 @@ class AmeyoAdapter implements IAdapter {
|
||||
selectCampaign(this.sessionId, this.userName.toLowerCase(), this.campaignId);
|
||||
}
|
||||
if (payload?.data?.requestKey === RequestKeys.SELECT_CAMPAIGN) {
|
||||
console.log('campaign selected', payload?.data?.response);
|
||||
autoSelectExtension(this.sessionId, this.userName.toLowerCase());
|
||||
this.callbacks.onAdapterReady();
|
||||
this.currentCallState = CALL_STATES.IDLE;
|
||||
@@ -236,7 +228,6 @@ class AmeyoAdapter implements IAdapter {
|
||||
this.currentCallMetadata = {...this.currentCallMetadata, ...data?.data}
|
||||
}
|
||||
if (data?.type === MessagingType.ON_AMEYO_AGENT_ON_BREAK) {
|
||||
console.log('on availability changedd')
|
||||
this.isAgentAvailable = false;
|
||||
this.callbacks.onAgentAvailabilityChange(false);
|
||||
}
|
||||
@@ -293,22 +284,18 @@ class AmeyoAdapter implements IAdapter {
|
||||
}
|
||||
|
||||
acceptCall() {
|
||||
console.log('acceptCall');
|
||||
acceptSipCall();
|
||||
}
|
||||
|
||||
rejectCall() {
|
||||
console.log('rejectCall');
|
||||
sipHangUp();
|
||||
}
|
||||
|
||||
disposeCall() {
|
||||
console.log('disposeCall');
|
||||
ameyoDisposeCall(this.sessionId, this.campaignId, this.currentCallMetadata?.crtObjectId, this.currentCallMetadata?.userCRTObjectId);
|
||||
}
|
||||
|
||||
setOnBreak() {
|
||||
console.log('setAgentOnBreakk');
|
||||
setAgentOnBreak(this.sessionId);
|
||||
}
|
||||
|
||||
@@ -317,12 +304,10 @@ class AmeyoAdapter implements IAdapter {
|
||||
}
|
||||
|
||||
muteCall() {
|
||||
console.log('muteCall');
|
||||
sipMuteCall();
|
||||
}
|
||||
|
||||
unmuteCall() {
|
||||
console.log('unmuteCall');
|
||||
sipUnmuteCall();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user