@vgroup/dialbox 0.2.68 → 0.2.70

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.
@@ -611,21 +611,14 @@ class ExtensionService {
611
611
  const httpOptions = { headers: headers };
612
612
  return this.http.post(environment.apiUrl + '/utilities/ext/ur/hold/participant', payload, httpOptions);
613
613
  }
614
- // getAllParticipants(id:any, payload: any) {
615
- // const params = {
616
- // "conferenceId": payload.conferenceId,
617
- // "participants": [
618
- // {
619
- // "participantId": payload.participantId,
620
- // "number": payload.participantNumber,
621
- // "status": payload.status,
622
- // "isOnHold": payload.isOnHold
623
- // }
624
- // ]
625
- // }
626
- // const httpOptions = { headers: new HttpHeaders(params) };
627
- // return this.http.get<[]>(environment.apiUrl + `/get/participants/${id}`, payload, httpOptions);
628
- // }
614
+ getAllParticipants(conferenceId) {
615
+ const headers = new HttpHeaders({
616
+ 'Content-Type': 'application/json',
617
+ 'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
618
+ });
619
+ const httpOptions = { headers: headers };
620
+ return this.http.get(environment.apiUrl + `/utilities/ext/ur/all/participent/${conferenceId}`, httpOptions);
621
+ }
629
622
  updateHoldUnhold(payload) {
630
623
  const params = {
631
624
  "conferenceId": payload.conferenceId,
@@ -2354,7 +2347,7 @@ class CallProgressComponent {
2354
2347
  }
2355
2348
  addRemoveParticipant() {
2356
2349
  this.isAddRemoveParticipant = !this.isAddRemoveParticipant;
2357
- this.GetContactsList();
2350
+ this.getAllParticipants();
2358
2351
  }
2359
2352
  async callContact(contact) {
2360
2353
  console.log('Adding participant:', contact);
@@ -2413,6 +2406,11 @@ class CallProgressComponent {
2413
2406
  this.handleError(error);
2414
2407
  }
2415
2408
  }
2409
+ getAllParticipants() {
2410
+ this.extensionService.getAllParticipants(this.conferenceId).subscribe((res) => {
2411
+ console.log(res);
2412
+ });
2413
+ }
2416
2414
  // acceptConcurrentCall(incomingCall: any) {
2417
2415
  // if (!incomingCall) return;
2418
2416
  // // Put current call on hold instead of disconnecting