@vgroup/dialbox 0.4.197 → 0.4.199
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.
|
@@ -3789,7 +3789,7 @@ class DialboxComponent {
|
|
|
3789
3789
|
this.registerDragElement();
|
|
3790
3790
|
}
|
|
3791
3791
|
ngOnChanges(changes) {
|
|
3792
|
-
var _a, _b
|
|
3792
|
+
var _a, _b;
|
|
3793
3793
|
if (changes['incomingCallnotification'].currentValue && this.incomingCallnotification) {
|
|
3794
3794
|
this.isIncomingCallnotification = true;
|
|
3795
3795
|
// let payload = {
|
|
@@ -3807,15 +3807,11 @@ class DialboxComponent {
|
|
|
3807
3807
|
this.extensionService.getUserInformation((_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.participantId).subscribe((resInfo) => {
|
|
3808
3808
|
console.log('uesrInfo', resInfo);
|
|
3809
3809
|
callerInfo = resInfo.c2cInformation;
|
|
3810
|
+
this.incomingCallNotification(callerInfo);
|
|
3810
3811
|
});
|
|
3811
3812
|
}
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
] }, callerInfo);
|
|
3815
|
-
this.incomingCallsList.push(incomingCall);
|
|
3816
|
-
this.notificationCallList.push(incomingCall);
|
|
3817
|
-
if ((_h = this.incomingCallnotification.data.data) === null || _h === void 0 ? void 0 : _h.participantId) {
|
|
3818
|
-
this.isCallInProgress = true;
|
|
3813
|
+
else {
|
|
3814
|
+
this.incomingCallNotification({});
|
|
3819
3815
|
}
|
|
3820
3816
|
}
|
|
3821
3817
|
else if (this.incomingCallnotification.data.content == "Missed Call") {
|
|
@@ -3991,6 +3987,37 @@ class DialboxComponent {
|
|
|
3991
3987
|
console.log(e);
|
|
3992
3988
|
}
|
|
3993
3989
|
}
|
|
3990
|
+
incomingCallNotification(callerInfo) {
|
|
3991
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3992
|
+
let incomingCall = {
|
|
3993
|
+
conferenceId: 'no',
|
|
3994
|
+
isActive: true,
|
|
3995
|
+
isIncomingCall: true,
|
|
3996
|
+
participantId: (_a = this.incomingCallnotification.data.data) === null || _a === void 0 ? void 0 : _a.participantId,
|
|
3997
|
+
participants: [
|
|
3998
|
+
{ direction: "incoming-call", img: 'assets/images/user.jpg', isIncomingCall: true, isHold: false, isConference: false, isAcceptCall: false, dial: true, phone: (_b = this.incomingCallnotification.data.data) === null || _b === void 0 ? void 0 : _b.fromNumber, participantId: (_c = this.incomingCallnotification.data.data) === null || _c === void 0 ? void 0 : _c.participantId, name: (_d = this.incomingCallnotification.data.data) === null || _d === void 0 ? void 0 : _d.fromName, time: '', id: (_e = this.incomingCallnotification.data.data) === null || _e === void 0 ? void 0 : _e.participantId }
|
|
3999
|
+
],
|
|
4000
|
+
};
|
|
4001
|
+
if (callerInfo) {
|
|
4002
|
+
incomingCall.participants[0]['email'] = callerInfo.email;
|
|
4003
|
+
incomingCall.participants[0]['name'] = callerInfo.name;
|
|
4004
|
+
incomingCall.participants[0]['image'] = callerInfo.image;
|
|
4005
|
+
incomingCall.participants[0]['extension'] = callerInfo.extension;
|
|
4006
|
+
incomingCall.participants[0]['userInfoId'] = callerInfo.id;
|
|
4007
|
+
incomingCall.participants[0]['message'] = callerInfo.message;
|
|
4008
|
+
incomingCall.participants[0]['note'] = callerInfo.note;
|
|
4009
|
+
incomingCall.participants[0]['number'] = callerInfo.number;
|
|
4010
|
+
incomingCall.participants[0]['pointName'] = callerInfo.pointName;
|
|
4011
|
+
incomingCall.participants[0]['softphoneTwilioAuthId'] = callerInfo.softphoneTwilioAuthId;
|
|
4012
|
+
incomingCall.participants[0]['sourceName'] = callerInfo.sourceName;
|
|
4013
|
+
incomingCall.participants[0]['subject'] = callerInfo.subject;
|
|
4014
|
+
}
|
|
4015
|
+
this.incomingCallsList.push(incomingCall);
|
|
4016
|
+
this.notificationCallList.push(incomingCall);
|
|
4017
|
+
if ((_f = this.incomingCallnotification.data.data) === null || _f === void 0 ? void 0 : _f.participantId) {
|
|
4018
|
+
this.isCallInProgress = true;
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
3994
4021
|
addNumber(num) {
|
|
3995
4022
|
if (num == '#' || num == '*' || num == '+' || Number.isInteger(num)) {
|
|
3996
4023
|
if (num == '#') {
|