ahs-cti 0.0.9 → 0.0.10
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.
- package/dist/{caroQualityAuditDashboard-TNS4L2NR.mjs → caroQualityAuditDashboard-PDXTFXYP.mjs} +4 -4
- package/{dist-react/caroQualityAuditDashboard-THYPVOCP.mjs.map → dist/caroQualityAuditDashboard-PDXTFXYP.mjs.map} +1 -1
- package/dist/index.js +133 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +129 -69
- package/dist/index.mjs.map +1 -1
- package/dist/{qualityAuditDashboard-FHRGB77R.mjs → qualityAuditDashboard-L2KJETAG.mjs} +4 -4
- package/dist/{qualityAuditDashboard-FHRGB77R.mjs.map → qualityAuditDashboard-L2KJETAG.mjs.map} +1 -1
- package/dist-react/{caroQualityAuditDashboard-THYPVOCP.mjs → caroQualityAuditDashboard-7MELAQXL.mjs} +4 -4
- package/{dist/caroQualityAuditDashboard-TNS4L2NR.mjs.map → dist-react/caroQualityAuditDashboard-7MELAQXL.mjs.map} +1 -1
- package/dist-react/index.d.ts +1 -2
- package/dist-react/index.js +133 -73
- package/dist-react/index.js.map +1 -1
- package/dist-react/index.mjs +129 -69
- package/dist-react/index.mjs.map +1 -1
- package/dist-react/{qualityAuditDashboard-ZAM7HRNH.mjs → qualityAuditDashboard-APCN5BD5.mjs} +4 -4
- package/dist-react/{qualityAuditDashboard-ZAM7HRNH.mjs.map → qualityAuditDashboard-APCN5BD5.mjs.map} +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -729,7 +729,7 @@ var styles_default = useStyles;
|
|
|
729
729
|
// call-control-sdk/lib/components/dialog.tsx
|
|
730
730
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
731
731
|
var ConferenceTableRow = ({ each, isLineDialing }) => {
|
|
732
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
732
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
733
733
|
const state = useSDKState();
|
|
734
734
|
const theme = useTheme();
|
|
735
735
|
const { showToast } = useToast();
|
|
@@ -746,8 +746,17 @@ var ConferenceTableRow = ({ each, isLineDialing }) => {
|
|
|
746
746
|
(line) => (line == null ? void 0 : line.status) === "DIALING" /* DIALING */ || (line == null ? void 0 : line.status) === "ONCALL" /* ONCALL */
|
|
747
747
|
);
|
|
748
748
|
const holdEnabled = ((each == null ? void 0 : each.status) === "CONFERENCE" /* CONFERENCE */ || (each == null ? void 0 : each.status) === "HOLD" /* HOLD */) && !anyLineDialingOrOnCall && !conferenceCallHoldOrUnHold;
|
|
749
|
-
const
|
|
750
|
-
|
|
749
|
+
const mainCallDisconnected = (_e = state == null ? void 0 : state.conferenceLine) == null ? void 0 : _e.some(
|
|
750
|
+
(line) => (line == null ? void 0 : line.line) === 1 && (line == null ? void 0 : line.status) === "DISCONNECTED" /* DISCONNECTED */
|
|
751
|
+
);
|
|
752
|
+
const anyOtherLineOnHold = (_f = state == null ? void 0 : state.conferenceLine) == null ? void 0 : _f.some(
|
|
753
|
+
(line) => (line == null ? void 0 : line.line) !== (each == null ? void 0 : each.line) && (line == null ? void 0 : line.status) === "HOLD" /* HOLD */
|
|
754
|
+
);
|
|
755
|
+
const mergeEnabled = (each == null ? void 0 : each.status) === "ONCALL" /* ONCALL */ && (!mainCallDisconnected || anyOtherLineOnHold);
|
|
756
|
+
const mainMergeEnabled = !!anyOtherLineOnHold && (each == null ? void 0 : each.status) === "ONCALL" /* ONCALL */;
|
|
757
|
+
const mainCallIconDisabled = conferenceCallStart || (each == null ? void 0 : each.status) === "DIALING" /* DIALING */ || (each == null ? void 0 : each.status) === "ONCALL" /* ONCALL */ || (each == null ? void 0 : each.status) === "CONFERENCE" /* CONFERENCE */ || (each == null ? void 0 : each.status) === "HOLD" /* HOLD */;
|
|
758
|
+
const isSameAsActiveCall = (each == null ? void 0 : each.phone) === ((_g = state.callData) == null ? void 0 : _g.phone_number) && !!(each == null ? void 0 : each.phone);
|
|
759
|
+
const isDuplicateInConference = !!(each == null ? void 0 : each.phone) && (each == null ? void 0 : each.line) !== 1 && ((_h = state.conferenceLine) == null ? void 0 : _h.some(
|
|
751
760
|
(line) => line.line < each.line && line.phone === (each == null ? void 0 : each.phone) && !!line.phone
|
|
752
761
|
));
|
|
753
762
|
const hasPhoneConflict = isDuplicateInConference;
|
|
@@ -795,6 +804,33 @@ var ConferenceTableRow = ({ each, isLineDialing }) => {
|
|
|
795
804
|
setConferenceCallStart(false);
|
|
796
805
|
});
|
|
797
806
|
};
|
|
807
|
+
const onReCallMainCall = (line) => {
|
|
808
|
+
var _a2, _b2, _c2, _d2;
|
|
809
|
+
const target = (line == null ? void 0 : line.phone) || ((_a2 = state.callData) == null ? void 0 : _a2.phone_number) || "";
|
|
810
|
+
if (!target || target.length < 10) {
|
|
811
|
+
showToast("Invalid phone number", "error");
|
|
812
|
+
return;
|
|
813
|
+
}
|
|
814
|
+
setConferenceCallStart(true);
|
|
815
|
+
const payload = {
|
|
816
|
+
action: "EXTERNAL_CONFERENCE",
|
|
817
|
+
operation: "CALL1",
|
|
818
|
+
target,
|
|
819
|
+
line_number: 1,
|
|
820
|
+
userid: (_b2 = state.agentId) != null ? _b2 : "",
|
|
821
|
+
process: (_d2 = (_c2 = state.callData) == null ? void 0 : _c2.process_name) != null ? _d2 : ""
|
|
822
|
+
};
|
|
823
|
+
axios_default.post(END_POINT.CONFERENCE_CALL, payload).then((res) => {
|
|
824
|
+
var _a3;
|
|
825
|
+
showToast((_a3 = res.data) == null ? void 0 : _a3.message, "success");
|
|
826
|
+
}).catch((err) => {
|
|
827
|
+
var _a3, _b3, _c3, _d3;
|
|
828
|
+
const message = ((_b3 = (_a3 = err.response) == null ? void 0 : _a3.data) == null ? void 0 : _b3.detail) || ((_d3 = (_c3 = err.response) == null ? void 0 : _c3.data) == null ? void 0 : _d3.message) || err.message || "An unknown error occurred";
|
|
829
|
+
showToast(message, "error");
|
|
830
|
+
}).finally(() => {
|
|
831
|
+
setConferenceCallStart(false);
|
|
832
|
+
});
|
|
833
|
+
};
|
|
798
834
|
const onMergeConferenceCall = (line, data) => {
|
|
799
835
|
var _a2, _b2, _c2, _d2, _e2;
|
|
800
836
|
const line_used = __spreadValues(__spreadValues({}, line), data);
|
|
@@ -914,7 +950,7 @@ var ConferenceTableRow = ({ each, isLineDialing }) => {
|
|
|
914
950
|
},
|
|
915
951
|
children: /* @__PURE__ */ jsxs(Typography_default, { children: [
|
|
916
952
|
"Line ",
|
|
917
|
-
(
|
|
953
|
+
(_i = each == null ? void 0 : each.line) != null ? _i : "",
|
|
918
954
|
". "
|
|
919
955
|
] })
|
|
920
956
|
}
|
|
@@ -935,7 +971,7 @@ var ConferenceTableRow = ({ each, isLineDialing }) => {
|
|
|
935
971
|
borderRadius: "10px",
|
|
936
972
|
width: "150px"
|
|
937
973
|
},
|
|
938
|
-
children: (
|
|
974
|
+
children: (_j = each == null ? void 0 : each.status) != null ? _j : ""
|
|
939
975
|
}
|
|
940
976
|
)
|
|
941
977
|
}
|
|
@@ -971,7 +1007,7 @@ var ConferenceTableRow = ({ each, isLineDialing }) => {
|
|
|
971
1007
|
"MUTE" /* MUTE */,
|
|
972
1008
|
"DIALING" /* DIALING */,
|
|
973
1009
|
"RINGING" /* RINGING */
|
|
974
|
-
].includes((
|
|
1010
|
+
].includes((_k = each == null ? void 0 : each.status) != null ? _k : "") || isLineDialing,
|
|
975
1011
|
onKeyDown: (e) => {
|
|
976
1012
|
const allowedKeys = [
|
|
977
1013
|
"Backspace",
|
|
@@ -1022,6 +1058,29 @@ var ConferenceTableRow = ({ each, isLineDialing }) => {
|
|
|
1022
1058
|
gap: "10px"
|
|
1023
1059
|
},
|
|
1024
1060
|
children: [
|
|
1061
|
+
(each == null ? void 0 : each.line) === 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1062
|
+
/* @__PURE__ */ jsx(Tooltip_default, { title: "Call main number again", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
1063
|
+
Button_default,
|
|
1064
|
+
{
|
|
1065
|
+
variant: mainCallIconDisabled ? "outlined" : "contained",
|
|
1066
|
+
color: "success",
|
|
1067
|
+
sx: mainCallIconDisabled ? __spreadValues({}, disabled) : __spreadValues({}, enabled),
|
|
1068
|
+
onClick: () => onReCallMainCall(each),
|
|
1069
|
+
disabled: mainCallIconDisabled,
|
|
1070
|
+
children: conferenceCallStart ? /* @__PURE__ */ jsx(CircularProgress_default, { size: "20px", color: "success" }) : /* @__PURE__ */ jsx(Call_default, { sx: { color: mainCallIconDisabled ? "inherit" : "#f3f2f2" } })
|
|
1071
|
+
}
|
|
1072
|
+
) }) }),
|
|
1073
|
+
/* @__PURE__ */ jsx(Tooltip_default, { title: "Merge Call", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
1074
|
+
Button_default,
|
|
1075
|
+
{
|
|
1076
|
+
variant: mainMergeEnabled ? "contained" : "outlined",
|
|
1077
|
+
sx: mainMergeEnabled ? __spreadValues({}, enabled) : __spreadValues({}, disabled),
|
|
1078
|
+
onClick: () => onMergeConferenceCall(each, { isMergeCall: true }),
|
|
1079
|
+
disabled: !mainMergeEnabled,
|
|
1080
|
+
children: conferenceCallMerge ? /* @__PURE__ */ jsx(CircularProgress_default, { size: "20px" }) : /* @__PURE__ */ jsx(CallSplit_default, {})
|
|
1081
|
+
}
|
|
1082
|
+
) }) })
|
|
1083
|
+
] }),
|
|
1025
1084
|
(each == null ? void 0 : each.line) === 1 && /* @__PURE__ */ jsx(Tooltip_default, { title: (each == null ? void 0 : each.status) !== "HOLD" /* HOLD */ ? "Hold" : "Resume", children: /* @__PURE__ */ jsx(
|
|
1026
1085
|
Button_default,
|
|
1027
1086
|
{
|
|
@@ -1122,18 +1181,18 @@ var ConferenceTableRow = ({ each, isLineDialing }) => {
|
|
|
1122
1181
|
}
|
|
1123
1182
|
) }) });
|
|
1124
1183
|
})(),
|
|
1125
|
-
(each == null ? void 0 : each.line) !== 1 && /* @__PURE__ */ jsx(Tooltip_default, { title: "Merge Call", children: /* @__PURE__ */ jsx(
|
|
1184
|
+
(each == null ? void 0 : each.line) !== 1 && /* @__PURE__ */ jsx(Tooltip_default, { title: mergeEnabled ? "Merge Call" : mainCallDisconnected && (each == null ? void 0 : each.status) === "ONCALL" /* ONCALL */ ? "Put another line on hold to merge" : "Merge Call", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
1126
1185
|
Button_default,
|
|
1127
1186
|
{
|
|
1128
|
-
variant:
|
|
1129
|
-
sx:
|
|
1187
|
+
variant: mergeEnabled ? "contained" : "outlined",
|
|
1188
|
+
sx: mergeEnabled ? __spreadValues({}, enabled) : __spreadValues({}, disabled),
|
|
1130
1189
|
onClick: () => {
|
|
1131
1190
|
onMergeConferenceCall(each, { isMergeCall: true });
|
|
1132
1191
|
},
|
|
1133
|
-
disabled:
|
|
1192
|
+
disabled: !mergeEnabled,
|
|
1134
1193
|
children: conferenceCallMerge ? /* @__PURE__ */ jsx(CircularProgress_default, { size: "20px" }) : /* @__PURE__ */ jsx(CallSplit_default, {})
|
|
1135
1194
|
}
|
|
1136
|
-
) }),
|
|
1195
|
+
) }) }),
|
|
1137
1196
|
(each == null ? void 0 : each.line) !== 1 && /* @__PURE__ */ jsx(Tooltip_default, { title: (each == null ? void 0 : each.status) !== "HOLD" /* HOLD */ ? "Hold" : "Resume", children: /* @__PURE__ */ jsx(
|
|
1138
1197
|
Button_default,
|
|
1139
1198
|
{
|
|
@@ -2849,7 +2908,7 @@ var formatDuration = (seconds) => {
|
|
|
2849
2908
|
return `${mins.toString().padStart(2, "0")}:${secs.toString().padStart(2, "0")}`;
|
|
2850
2909
|
};
|
|
2851
2910
|
function CallControls({ onDataChange }) {
|
|
2852
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb
|
|
2911
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb;
|
|
2853
2912
|
const theme = useTheme();
|
|
2854
2913
|
const state = useSDKState();
|
|
2855
2914
|
const { showToast } = useToast();
|
|
@@ -3038,6 +3097,8 @@ function CallControls({ onDataChange }) {
|
|
|
3038
3097
|
};
|
|
3039
3098
|
muteOrUnMute(END_POINT.MUTE_CALL, payload);
|
|
3040
3099
|
};
|
|
3100
|
+
const holdFeatureDisabled = !!((_d = state.sdkConfig) == null ? void 0 : _d.disableHoldButton) || ((_e = state.callData) == null ? void 0 : _e.disable_hold_mute) === 1;
|
|
3101
|
+
const muteFeatureDisabled = !!((_f = state.sdkConfig) == null ? void 0 : _f.disableMuteButton) || ((_g = state.callData) == null ? void 0 : _g.disable_hold_mute) === 1;
|
|
3041
3102
|
const handleEndCall = (data) => {
|
|
3042
3103
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2;
|
|
3043
3104
|
const payload = {
|
|
@@ -3186,7 +3247,7 @@ function CallControls({ onDataChange }) {
|
|
|
3186
3247
|
return () => {
|
|
3187
3248
|
if (holdInterval) clearInterval(holdInterval);
|
|
3188
3249
|
};
|
|
3189
|
-
}, [(
|
|
3250
|
+
}, [(_h = state.callData) == null ? void 0 : _h.hold, (_i = state.callData) == null ? void 0 : _i.status]);
|
|
3190
3251
|
useEffect4(() => {
|
|
3191
3252
|
var _a2, _b2, _c2, _d2;
|
|
3192
3253
|
let muteInterval;
|
|
@@ -3209,7 +3270,7 @@ function CallControls({ onDataChange }) {
|
|
|
3209
3270
|
return () => {
|
|
3210
3271
|
if (muteInterval) clearInterval(muteInterval);
|
|
3211
3272
|
};
|
|
3212
|
-
}, [(
|
|
3273
|
+
}, [(_j = state.callData) == null ? void 0 : _j.mute, (_k = state.callData) == null ? void 0 : _k.status]);
|
|
3213
3274
|
useEffect4(() => {
|
|
3214
3275
|
createAudioElement().then((audio) => {
|
|
3215
3276
|
audioRef.current = audio;
|
|
@@ -3309,6 +3370,7 @@ function CallControls({ onDataChange }) {
|
|
|
3309
3370
|
process_name: data == null ? void 0 : data.process_name,
|
|
3310
3371
|
hold: data == null ? void 0 : data.hold,
|
|
3311
3372
|
mute: data == null ? void 0 : data.mute,
|
|
3373
|
+
disable_hold_mute: data == null ? void 0 : data.disable_hold_mute,
|
|
3312
3374
|
mode: data == null ? void 0 : data.mode,
|
|
3313
3375
|
queue_name: data == null ? void 0 : data.queue_name,
|
|
3314
3376
|
auto_wrapup_time: (_a3 = data == null ? void 0 : data.auto_wrapup_time) != null ? _a3 : null
|
|
@@ -3530,19 +3592,19 @@ function CallControls({ onDataChange }) {
|
|
|
3530
3592
|
}
|
|
3531
3593
|
) });
|
|
3532
3594
|
}
|
|
3533
|
-
const isOnHold = ((
|
|
3534
|
-
const isMuted = ((
|
|
3535
|
-
const isVertical = ((
|
|
3595
|
+
const isOnHold = ((_l = state.callData) == null ? void 0 : _l.hold) === 1 && ((_n = (_m = state.callData) == null ? void 0 : _m.status) == null ? void 0 : _n.toUpperCase()) === "ONCALL" /* ONCALL */;
|
|
3596
|
+
const isMuted = ((_o = state.callData) == null ? void 0 : _o.mute) === 1 && ((_q = (_p = state.callData) == null ? void 0 : _p.status) == null ? void 0 : _q.toUpperCase()) === "ONCALL" /* ONCALL */;
|
|
3597
|
+
const isVertical = ((_r = state.sdkConfig) == null ? void 0 : _r.sdkPosition) === "vertical";
|
|
3536
3598
|
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
3537
3599
|
/* @__PURE__ */ jsx2(Box_default, { children: /* @__PURE__ */ jsx2(Fade_default, { in: true, timeout: 300, children: /* @__PURE__ */ jsx2(
|
|
3538
3600
|
Paper_default,
|
|
3539
3601
|
{
|
|
3540
|
-
ref: ((
|
|
3541
|
-
elevation: isDragging ? 4 : ((
|
|
3602
|
+
ref: ((_s = state.sdkConfig) == null ? void 0 : _s.isDraggable) ? dragRef : null,
|
|
3603
|
+
elevation: isDragging ? 4 : ((_t = state.sdkConfig) == null ? void 0 : _t.isDraggable) ? 1 : 0,
|
|
3542
3604
|
sx: {
|
|
3543
|
-
position: ((
|
|
3544
|
-
left: ((
|
|
3545
|
-
top: ((
|
|
3605
|
+
position: ((_u = state.sdkConfig) == null ? void 0 : _u.isDraggable) ? "fixed" : "relative",
|
|
3606
|
+
left: ((_v = state.sdkConfig) == null ? void 0 : _v.isDraggable) ? position.x : "auto",
|
|
3607
|
+
top: ((_w = state.sdkConfig) == null ? void 0 : _w.isDraggable) ? position.y : "auto",
|
|
3546
3608
|
display: "inline-block",
|
|
3547
3609
|
width: isVertical ? "180px" : "auto",
|
|
3548
3610
|
flexShrink: 0,
|
|
@@ -3550,7 +3612,7 @@ function CallControls({ onDataChange }) {
|
|
|
3550
3612
|
p: 0.5,
|
|
3551
3613
|
borderRadius: 3,
|
|
3552
3614
|
bgcolor: "background.paper",
|
|
3553
|
-
zIndex: ((
|
|
3615
|
+
zIndex: ((_x = state.sdkConfig) == null ? void 0 : _x.isDraggable) ? Number.MAX_SAFE_INTEGER : 0,
|
|
3554
3616
|
transition: theme.transitions.create(["box-shadow", "transform"], {
|
|
3555
3617
|
duration: theme.transitions.duration.short
|
|
3556
3618
|
}),
|
|
@@ -3576,7 +3638,7 @@ function CallControls({ onDataChange }) {
|
|
|
3576
3638
|
margin: isVertical ? "10px 8px 4px 8px" : "0px 10px"
|
|
3577
3639
|
},
|
|
3578
3640
|
children: [
|
|
3579
|
-
((
|
|
3641
|
+
((_y = state.sdkConfig) == null ? void 0 : _y.isDraggable) && /* @__PURE__ */ jsx2(
|
|
3580
3642
|
IconButton_default,
|
|
3581
3643
|
{
|
|
3582
3644
|
component: "div",
|
|
@@ -3589,8 +3651,8 @@ function CallControls({ onDataChange }) {
|
|
|
3589
3651
|
children: /* @__PURE__ */ jsx2(DragIndicator_default, {})
|
|
3590
3652
|
}
|
|
3591
3653
|
),
|
|
3592
|
-
((
|
|
3593
|
-
/* @__PURE__ */ jsx2(Tooltip_default, { title: ((
|
|
3654
|
+
((_z = state.sdkConfig) == null ? void 0 : _z.enableQueueName) && ((_A = state == null ? void 0 : state.callData) == null ? void 0 : _A.queue_name) && ((_B = state == null ? void 0 : state.callData) == null ? void 0 : _B.mode) !== "manual" && /* @__PURE__ */ jsx2(Chip_default, { label: (_C = state == null ? void 0 : state.callData) == null ? void 0 : _C.queue_name }),
|
|
3655
|
+
/* @__PURE__ */ jsx2(Tooltip_default, { title: ((_D = state.sdkConfig) == null ? void 0 : _D.disabledDialButton) ? "Outbound call feature is disabled" : "Dial", children: /* @__PURE__ */ jsx2(Box_default, { component: "span", sx: isVertical ? { display: "block" } : {}, children: isVertical ? /* @__PURE__ */ jsx2(
|
|
3594
3656
|
Button_default,
|
|
3595
3657
|
{
|
|
3596
3658
|
variant: "outlined",
|
|
@@ -3609,7 +3671,7 @@ function CallControls({ onDataChange }) {
|
|
|
3609
3671
|
"BREAK" /* BREAK */,
|
|
3610
3672
|
"ONCALL" /* ONCALL */,
|
|
3611
3673
|
"RINGING" /* RINGING */
|
|
3612
|
-
].includes((
|
|
3674
|
+
].includes((_E = state.callData.status) == null ? void 0 : _E.toUpperCase()) || ((_F = state.sdkConfig) == null ? void 0 : _F.disabledDialButton) || ((_G = state.callData.status) == null ? void 0 : _G.toUpperCase()) === "WRAPUP" /* WRAPUP */ && !!((_H = state.sdkConfig) == null ? void 0 : _H.disableAlternateDialing),
|
|
3613
3675
|
sx: {
|
|
3614
3676
|
justifyContent: "flex-start",
|
|
3615
3677
|
width: "100%",
|
|
@@ -3618,12 +3680,12 @@ function CallControls({ onDataChange }) {
|
|
|
3618
3680
|
"BREAK" /* BREAK */,
|
|
3619
3681
|
"ONCALL" /* ONCALL */,
|
|
3620
3682
|
"RINGING" /* RINGING */
|
|
3621
|
-
].includes((
|
|
3683
|
+
].includes((_I = state.callData.status) == null ? void 0 : _I.toUpperCase()) || ((_J = state.sdkConfig) == null ? void 0 : _J.disabledDialButton) || ((_K = state.callData.status) == null ? void 0 : _K.toUpperCase()) === "WRAPUP" /* WRAPUP */ && !!((_L = state.sdkConfig) == null ? void 0 : _L.disableAlternateDialing) ? "action.selected" : "success.main",
|
|
3622
3684
|
borderColor: [
|
|
3623
3685
|
"BREAK" /* BREAK */,
|
|
3624
3686
|
"ONCALL" /* ONCALL */,
|
|
3625
3687
|
"RINGING" /* RINGING */
|
|
3626
|
-
].includes((
|
|
3688
|
+
].includes((_M = state.callData.status) == null ? void 0 : _M.toUpperCase()) || ((_N = state.sdkConfig) == null ? void 0 : _N.disabledDialButton) || ((_O = state.callData.status) == null ? void 0 : _O.toUpperCase()) === "WRAPUP" /* WRAPUP */ && !!((_P = state.sdkConfig) == null ? void 0 : _P.disableAlternateDialing) ? "action.selected" : "success.main"
|
|
3627
3689
|
},
|
|
3628
3690
|
children: "Dial"
|
|
3629
3691
|
}
|
|
@@ -3645,7 +3707,7 @@ function CallControls({ onDataChange }) {
|
|
|
3645
3707
|
"BREAK" /* BREAK */,
|
|
3646
3708
|
"ONCALL" /* ONCALL */,
|
|
3647
3709
|
"RINGING" /* RINGING */
|
|
3648
|
-
].includes((
|
|
3710
|
+
].includes((_Q = state.callData.status) == null ? void 0 : _Q.toUpperCase()) || ((_R = state.sdkConfig) == null ? void 0 : _R.disabledDialButton) || ((_S = state.callData.status) == null ? void 0 : _S.toUpperCase()) === "WRAPUP" /* WRAPUP */ && !!((_T = state.sdkConfig) == null ? void 0 : _T.disableAlternateDialing),
|
|
3649
3711
|
children: /* @__PURE__ */ jsx2(
|
|
3650
3712
|
WifiCalling3_default,
|
|
3651
3713
|
{
|
|
@@ -3654,7 +3716,7 @@ function CallControls({ onDataChange }) {
|
|
|
3654
3716
|
"BREAK" /* BREAK */,
|
|
3655
3717
|
"ONCALL" /* ONCALL */,
|
|
3656
3718
|
"RINGING" /* RINGING */
|
|
3657
|
-
].includes((
|
|
3719
|
+
].includes((_U = state.callData.status) == null ? void 0 : _U.toUpperCase()) || ((_V = state.sdkConfig) == null ? void 0 : _V.disabledDialButton) || ((_W = state.callData.status) == null ? void 0 : _W.toUpperCase()) === "WRAPUP" /* WRAPUP */ && !!((_X = state.sdkConfig) == null ? void 0 : _X.disableAlternateDialing) ? "action.selected" : "success.main"
|
|
3658
3720
|
}
|
|
3659
3721
|
}
|
|
3660
3722
|
)
|
|
@@ -3673,7 +3735,7 @@ function CallControls({ onDataChange }) {
|
|
|
3673
3735
|
marginRight: "10px"
|
|
3674
3736
|
},
|
|
3675
3737
|
children: [
|
|
3676
|
-
((
|
|
3738
|
+
((_Z = (_Y = state.callData) == null ? void 0 : _Y.status) == null ? void 0 : _Z.toUpperCase()) === "BREAK" /* BREAK */ && ((_$ = (__ = state.callData) == null ? void 0 : __.break_details) == null ? void 0 : _$.value) ? /* @__PURE__ */ jsx2(Tooltip_default, { title: state.callData.break_details.value, children: /* @__PURE__ */ jsx2(
|
|
3677
3739
|
Box_default,
|
|
3678
3740
|
{
|
|
3679
3741
|
sx: {
|
|
@@ -3804,7 +3866,7 @@ function CallControls({ onDataChange }) {
|
|
|
3804
3866
|
width: "60px",
|
|
3805
3867
|
textAlign: "center"
|
|
3806
3868
|
},
|
|
3807
|
-
children: (
|
|
3869
|
+
children: (_ca = (_ba = (_aa = state.callData) == null ? void 0 : _aa.status) == null ? void 0 : _ba.toUpperCase()) != null ? _ca : "N/A"
|
|
3808
3870
|
}
|
|
3809
3871
|
),
|
|
3810
3872
|
onClick: handleOpenAgentStatus,
|
|
@@ -3831,7 +3893,7 @@ function CallControls({ onDataChange }) {
|
|
|
3831
3893
|
Button_default,
|
|
3832
3894
|
{
|
|
3833
3895
|
variant: ["BREAK" /* BREAK */, "MISSED" /* MISSED */].includes(
|
|
3834
|
-
(
|
|
3896
|
+
(_ea = (_da = state.callData) == null ? void 0 : _da.status) == null ? void 0 : _ea.toUpperCase()
|
|
3835
3897
|
) ? "outlined" : "contained",
|
|
3836
3898
|
startIcon: isVertical ? /* @__PURE__ */ jsx2(SupportAgent_default, {}) : void 0,
|
|
3837
3899
|
onClick: (e) => {
|
|
@@ -3845,63 +3907,61 @@ function CallControls({ onDataChange }) {
|
|
|
3845
3907
|
},
|
|
3846
3908
|
classes: {
|
|
3847
3909
|
root: ["BREAK" /* BREAK */, "MISSED" /* MISSED */].includes(
|
|
3848
|
-
(
|
|
3910
|
+
(_ga = (_fa = state.callData) == null ? void 0 : _fa.status) == null ? void 0 : _ga.toUpperCase()
|
|
3849
3911
|
) ? "outlined" : "enabled"
|
|
3850
3912
|
},
|
|
3851
3913
|
sx: __spreadValues(__spreadValues({}, ["BREAK" /* BREAK */, "MISSED" /* MISSED */].includes(
|
|
3852
|
-
(
|
|
3914
|
+
(_ia = (_ha = state.callData) == null ? void 0 : _ha.status) == null ? void 0 : _ia.toUpperCase()
|
|
3853
3915
|
) ? outlined : enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }),
|
|
3854
3916
|
disabled: agentReadyLoading,
|
|
3855
3917
|
children: isVertical ? "Agent Ready" : /* @__PURE__ */ jsx2(SupportAgent_default, {})
|
|
3856
3918
|
}
|
|
3857
3919
|
) }),
|
|
3858
|
-
/* @__PURE__ */ jsx2(Tooltip_default, { title:
|
|
3920
|
+
/* @__PURE__ */ jsx2(Tooltip_default, { title: holdFeatureDisabled ? "Hold feature is disabled" : ((_ja = state.callData) == null ? void 0 : _ja.hold) === 1 ? "Resume" : "Hold", children: /* @__PURE__ */ jsx2(Box_default, { component: "span", sx: isVertical ? { display: "block" } : {}, children: /* @__PURE__ */ jsx2(
|
|
3859
3921
|
Button_default,
|
|
3860
3922
|
{
|
|
3861
|
-
variant: ((
|
|
3862
|
-
startIcon: isVertical ? holdOrUnHoldLoading ? void 0 : ((
|
|
3923
|
+
variant: ((_ka = state.callData) == null ? void 0 : _ka.hold) === 1 && ((_ma = (_la = state.callData) == null ? void 0 : _la.status) == null ? void 0 : _ma.toUpperCase()) === "ONCALL" /* ONCALL */ ? "contained" : "outlined",
|
|
3924
|
+
startIcon: isVertical ? holdOrUnHoldLoading ? void 0 : ((_na = state.callData) == null ? void 0 : _na.hold) === 1 ? /* @__PURE__ */ jsx2(PlayArrow_default, {}) : /* @__PURE__ */ jsx2(Pause_default, {}) : void 0,
|
|
3863
3925
|
onClick: (e) => {
|
|
3864
|
-
var _a2;
|
|
3865
3926
|
e.stopPropagation();
|
|
3866
|
-
if (!
|
|
3927
|
+
if (!holdFeatureDisabled) {
|
|
3867
3928
|
handleHoldToggle();
|
|
3868
3929
|
}
|
|
3869
3930
|
},
|
|
3870
|
-
sx: ((
|
|
3871
|
-
disabled: ((
|
|
3931
|
+
sx: ((_oa = state.callData) == null ? void 0 : _oa.hold) === 1 && ((_qa = (_pa = state.callData) == null ? void 0 : _pa.status) == null ? void 0 : _qa.toUpperCase()) === "ONCALL" /* ONCALL */ ? __spreadValues(__spreadValues({}, enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : ((_sa = (_ra = state.callData) == null ? void 0 : _ra.status) == null ? void 0 : _sa.toUpperCase()) === "ONCALL" /* ONCALL */ && !holdFeatureDisabled ? __spreadValues(__spreadValues({}, outlined), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : __spreadValues(__spreadValues({}, disabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }),
|
|
3932
|
+
disabled: ((_ua = (_ta = state.callData) == null ? void 0 : _ta.status) == null ? void 0 : _ua.toUpperCase()) !== "ONCALL" /* ONCALL */ && ((_va = state.callData) == null ? void 0 : _va.hold) !== 1 || holdOrUnHoldLoading || holdFeatureDisabled,
|
|
3872
3933
|
children: holdOrUnHoldLoading ? /* @__PURE__ */ jsx2(
|
|
3873
3934
|
CircularProgress_default,
|
|
3874
3935
|
{
|
|
3875
3936
|
size: "20px",
|
|
3876
3937
|
sx: { color: theme.palette.primary.main }
|
|
3877
3938
|
}
|
|
3878
|
-
) : isVertical ? ((
|
|
3939
|
+
) : isVertical ? ((_wa = state.callData) == null ? void 0 : _wa.hold) === 1 ? "Resume" : "Hold" : ((_xa = state.callData) == null ? void 0 : _xa.hold) === 1 ? /* @__PURE__ */ jsx2(PlayArrow_default, {}) : /* @__PURE__ */ jsx2(Pause_default, {})
|
|
3879
3940
|
}
|
|
3880
3941
|
) }) }),
|
|
3881
|
-
/* @__PURE__ */ jsx2(Tooltip_default, { title:
|
|
3942
|
+
/* @__PURE__ */ jsx2(Tooltip_default, { title: muteFeatureDisabled ? "Mute feature is disabled" : ((_ya = state.callData) == null ? void 0 : _ya.mute) === 1 ? "Unmute" : "Mute", children: /* @__PURE__ */ jsx2(Box_default, { component: "span", sx: isVertical ? { display: "block" } : {}, children: /* @__PURE__ */ jsx2(
|
|
3882
3943
|
Button_default,
|
|
3883
3944
|
{
|
|
3884
3945
|
variant: ((_za = state.callData) == null ? void 0 : _za.mute) === 1 && ((_Ba = (_Aa = state.callData) == null ? void 0 : _Aa.status) == null ? void 0 : _Ba.toUpperCase()) === "ONCALL" /* ONCALL */ ? "contained" : "outlined",
|
|
3885
3946
|
startIcon: isVertical ? muteOrUnMuteLoading ? void 0 : ((_Ca = state.callData) == null ? void 0 : _Ca.mute) === 1 ? /* @__PURE__ */ jsx2(MicOff_default, {}) : /* @__PURE__ */ jsx2(Mic_default, {}) : void 0,
|
|
3886
3947
|
onClick: (e) => {
|
|
3887
|
-
var _a2;
|
|
3888
3948
|
e.stopPropagation();
|
|
3889
|
-
if (!
|
|
3949
|
+
if (!muteFeatureDisabled) {
|
|
3890
3950
|
handleMuteToggle();
|
|
3891
3951
|
}
|
|
3892
3952
|
},
|
|
3893
|
-
sx:
|
|
3894
|
-
disabled: ((
|
|
3953
|
+
sx: muteFeatureDisabled || ((_Da = state.callData) == null ? void 0 : _Da.hold) === 1 ? __spreadValues(__spreadValues({}, disabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : ((_Ea = state.callData) == null ? void 0 : _Ea.mute) === 1 && ((_Ga = (_Fa = state.callData) == null ? void 0 : _Fa.status) == null ? void 0 : _Ga.toUpperCase()) === "ONCALL" /* ONCALL */ ? __spreadValues(__spreadValues({}, enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : ((_Ia = (_Ha = state.callData) == null ? void 0 : _Ha.status) == null ? void 0 : _Ia.toUpperCase()) === "ONCALL" /* ONCALL */ ? __spreadValues(__spreadValues({}, outlined), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : __spreadValues(__spreadValues({}, disabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }),
|
|
3954
|
+
disabled: ((_Ka = (_Ja = state.callData) == null ? void 0 : _Ja.status) == null ? void 0 : _Ka.toUpperCase()) !== "ONCALL" /* ONCALL */ && ((_La = state.callData) == null ? void 0 : _La.mute) !== 1 || muteOrUnMuteLoading || ((_Ma = state.callData) == null ? void 0 : _Ma.hold) === 1 || muteFeatureDisabled,
|
|
3895
3955
|
children: muteOrUnMuteLoading ? /* @__PURE__ */ jsx2(
|
|
3896
3956
|
CircularProgress_default,
|
|
3897
3957
|
{
|
|
3898
3958
|
size: "20px",
|
|
3899
3959
|
sx: { color: theme.palette.primary.main }
|
|
3900
3960
|
}
|
|
3901
|
-
) : isVertical ? ((
|
|
3961
|
+
) : isVertical ? ((_Na = state.callData) == null ? void 0 : _Na.mute) === 1 ? "Unmute" : "Mute" : ((_Oa = state.callData) == null ? void 0 : _Oa.mute) === 1 ? /* @__PURE__ */ jsx2(MicOff_default, {}) : /* @__PURE__ */ jsx2(Mic_default, {})
|
|
3902
3962
|
}
|
|
3903
3963
|
) }) }),
|
|
3904
|
-
/* @__PURE__ */ jsx2(Tooltip_default, { title: ((
|
|
3964
|
+
/* @__PURE__ */ jsx2(Tooltip_default, { title: ((_Pa = state.sdkConfig) == null ? void 0 : _Pa.disableCallTransferButton) ? "Transfer Call feature is disabled" : "Transfer Call", children: /* @__PURE__ */ jsx2(Box_default, { component: "span", sx: isVertical ? { display: "block" } : {}, children: /* @__PURE__ */ jsx2(
|
|
3905
3965
|
Button_default,
|
|
3906
3966
|
{
|
|
3907
3967
|
variant: state.openCallTransferDialog ? "contained" : "outlined",
|
|
@@ -3913,12 +3973,12 @@ function CallControls({ onDataChange }) {
|
|
|
3913
3973
|
sdkStateManager.setOpenCallTransferDialog(true);
|
|
3914
3974
|
}
|
|
3915
3975
|
},
|
|
3916
|
-
sx: state.openCallTransferDialog ? __spreadValues(__spreadValues({}, enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : ((
|
|
3917
|
-
disabled: ((
|
|
3976
|
+
sx: state.openCallTransferDialog ? __spreadValues(__spreadValues({}, enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : ((_Ra = (_Qa = state.callData) == null ? void 0 : _Qa.status) == null ? void 0 : _Ra.toUpperCase()) === "ONCALL" /* ONCALL */ && !((_Sa = state.sdkConfig) == null ? void 0 : _Sa.disableCallTransferButton) ? __spreadValues(__spreadValues({}, outlined), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : __spreadValues(__spreadValues({}, disabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }),
|
|
3977
|
+
disabled: ((_Ua = (_Ta = state.callData) == null ? void 0 : _Ta.status) == null ? void 0 : _Ua.toUpperCase()) !== "ONCALL" /* ONCALL */ || ((_Va = state.sdkConfig) == null ? void 0 : _Va.disableCallTransferButton),
|
|
3918
3978
|
children: isVertical ? "Transfer" : /* @__PURE__ */ jsx2(TransferWithinAStation_default, {})
|
|
3919
3979
|
}
|
|
3920
3980
|
) }) }),
|
|
3921
|
-
/* @__PURE__ */ jsx2(Tooltip_default, { title: ((
|
|
3981
|
+
/* @__PURE__ */ jsx2(Tooltip_default, { title: ((_Wa = state.sdkConfig) == null ? void 0 : _Wa.disableConferenceButton) ? "Conference Call feature is disabled" : "Conference Call", children: /* @__PURE__ */ jsx2(Box_default, { component: "span", sx: isVertical ? { display: "block" } : {}, children: /* @__PURE__ */ jsx2(
|
|
3922
3982
|
Button_default,
|
|
3923
3983
|
{
|
|
3924
3984
|
variant: state.openConferenceDialog ? "contained" : "outlined",
|
|
@@ -3930,12 +3990,12 @@ function CallControls({ onDataChange }) {
|
|
|
3930
3990
|
sdkStateManager.setOpenConferenceDialog(true);
|
|
3931
3991
|
}
|
|
3932
3992
|
},
|
|
3933
|
-
sx: state.openConferenceDialog ? __spreadValues(__spreadValues({}, enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : ((
|
|
3934
|
-
disabled: ((
|
|
3993
|
+
sx: state.openConferenceDialog ? __spreadValues(__spreadValues({}, enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : ((_Ya = (_Xa = state.callData) == null ? void 0 : _Xa.status) == null ? void 0 : _Ya.toUpperCase()) === "ONCALL" /* ONCALL */ && !((_Za = state.sdkConfig) == null ? void 0 : _Za.disableConferenceButton) ? __spreadValues(__spreadValues({}, outlined), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : __spreadValues(__spreadValues({}, disabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }),
|
|
3994
|
+
disabled: ((_$a = (__a = state.callData) == null ? void 0 : __a.status) == null ? void 0 : _$a.toUpperCase()) !== "ONCALL" /* ONCALL */ || ((_ab = state.sdkConfig) == null ? void 0 : _ab.disableConferenceButton),
|
|
3935
3995
|
children: isVertical ? "Conference" : /* @__PURE__ */ jsx2(Group_default, {})
|
|
3936
3996
|
}
|
|
3937
3997
|
) }) }),
|
|
3938
|
-
((
|
|
3998
|
+
((_bb = state.sdkConfig) == null ? void 0 : _bb.enableSmsServices) && /* @__PURE__ */ jsx2(Tooltip_default, { title: "Send SMS", children: /* @__PURE__ */ jsx2(
|
|
3939
3999
|
Button_default,
|
|
3940
4000
|
{
|
|
3941
4001
|
variant: Boolean(ambulanceAnchorEl) ? "contained" : "outlined",
|
|
@@ -3950,15 +4010,15 @@ function CallControls({ onDataChange }) {
|
|
|
3950
4010
|
}
|
|
3951
4011
|
},
|
|
3952
4012
|
sx: Boolean(ambulanceAnchorEl) ? __spreadValues(__spreadValues({}, enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : ["ONCALL" /* ONCALL */, "WRAPUP" /* WRAPUP */].includes(
|
|
3953
|
-
(
|
|
4013
|
+
(_db = (_cb = state.callData) == null ? void 0 : _cb.status) == null ? void 0 : _db.toUpperCase()
|
|
3954
4014
|
) ? __spreadValues(__spreadValues({}, outlined), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : __spreadValues(__spreadValues({}, disabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }),
|
|
3955
4015
|
disabled: !["ONCALL" /* ONCALL */, "WRAPUP" /* WRAPUP */].includes(
|
|
3956
|
-
(
|
|
4016
|
+
(_fb = (_eb = state.callData) == null ? void 0 : _eb.status) == null ? void 0 : _fb.toUpperCase()
|
|
3957
4017
|
),
|
|
3958
4018
|
children: isVertical ? "Send SMS" : /* @__PURE__ */ jsx2(SmsSharp_default, {})
|
|
3959
4019
|
}
|
|
3960
4020
|
) }),
|
|
3961
|
-
/* @__PURE__ */ jsx2(Tooltip_default, { title: ((
|
|
4021
|
+
/* @__PURE__ */ jsx2(Tooltip_default, { title: ((_gb = state.sdkConfig) == null ? void 0 : _gb.disableEndCallButton) ? "End Call feature is disabled" : "End Call", children: /* @__PURE__ */ jsx2(Box_default, { component: "span", sx: isVertical ? { display: "block" } : {}, children: /* @__PURE__ */ jsx2(
|
|
3962
4022
|
Button_default,
|
|
3963
4023
|
{
|
|
3964
4024
|
variant: [
|
|
@@ -3966,7 +4026,7 @@ function CallControls({ onDataChange }) {
|
|
|
3966
4026
|
"RINGING" /* RINGING */,
|
|
3967
4027
|
"DIALING" /* DIALING */,
|
|
3968
4028
|
"WRAPUP" /* WRAPUP */
|
|
3969
|
-
].includes((
|
|
4029
|
+
].includes((_ib = (_hb = state.callData) == null ? void 0 : _hb.status) == null ? void 0 : _ib.toUpperCase()) && !((_jb = state.sdkConfig) == null ? void 0 : _jb.disableEndCallButton) ? "contained" : "outlined",
|
|
3970
4030
|
startIcon: isVertical && !endCallLoading ? /* @__PURE__ */ jsx2(CallEnd_default, {}) : void 0,
|
|
3971
4031
|
onClick: (e) => {
|
|
3972
4032
|
var _a2, _b2, _c2;
|
|
@@ -3985,7 +4045,7 @@ function CallControls({ onDataChange }) {
|
|
|
3985
4045
|
"RINGING" /* RINGING */,
|
|
3986
4046
|
"DIALING" /* DIALING */,
|
|
3987
4047
|
"WRAPUP" /* WRAPUP */
|
|
3988
|
-
].includes((
|
|
4048
|
+
].includes((_lb = (_kb = state.callData) == null ? void 0 : _kb.status) == null ? void 0 : _lb.toUpperCase()) && !((_mb = state.sdkConfig) == null ? void 0 : _mb.disableEndCallButton) ? __spreadValues(__spreadProps(__spreadValues({}, enabled), {
|
|
3989
4049
|
borderRight: "1px",
|
|
3990
4050
|
backgroundColor: "error.main",
|
|
3991
4051
|
minWidth: "60px !important",
|
|
@@ -4009,11 +4069,11 @@ function CallControls({ onDataChange }) {
|
|
|
4009
4069
|
"RINGING" /* RINGING */,
|
|
4010
4070
|
"DIALING" /* DIALING */,
|
|
4011
4071
|
"WRAPUP" /* WRAPUP */
|
|
4012
|
-
].includes((
|
|
4072
|
+
].includes((_ob = (_nb = state.callData) == null ? void 0 : _nb.status) == null ? void 0 : _ob.toUpperCase()) || endCallLoading || ((_pb = state.sdkConfig) == null ? void 0 : _pb.disableEndCallButton),
|
|
4013
4073
|
children: endCallLoading ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: "20px", color: "error" }) : isVertical ? "End Call" : /* @__PURE__ */ jsx2(CallEnd_default, {})
|
|
4014
4074
|
}
|
|
4015
4075
|
) }) }),
|
|
4016
|
-
!((
|
|
4076
|
+
!((_qb = state.sdkConfig) == null ? void 0 : _qb.disabledMoreOptionsButton) && processList && (processList == null ? void 0 : processList.length) > 1 && /* @__PURE__ */ jsx2(Tooltip_default, { title: "Switch Process", children: /* @__PURE__ */ jsx2(
|
|
4017
4077
|
Button_default,
|
|
4018
4078
|
{
|
|
4019
4079
|
variant: Boolean(moreOptionsAnchorEl) ? "contained" : "outlined",
|
|
@@ -4029,7 +4089,7 @@ function CallControls({ onDataChange }) {
|
|
|
4029
4089
|
},
|
|
4030
4090
|
sx: Boolean(moreOptionsAnchorEl) ? __spreadValues(__spreadValues({}, enabled), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }) : __spreadValues(__spreadValues({}, outlined), isVertical && { justifyContent: "flex-start", width: "100%", px: 2 }),
|
|
4031
4091
|
disabled: !["BREAK" /* BREAK */, "IDLE" /* IDLE */].includes(
|
|
4032
|
-
(
|
|
4092
|
+
(_sb = (_rb = state.callData) == null ? void 0 : _rb.status) == null ? void 0 : _sb.toUpperCase()
|
|
4033
4093
|
),
|
|
4034
4094
|
children: isVertical ? "Switch Process" : /* @__PURE__ */ jsx2(MoreVert_default, {})
|
|
4035
4095
|
}
|
|
@@ -4062,7 +4122,7 @@ function CallControls({ onDataChange }) {
|
|
|
4062
4122
|
transition: theme.transitions.create(["box-shadow", "transform"], {
|
|
4063
4123
|
duration: theme.transitions.duration.short
|
|
4064
4124
|
}),
|
|
4065
|
-
visibility: showIframe && !((
|
|
4125
|
+
visibility: showIframe && !((_tb = state.sdkConfig) == null ? void 0 : _tb.disableSoftPhone) ? "visible" : "hidden",
|
|
4066
4126
|
userSelect: "none"
|
|
4067
4127
|
},
|
|
4068
4128
|
children: [
|
|
@@ -4097,7 +4157,7 @@ function CallControls({ onDataChange }) {
|
|
|
4097
4157
|
/* @__PURE__ */ jsx2(Box_default, { children: /* @__PURE__ */ jsx2(
|
|
4098
4158
|
"iframe",
|
|
4099
4159
|
{
|
|
4100
|
-
src: `${(
|
|
4160
|
+
src: `${(_ub = state.urlConfig) == null ? void 0 : _ub.iframeURL}/static/phone/index.html?user_id=${(_vb = state.urlConfig) == null ? void 0 : _vb.id}&api_url=${(_wb = state.urlConfig) == null ? void 0 : _wb.iframeAPIURL}&token=${(_xb = state.authorization) == null ? void 0 : _xb.accessToken}`,
|
|
4101
4161
|
height: 380,
|
|
4102
4162
|
width: 420,
|
|
4103
4163
|
allow: "camera; microphone; autoplay",
|
|
@@ -4489,8 +4549,8 @@ var SDKPages = {
|
|
|
4489
4549
|
LiveStatus: withGuard(SDK_MENU_CODES.LIVE_STATUS, () => import("./liveStatus-PRDEL7CK.mjs")),
|
|
4490
4550
|
ManagementDashboard: withGuard(SDK_MENU_CODES.MANAGEMENT_DASHBOARD, () => import("./managementDashboard-SZFYULKA.mjs")),
|
|
4491
4551
|
CaroVoiceAI: withGuard(SDK_MENU_CODES.CARO_VOICE_AI, () => import("./caroVoiceAI-OUTAAIFE.mjs")),
|
|
4492
|
-
QualityAuditDashboard: withGuard(SDK_MENU_CODES.MANAGEMENT_DASHBOARD, () => import("./qualityAuditDashboard-
|
|
4493
|
-
CaroQualityAuditDashboard: withGuard(SDK_MENU_CODES.MANAGEMENT_DASHBOARD, () => import("./caroQualityAuditDashboard-
|
|
4552
|
+
QualityAuditDashboard: withGuard(SDK_MENU_CODES.MANAGEMENT_DASHBOARD, () => import("./qualityAuditDashboard-L2KJETAG.mjs")),
|
|
4553
|
+
CaroQualityAuditDashboard: withGuard(SDK_MENU_CODES.MANAGEMENT_DASHBOARD, () => import("./caroQualityAuditDashboard-PDXTFXYP.mjs"))
|
|
4494
4554
|
};
|
|
4495
4555
|
|
|
4496
4556
|
// call-control-sdk/lib/hooks/useClickToConference.ts
|