@vgroup/dialbox 0.2.70 → 0.2.71

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.
@@ -612,13 +612,13 @@ class ExtensionService {
612
612
  const httpOptions = { headers: headers };
613
613
  return this.http.post(environment.apiUrl + '/utilities/ext/ur/hold/participant', payload, httpOptions);
614
614
  }
615
- getAllParticipants(conferenceId) {
615
+ getAllParticipants(conferenceSid) {
616
616
  const headers = new HttpHeaders({
617
617
  'Content-Type': 'application/json',
618
618
  'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
619
619
  });
620
620
  const httpOptions = { headers: headers };
621
- return this.http.get(environment.apiUrl + `/utilities/ext/ur/all/participent/${conferenceId}`, httpOptions);
621
+ return this.http.get(environment.apiUrl + `/utilities/ext/ur/all/participent/${conferenceSid}`, httpOptions);
622
622
  }
623
623
  updateHoldUnhold(payload) {
624
624
  const params = {
@@ -2125,15 +2125,16 @@ class CallProgressComponent {
2125
2125
  yield this.connectToDevice(tokenData.token, callData);
2126
2126
  yield this.pollCallStatus(callAuthId);
2127
2127
  setTimeout(() => __awaiter(this, void 0, void 0, function* () {
2128
+ var _b, _c;
2128
2129
  try {
2129
- const addRes = yield this.addParticipantToCall({
2130
+ this.addRes = yield this.addParticipantToCall({
2130
2131
  from: callData === null || callData === void 0 ? void 0 : callData.from,
2131
2132
  route: "OUTGOING",
2132
2133
  participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
2133
2134
  conferenceId: this.conferenceId
2134
2135
  });
2135
- this.callData = Object.assign(Object.assign({}, this.callData), { participantId: addRes === null || addRes === void 0 ? void 0 : addRes.participantId });
2136
- console.log('Initial participantId:', addRes === null || addRes === void 0 ? void 0 : addRes.participantId);
2136
+ this.callData = Object.assign(Object.assign({}, this.callData), { participantId: (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId });
2137
+ console.log('Initial participantId:', (_c = this.addRes) === null || _c === void 0 ? void 0 : _c.participantId);
2137
2138
  }
2138
2139
  catch (e) {
2139
2140
  console.error('Error adding initial participant:', e);
@@ -2369,8 +2370,10 @@ class CallProgressComponent {
2369
2370
  this.GetContactsList();
2370
2371
  }
2371
2372
  addRemoveParticipant() {
2373
+ var _a;
2374
+ const conferenceSId = (_a = this.addRes) === null || _a === void 0 ? void 0 : _a.conferenceSid;
2372
2375
  this.isAddRemoveParticipant = !this.isAddRemoveParticipant;
2373
- this.getAllParticipants();
2376
+ this.getAllParticipants(conferenceSId);
2374
2377
  }
2375
2378
  callContact(contact) {
2376
2379
  var _a, _b, _c, _d;
@@ -2432,8 +2435,8 @@ class CallProgressComponent {
2432
2435
  }
2433
2436
  });
2434
2437
  }
2435
- getAllParticipants() {
2436
- this.extensionService.getAllParticipants(this.conferenceId).subscribe((res) => {
2438
+ getAllParticipants(conferenceSid) {
2439
+ this.extensionService.getAllParticipants(conferenceSid).subscribe((res) => {
2437
2440
  console.log(res);
2438
2441
  });
2439
2442
  }