Skip to content

Commit

Permalink
Adding ChannelContext to index.d.ts and updating initApp (#883)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Wang <[email protected]>
  • Loading branch information
andywang219 and Andy Wang authored Jun 6, 2024
1 parent 07f1a8e commit acfc386
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 74 deletions.
37 changes: 0 additions & 37 deletions release/connect-streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
37 changes: 0 additions & 37 deletions src/agent-app/agent-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit acfc386

Please sign in to comment.