diff --git a/release/connect-streams.js b/release/connect-streams.js index 4684433..b32991f 100644 --- a/release/connect-streams.js +++ b/release/connect-streams.js @@ -149,43 +149,6 @@ connect.core.initCCP(container, ccpParams); }; - var initCCPAppForMR = function (ccpUrl, container, config) { - var defaultParams = { - ccpUrl, - ccpLoadTimeout: 10000, - loginPopup: false, - loginUrl: getConnectUrl(ccpUrl) + '/login', - softphone: { - allowFramedSoftphone: true, - disableRingtone: false, - allowFramedVideoCall: true - }, - getPrimaryRegion: (callback) => { - callback(`${config.instanceConfig.primary.region}`) - .then((regionalConnect) => { - config.setConnectObject(regionalConnect); - connect - .getLog() - .info('promise completed') - .sendInternalLogToServer(); - }) - .catch((err) => { - connect - .getLog() - .error('promise failed with message ' + err.message) - .sendInternalLogToServer(); - }); - }, - region: `${config.instanceConfig.primary.region}`, - standByRegion: { - ccpUrl: `${config.instanceConfig.secondary.url}/ccp-v2/channel-view`, - region: `${config.instanceConfig.secondary.region}` - } - }; - var ccpParams = connect.merge(defaultParams, config.ccpParams); - globalConnect.core.initCCP(container, ccpParams); - }; - hasAnySearchParameter = function (url) { var regex = /[?&]?[^=?&]+=[^=?&]+/g; return regex.test(url); diff --git a/src/agent-app/agent-app.js b/src/agent-app/agent-app.js index d8e0e07..c56bd8e 100644 --- a/src/agent-app/agent-app.js +++ b/src/agent-app/agent-app.js @@ -143,43 +143,6 @@ connect.core.initCCP(container, ccpParams); }; - var initCCPAppForMR = function (ccpUrl, container, config) { - var defaultParams = { - ccpUrl, - ccpLoadTimeout: 10000, - loginPopup: false, - loginUrl: getConnectUrl(ccpUrl) + '/login', - softphone: { - allowFramedSoftphone: true, - disableRingtone: false, - allowFramedVideoCall: true - }, - getPrimaryRegion: (callback) => { - callback(`${config.instanceConfig.primary.region}`) - .then((regionalConnect) => { - config.setConnectObject(regionalConnect); - connect - .getLog() - .info('promise completed') - .sendInternalLogToServer(); - }) - .catch((err) => { - connect - .getLog() - .error('promise failed with message ' + err.message) - .sendInternalLogToServer(); - }); - }, - region: `${config.instanceConfig.primary.region}`, - standByRegion: { - ccpUrl: `${config.instanceConfig.secondary.url}/ccp-v2/channel-view`, - region: `${config.instanceConfig.secondary.region}` - } - }; - var ccpParams = connect.merge(defaultParams, config.ccpParams); - globalConnect.core.initCCP(container, ccpParams); - }; - hasAnySearchParameter = function (url) { var regex = /[?&]?[^=?&]+=[^=?&]+/g; return regex.test(url);