@vgroup/dialbox 0.1.99 → 0.1.100

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.
@@ -586,7 +586,6 @@ class ExtensionService {
586
586
  const httpOptions = { headers: new HttpHeaders(params) };
587
587
  const api1$ = this.http.post(`${environment.apiUrl}/utilities/ext/ur/initiate/call`, payload, httpOptions);
588
588
  const api2$ = this.http.post(`${environment.apiUrl}/ur/initiate/conference/call`, params1, httpOptions);
589
- // Run both requests in parallel
590
589
  return forkJoin([api1$, api2$]).pipe(catchError(error => throwError(() => error)));
591
590
  }), catchError(error => throwError(() => error)));
592
591
  }));
@@ -1904,6 +1903,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1904
1903
  }] } });
1905
1904
 
1906
1905
  class CallProgressComponent {
1906
+ // contacts: any[] = [
1907
+ // { name: 'Pamela Cox', title: 'Product Designer', img: 'assets/images/user.jpg' },
1908
+ // { name: 'Roger S. Wood', title: 'JavaScript Programmer', img: 'assets/images/user.jpg' },
1909
+ // { name: 'Victor Blackston', title: 'Database Administrator', img: 'assets/images/user.jpg' },
1910
+ // { name: 'Tammy Rios', title: 'Support', img: 'assets/images/user.jpg' },
1911
+ // { name: 'Carlos Henderson', title: 'Software Architect', img: 'assets/images/user.jpg' },
1912
+ // { name: 'Elizabeth Bailey', title: 'HR', img: 'assets/images/user.jpg' }
1913
+ // ];
1907
1914
  constructor(extensionService, cdr, twilioService) {
1908
1915
  this.extensionService = extensionService;
1909
1916
  this.cdr = cdr;
@@ -1933,14 +1940,7 @@ class CallProgressComponent {
1933
1940
  this.showContactsPanel = false;
1934
1941
  this.isConcurrentIncoming = false;
1935
1942
  this.isCallOnHold = false;
1936
- this.contacts = [
1937
- { name: 'Pamela Cox', title: 'Product Designer', img: 'assets/images/user.jpg' },
1938
- { name: 'Roger S. Wood', title: 'JavaScript Programmer', img: 'assets/images/user.jpg' },
1939
- { name: 'Victor Blackston', title: 'Database Administrator', img: 'assets/images/user.jpg' },
1940
- { name: 'Tammy Rios', title: 'Support', img: 'assets/images/user.jpg' },
1941
- { name: 'Carlos Henderson', title: 'Software Architect', img: 'assets/images/user.jpg' },
1942
- { name: 'Elizabeth Bailey', title: 'HR', img: 'assets/images/user.jpg' }
1943
- ];
1943
+ this.contacts = [];
1944
1944
  this.isMinimised = false;
1945
1945
  console.log('Call Progress Component');
1946
1946
  }
@@ -2027,6 +2027,13 @@ class CallProgressComponent {
2027
2027
  // this.isRecording = false;
2028
2028
  // }, 3000);
2029
2029
  }
2030
+ GetContactsList() {
2031
+ const token = localStorage.getItem('ext_token') || '';
2032
+ this.extensionService.readContacts(token).subscribe((res) => {
2033
+ this.contacts = res;
2034
+ console.log(this.contacts, 'contacts');
2035
+ });
2036
+ }
2030
2037
  startCall(callData) {
2031
2038
  return __awaiter(this, void 0, void 0, function* () {
2032
2039
  try {
@@ -2206,6 +2213,7 @@ class CallProgressComponent {
2206
2213
  }
2207
2214
  toggleContactsPanel() {
2208
2215
  this.showContactsPanel = !this.showContactsPanel;
2216
+ this.GetContactsList();
2209
2217
  }
2210
2218
  callContact(contact) {
2211
2219
  }