@vgroup/dialbox 0.2.32 → 0.2.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,7 +91,10 @@ const environment = {
91
91
  measurementId: "G-NGXTSV9SH3",
92
92
  vapidKey: "BD6EgcQgbZTjOQfleG3YlEc0_SajB03prqTdDy-qGJkxTxezbq-A_qtuXE1l3yT47o8hnTAbTKBcH15D2AJB2To"
93
93
  },
94
- perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s'
94
+ perspectiveApiKey: 'AIzaSyClf32lvLH4QOy-vOnzLzwSNntKIgapH8s',
95
+ keycloakURL: 'https://test-keycloak.vgroupinc.com/',
96
+ keycloakRealm: 'vgroup-dev',
97
+ keycloakClientId: 'c2c-softphone-app'
95
98
  };
96
99
 
97
100
  class IpAddressService {
@@ -624,6 +627,7 @@ class ExtensionService {
624
627
  // return this.http.post<[]>(environment.apiUrl + '/utilities/ext/ur/generate/conference/token', params, httpOptions);
625
628
  // }
626
629
  getConferenceCallToken(payload) {
630
+ console.log(payload, 'payload');
627
631
  const params = {
628
632
  'Content-Type': 'application/json',
629
633
  'Auth-Key': "Bearer " + localStorage.getItem('ext_token'),
@@ -2149,7 +2153,7 @@ class CallProgressComponent {
2149
2153
  const { id: callAuthId, recordCall } = yield this.getCallAuthId(response);
2150
2154
  this.getUserInformation(callAuthId);
2151
2155
  this.recordCall = recordCall; // Store the recordCall value
2152
- const tokenData = yield this.getConferenceCallToken(callAuthId);
2156
+ const tokenData = yield this.getConferenceCallToken(response.conferenceId);
2153
2157
  yield this.connectToDevice(tokenData.token, callData);
2154
2158
  // Poll the status for 30-45 seconds
2155
2159
  this.pollCallStatus(callAuthId);
@@ -2181,9 +2185,10 @@ class CallProgressComponent {
2181
2185
  };
2182
2186
  });
2183
2187
  }
2184
- getConferenceCallToken(callAuthId) {
2188
+ getConferenceCallToken(conferenceId) {
2185
2189
  return __awaiter(this, void 0, void 0, function* () {
2186
- return yield this.extensionService.getConferenceCallToken({ authId: callAuthId }).toPromise();
2190
+ console.log(conferenceId, 'conferenceId');
2191
+ return yield this.extensionService.getConferenceCallToken({ conferenceId: conferenceId }).toPromise();
2187
2192
  });
2188
2193
  }
2189
2194
  connectToDevice(token, callData) {
@@ -2412,7 +2417,7 @@ class CallProgressComponent {
2412
2417
  const { id: callAuthId, recordCall } = yield this.getCallAuthId(response);
2413
2418
  this.getUserInformation(callAuthId);
2414
2419
  this.recordCall = recordCall;
2415
- const tokenData = yield this.getConferenceCallToken(callAuthId);
2420
+ const tokenData = yield this.getConferenceCallToken(response.conferenceId);
2416
2421
  // Connect to new call
2417
2422
  const options = {
2418
2423
  codecPreferences: ['opus', 'pcmu'],