@vgroup/dialbox 0.4.135 → 0.4.136

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.
@@ -1787,7 +1787,7 @@ class CallProgressComponent {
1787
1787
  this.GetContactsList();
1788
1788
  }
1789
1789
  ngOnChanges(changes) {
1790
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
1790
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1791
1791
  if (changes['callData']) {
1792
1792
  if ((_a = changes['callData'].currentValue) === null || _a === void 0 ? void 0 : _a.isIncomingCall) {
1793
1793
  this.incomingCallDiv = true;
@@ -1806,7 +1806,7 @@ class CallProgressComponent {
1806
1806
  // Check if there's an active ongoing call
1807
1807
  this.conferenceId = this.newIncomingCallsList[0].conferenceId;
1808
1808
  this.newIncomingCallsList.forEach((res) => __awaiter(this, void 0, void 0, function* () {
1809
- var _r, _s, _t, _u, _v, _w, _x, _y, _z;
1809
+ var _l, _m, _o, _p, _q, _r, _s, _t, _u;
1810
1810
  if (this.currentCallList.length > 0) {
1811
1811
  let index = this.currentCallList.findIndex((item) => item.id == res.id);
1812
1812
  if (index == -1 && !res.isLeft) {
@@ -1817,26 +1817,26 @@ class CallProgressComponent {
1817
1817
  }
1818
1818
  }
1819
1819
  else if (index != -1 && res.isLeft) {
1820
- if (((_r = this.currentCallList[index]) === null || _r === void 0 ? void 0 : _r.id) == ((_s = this.currentCall) === null || _s === void 0 ? void 0 : _s.id)) {
1820
+ if (((_l = this.currentCallList[index]) === null || _l === void 0 ? void 0 : _l.id) == ((_m = this.currentCall) === null || _m === void 0 ? void 0 : _m.id)) {
1821
1821
  this.currentCallList.splice(index, 1);
1822
1822
  this.currentCall = this.currentCallList.length > 0 ? this.currentCallList[0] : {};
1823
- if (((_t = this.currentCall) === null || _t === void 0 ? void 0 : _t.isHold) && !((_u = this.currentCall) === null || _u === void 0 ? void 0 : _u.isConference)) {
1823
+ if (((_o = this.currentCall) === null || _o === void 0 ? void 0 : _o.isHold) && !((_p = this.currentCall) === null || _p === void 0 ? void 0 : _p.isConference)) {
1824
1824
  yield this.onholdOrUnholdParticipant({
1825
- participantId: [(_v = this.currentCall) === null || _v === void 0 ? void 0 : _v.participantId],
1825
+ participantId: [(_q = this.currentCall) === null || _q === void 0 ? void 0 : _q.participantId],
1826
1826
  conferenceId: this.conferenceId,
1827
1827
  hold: false,
1828
- conference: (_w = this.currentCall) === null || _w === void 0 ? void 0 : _w.isConference
1828
+ conference: (_r = this.currentCall) === null || _r === void 0 ? void 0 : _r.isConference
1829
1829
  });
1830
1830
  // this.currentCallList[0].isHold = false;
1831
1831
  }
1832
- else if (((_x = this.currentCall) === null || _x === void 0 ? void 0 : _x.isHold) && ((_y = this.currentCall) === null || _y === void 0 ? void 0 : _y.isConference)) {
1832
+ else if (((_s = this.currentCall) === null || _s === void 0 ? void 0 : _s.isHold) && ((_t = this.currentCall) === null || _t === void 0 ? void 0 : _t.isConference)) {
1833
1833
  let conferenceCalllist = this.currentCallList.filter((item) => item.isConference);
1834
1834
  if (conferenceCalllist.length > 0) {
1835
1835
  yield this.onholdOrUnholdParticipant({
1836
1836
  participantId: conferenceCalllist.map((item) => item.participantId),
1837
1837
  conferenceId: this.conferenceId,
1838
1838
  hold: false,
1839
- conference: (_z = this.currentCall) === null || _z === void 0 ? void 0 : _z.isConference
1839
+ conference: (_u = this.currentCall) === null || _u === void 0 ? void 0 : _u.isConference
1840
1840
  });
1841
1841
  this.isConferenceCallHold = false;
1842
1842
  }
@@ -1929,32 +1929,30 @@ class CallProgressComponent {
1929
1929
  // console.log(e);
1930
1930
  // }
1931
1931
  }
1932
- if (((_l = changes['conferenceCallInfo']) === null || _l === void 0 ? void 0 : _l.currentValue) && this.conferenceCallInfo && ((_o = (_m = changes['conferenceCallInfo']) === null || _m === void 0 ? void 0 : _m.previousValue) === null || _o === void 0 ? void 0 : _o.conferenceSid) != ((_q = (_p = changes['conferenceCallInfo']) === null || _p === void 0 ? void 0 : _p.currentValue) === null || _q === void 0 ? void 0 : _q.conferenceSid)) {
1933
- this.isConference = true;
1934
- console.log(this.conferenceCallInfo, '222222222222222');
1935
- this.conferenceCallInfo.participants.forEach((item, index) => __awaiter(this, void 0, void 0, function* () {
1936
- var _0;
1937
- // setTimeout(async() => {
1938
- let callInfo = {
1939
- from: (_0 = this.selectedCallerId) === null || _0 === void 0 ? void 0 : _0.number,
1940
- phone: item.direction == "outgoing-call" ? item.to : item.from,
1941
- img: '',
1942
- name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
1943
- to: item.direction == "outgoing-call" ? item.to : item.from,
1944
- direction: item.direction,
1945
- status: ''
1946
- };
1947
- console.log(callInfo, 'callInfo33333333333');
1948
- if (index == 0) {
1949
- this.currentCallList.push(callInfo);
1950
- yield this.startCall(callInfo);
1951
- }
1952
- else {
1953
- yield this.callContact(callInfo);
1954
- }
1955
- // },1000);
1956
- }));
1957
- }
1932
+ // if(changes['conferenceCallInfo']?.currentValue && this.conferenceCallInfo && changes['conferenceCallInfo']?.previousValue?.conferenceSid != changes['conferenceCallInfo']?.currentValue?.conferenceSid) {
1933
+ // this.isConference = true
1934
+ // console.log(this.conferenceCallInfo,'222222222222222')
1935
+ // this.conferenceCallInfo.participants.forEach(async(item: any, index: number) => {
1936
+ // // setTimeout(async() => {
1937
+ // let callInfo = {
1938
+ // from: this.selectedCallerId?.number,
1939
+ // phone: item.direction == "outgoing-call" ? item.to : item.from,
1940
+ // img: '',
1941
+ // name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
1942
+ // to: item.direction == "outgoing-call" ? item.to : item.from,
1943
+ // direction: item.direction,
1944
+ // status: ''
1945
+ // }
1946
+ // console.log(callInfo,'callInfo33333333333')
1947
+ // if(index == 0) {
1948
+ // this.currentCallList.push(callInfo)
1949
+ // await this.startCall(callInfo);
1950
+ // } else {
1951
+ // await this.callContact(callInfo);
1952
+ // }
1953
+ // // },1000);
1954
+ // })
1955
+ // }
1958
1956
  }
1959
1957
  getStatus(res) {
1960
1958
  // const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "initiated", 'ringing', '"connected"'];