ahs-cti 0.0.35 → 0.0.37

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.
Files changed (87) hide show
  1. package/dist/{agentDetailReport-BYGYSA33.mjs → agentDetailReport-237EX6RU.mjs} +3 -3
  2. package/dist/{agentPerformanceReport-Y5YYKSWG.mjs → agentPerformanceReport-YC5FISYA.mjs} +5 -5
  3. package/dist/{auditReport-C4WFAP3L.mjs → auditReport-AXM3UDVY.mjs} +3 -3
  4. package/dist/{callHistory-6YAMF7QO.mjs → callHistory-L5Y3RIOZ.mjs} +2 -2
  5. package/dist/{campaigns-65A75UG5.mjs → campaigns-HLUCEESZ.mjs} +6 -6
  6. package/dist/{cdrReport-KHIUZEDV.mjs → cdrReport-LDKZ4C5W.mjs} +6 -6
  7. package/dist/{chunk-QQWALIZA.mjs → chunk-35EFKRSJ.mjs} +2 -2
  8. package/dist/{chunk-PUNELTD5.mjs → chunk-B76VHVV3.mjs} +2 -2
  9. package/dist/{chunk-CBEMLYOM.mjs → chunk-BKUTHWV7.mjs} +2 -2
  10. package/dist/{chunk-TT6SICS2.mjs → chunk-E552PJN7.mjs} +2 -2
  11. package/dist/{chunk-2AXMZZAY.mjs → chunk-FO6G3FID.mjs} +6 -2
  12. package/{dist-react/chunk-IVWVTBHM.mjs.map → dist/chunk-FO6G3FID.mjs.map} +1 -1
  13. package/dist/{chunk-WL4HBALM.mjs → chunk-M4YVMYCX.mjs} +2 -2
  14. package/dist/{chunk-AJWEGY5E.mjs → chunk-O7GXLWRQ.mjs} +2 -2
  15. package/dist/{chunk-JNXXK4LS.mjs → chunk-RLCMDPZJ.mjs} +2 -2
  16. package/dist/{chunk-JM7LCPTI.mjs → chunk-SYGGG4NF.mjs} +2 -2
  17. package/dist/index.js +491 -287
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +487 -254
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/{leadIntegrations-E5ECRGCW.mjs → leadIntegrations-6WBRGXZH.mjs} +15 -48
  22. package/dist/leadIntegrations-6WBRGXZH.mjs.map +1 -0
  23. package/dist/{liveStatus-MLIDJGJ2.mjs → liveStatus-TUGLMCT3.mjs} +4 -4
  24. package/dist/{loginReport-7NPPKMNK.mjs → loginReport-7RHXDB2M.mjs} +4 -4
  25. package/dist/{managementDashboard-RAHEBYB5.mjs → managementDashboard-CIIHP7ET.mjs} +3 -3
  26. package/dist-react/{agentDetailReport-DFRSOEVZ.mjs → agentDetailReport-Q2FSBCYY.mjs} +3 -3
  27. package/dist-react/{agentPerformanceReport-ZWJNU7JX.mjs → agentPerformanceReport-S74XCLJY.mjs} +5 -5
  28. package/dist-react/{auditReport-XYKDEO4D.mjs → auditReport-HSO7MDZI.mjs} +3 -3
  29. package/dist-react/{callHistory-JJZMVID5.mjs → callHistory-FGZXPFCO.mjs} +2 -2
  30. package/dist-react/{campaigns-DPTUOXLO.mjs → campaigns-EFUWKCJR.mjs} +6 -6
  31. package/dist-react/{cdrReport-DPSZI6JP.mjs → cdrReport-ALE6CRSN.mjs} +6 -6
  32. package/dist-react/{chunk-IVWVTBHM.mjs → chunk-BU3SA5MK.mjs} +6 -2
  33. package/{dist/chunk-2AXMZZAY.mjs.map → dist-react/chunk-BU3SA5MK.mjs.map} +1 -1
  34. package/dist-react/{chunk-FZJ6XJ2L.mjs → chunk-BWTRNMSY.mjs} +2 -2
  35. package/dist-react/{chunk-YDI4675U.mjs → chunk-D2ZGON5Q.mjs} +2 -2
  36. package/dist-react/{chunk-7GV5PSYT.mjs → chunk-DSJ6MU32.mjs} +2 -2
  37. package/dist-react/{chunk-KGHC54RU.mjs → chunk-K753FJWM.mjs} +2 -2
  38. package/dist-react/{chunk-CJBSOTXC.mjs → chunk-MSBV3FVM.mjs} +2 -2
  39. package/dist-react/{chunk-JEI4KQEF.mjs → chunk-V4YFGJYD.mjs} +2 -2
  40. package/dist-react/{chunk-FFGFKWIY.mjs → chunk-VBYKJMDH.mjs} +2 -2
  41. package/dist-react/{chunk-F4MYU2U4.mjs → chunk-ZZWFK6UN.mjs} +2 -2
  42. package/dist-react/index.js +487 -283
  43. package/dist-react/index.js.map +1 -1
  44. package/dist-react/index.mjs +487 -254
  45. package/dist-react/index.mjs.map +1 -1
  46. package/dist-react/{leadIntegrations-5PHHYP6P.mjs → leadIntegrations-O2SFF566.mjs} +15 -48
  47. package/dist-react/leadIntegrations-O2SFF566.mjs.map +1 -0
  48. package/dist-react/{liveStatus-GGCOZECH.mjs → liveStatus-GE4LXGBR.mjs} +4 -4
  49. package/dist-react/{loginReport-SXQMA2AZ.mjs → loginReport-BA7TURDS.mjs} +4 -4
  50. package/dist-react/{managementDashboard-DUMWSZ4H.mjs → managementDashboard-AMEYHYMZ.mjs} +3 -3
  51. package/package.json +1 -1
  52. package/dist/leadIntegrations-E5ECRGCW.mjs.map +0 -1
  53. package/dist-react/leadIntegrations-5PHHYP6P.mjs.map +0 -1
  54. /package/dist/{agentDetailReport-BYGYSA33.mjs.map → agentDetailReport-237EX6RU.mjs.map} +0 -0
  55. /package/dist/{agentPerformanceReport-Y5YYKSWG.mjs.map → agentPerformanceReport-YC5FISYA.mjs.map} +0 -0
  56. /package/dist/{auditReport-C4WFAP3L.mjs.map → auditReport-AXM3UDVY.mjs.map} +0 -0
  57. /package/dist/{callHistory-6YAMF7QO.mjs.map → callHistory-L5Y3RIOZ.mjs.map} +0 -0
  58. /package/dist/{campaigns-65A75UG5.mjs.map → campaigns-HLUCEESZ.mjs.map} +0 -0
  59. /package/dist/{cdrReport-KHIUZEDV.mjs.map → cdrReport-LDKZ4C5W.mjs.map} +0 -0
  60. /package/dist/{chunk-QQWALIZA.mjs.map → chunk-35EFKRSJ.mjs.map} +0 -0
  61. /package/dist/{chunk-PUNELTD5.mjs.map → chunk-B76VHVV3.mjs.map} +0 -0
  62. /package/dist/{chunk-CBEMLYOM.mjs.map → chunk-BKUTHWV7.mjs.map} +0 -0
  63. /package/dist/{chunk-TT6SICS2.mjs.map → chunk-E552PJN7.mjs.map} +0 -0
  64. /package/dist/{chunk-WL4HBALM.mjs.map → chunk-M4YVMYCX.mjs.map} +0 -0
  65. /package/dist/{chunk-AJWEGY5E.mjs.map → chunk-O7GXLWRQ.mjs.map} +0 -0
  66. /package/dist/{chunk-JNXXK4LS.mjs.map → chunk-RLCMDPZJ.mjs.map} +0 -0
  67. /package/dist/{chunk-JM7LCPTI.mjs.map → chunk-SYGGG4NF.mjs.map} +0 -0
  68. /package/dist/{liveStatus-MLIDJGJ2.mjs.map → liveStatus-TUGLMCT3.mjs.map} +0 -0
  69. /package/dist/{loginReport-7NPPKMNK.mjs.map → loginReport-7RHXDB2M.mjs.map} +0 -0
  70. /package/dist/{managementDashboard-RAHEBYB5.mjs.map → managementDashboard-CIIHP7ET.mjs.map} +0 -0
  71. /package/dist-react/{agentDetailReport-DFRSOEVZ.mjs.map → agentDetailReport-Q2FSBCYY.mjs.map} +0 -0
  72. /package/dist-react/{agentPerformanceReport-ZWJNU7JX.mjs.map → agentPerformanceReport-S74XCLJY.mjs.map} +0 -0
  73. /package/dist-react/{auditReport-XYKDEO4D.mjs.map → auditReport-HSO7MDZI.mjs.map} +0 -0
  74. /package/dist-react/{callHistory-JJZMVID5.mjs.map → callHistory-FGZXPFCO.mjs.map} +0 -0
  75. /package/dist-react/{campaigns-DPTUOXLO.mjs.map → campaigns-EFUWKCJR.mjs.map} +0 -0
  76. /package/dist-react/{cdrReport-DPSZI6JP.mjs.map → cdrReport-ALE6CRSN.mjs.map} +0 -0
  77. /package/dist-react/{chunk-FZJ6XJ2L.mjs.map → chunk-BWTRNMSY.mjs.map} +0 -0
  78. /package/dist-react/{chunk-YDI4675U.mjs.map → chunk-D2ZGON5Q.mjs.map} +0 -0
  79. /package/dist-react/{chunk-7GV5PSYT.mjs.map → chunk-DSJ6MU32.mjs.map} +0 -0
  80. /package/dist-react/{chunk-KGHC54RU.mjs.map → chunk-K753FJWM.mjs.map} +0 -0
  81. /package/dist-react/{chunk-CJBSOTXC.mjs.map → chunk-MSBV3FVM.mjs.map} +0 -0
  82. /package/dist-react/{chunk-JEI4KQEF.mjs.map → chunk-V4YFGJYD.mjs.map} +0 -0
  83. /package/dist-react/{chunk-FFGFKWIY.mjs.map → chunk-VBYKJMDH.mjs.map} +0 -0
  84. /package/dist-react/{chunk-F4MYU2U4.mjs.map → chunk-ZZWFK6UN.mjs.map} +0 -0
  85. /package/dist-react/{liveStatus-GGCOZECH.mjs.map → liveStatus-GE4LXGBR.mjs.map} +0 -0
  86. /package/dist-react/{loginReport-SXQMA2AZ.mjs.map → loginReport-BA7TURDS.mjs.map} +0 -0
  87. /package/dist-react/{managementDashboard-DUMWSZ4H.mjs.map → managementDashboard-AMEYHYMZ.mjs.map} +0 -0
@@ -10,22 +10,22 @@ var require = function (id) {
10
10
 
11
11
  import {
12
12
  useCallMonitoring
13
- } from "./chunk-YDI4675U.mjs";
13
+ } from "./chunk-D2ZGON5Q.mjs";
14
14
  import {
15
15
  useGetCallerData
16
- } from "./chunk-FZJ6XJ2L.mjs";
16
+ } from "./chunk-BWTRNMSY.mjs";
17
17
  import {
18
18
  AuditReportDialog,
19
19
  setAuditReportUrlResolver
20
- } from "./chunk-CJBSOTXC.mjs";
20
+ } from "./chunk-MSBV3FVM.mjs";
21
21
  import {
22
22
  SDKAccessDenied,
23
23
  SDKPermissionGuard,
24
24
  useSDKPermissions
25
- } from "./chunk-FFGFKWIY.mjs";
25
+ } from "./chunk-VBYKJMDH.mjs";
26
26
  import {
27
27
  agentDetailReport_default
28
- } from "./chunk-7GV5PSYT.mjs";
28
+ } from "./chunk-DSJ6MU32.mjs";
29
29
  import "./chunk-KRXHK4AU.mjs";
30
30
  import "./chunk-LX6I32Y4.mjs";
31
31
  import "./chunk-GKP4CDJS.mjs";
@@ -43,7 +43,7 @@ import {
43
43
  STORAGE_KEY,
44
44
  axios_default,
45
45
  sdkStateManager
46
- } from "./chunk-IVWVTBHM.mjs";
46
+ } from "./chunk-BU3SA5MK.mjs";
47
47
  import {
48
48
  __publicField,
49
49
  __spreadProps,
@@ -396,7 +396,7 @@ import {
396
396
  CircularProgress,
397
397
  Checkbox
398
398
  } from "@mui/material";
399
- import { useEffect as useEffect3, useMemo, useState as useState6 } from "react";
399
+ import { useEffect as useEffect3, useState as useState6 } from "react";
400
400
 
401
401
  // call-control-sdk/lib/services/request.ts
402
402
  import { useCallback as useCallback4, useReducer } from "react";
@@ -2116,9 +2116,105 @@ function CallTransferDialog({ open }) {
2116
2116
  )
2117
2117
  ] });
2118
2118
  }
2119
- function EndCallDispositionDialog({ open, setOpen, onSubmitDisposition }) {
2119
+ function dispoLevelLabel(depth) {
2120
+ let prefix = "";
2121
+ for (let i = 0; i < depth; i++) prefix += "Sub-";
2122
+ return prefix + "Disposition";
2123
+ }
2124
+ function dispoField(d, ...keys) {
2125
+ for (const k of keys) {
2126
+ const v = d == null ? void 0 : d[k];
2127
+ if (v !== void 0 && v !== null && v !== "") return v;
2128
+ }
2129
+ return null;
2130
+ }
2131
+ function normDispo(d) {
2120
2132
  var _a, _b, _c, _d, _e;
2121
- const [getDispositions, data] = useGetRequest();
2133
+ const id = dispoField(d, "id", "disposition_id", "dispositionId");
2134
+ const code = String((_b = (_a = dispoField(d, "code", "disposition_code")) != null ? _a : dispoField(d, "name")) != null ? _b : "");
2135
+ const pid = dispoField(d, "parentId", "parent_id", "parentDispositionId", "parent_disposition_id");
2136
+ const pcode = dispoField(d, "parentCode", "parent_code");
2137
+ return {
2138
+ key: id != null ? "#" + id : "c:" + code,
2139
+ parentKey: pid != null ? "#" + pid : pcode ? "c:" + pcode : null,
2140
+ code,
2141
+ name: String((_d = (_c = dispoField(d, "name")) != null ? _c : code) != null ? _d : ""),
2142
+ sortOrder: Number((_e = dispoField(d, "sortOrder", "sort_order")) != null ? _e : 0),
2143
+ requiresNotes: !!dispoField(d, "requiresNotes", "requires_notes"),
2144
+ children: []
2145
+ };
2146
+ }
2147
+ function hasSubDispositions(list) {
2148
+ return list.some((d) => normDispo(d).parentKey != null);
2149
+ }
2150
+ function hasNotesFlag(list) {
2151
+ return list.some((r) => "requiresNotes" in r || "requires_notes" in r);
2152
+ }
2153
+ function buildDispoTree(list) {
2154
+ const nodes = list.map(normDispo);
2155
+ const byKey = {};
2156
+ let roots = [];
2157
+ nodes.forEach((n) => {
2158
+ byKey[n.key] = n;
2159
+ });
2160
+ nodes.forEach((n) => {
2161
+ const parent = n.parentKey ? byKey[n.parentKey] : null;
2162
+ if (parent && parent !== n) parent.children.push(n);
2163
+ else roots.push(n);
2164
+ });
2165
+ if (!roots.length && nodes.length) {
2166
+ nodes.forEach((n) => {
2167
+ n.children = [];
2168
+ });
2169
+ roots = nodes;
2170
+ }
2171
+ const sortLevel = (arr) => {
2172
+ arr.sort((a, b) => a.sortOrder - b.sortOrder || a.name.localeCompare(b.name));
2173
+ arr.forEach((n) => sortLevel(n.children));
2174
+ };
2175
+ sortLevel(roots);
2176
+ return roots;
2177
+ }
2178
+ async function fetchDispoList(url) {
2179
+ try {
2180
+ const res = await axios_default.get(url);
2181
+ const body = res == null ? void 0 : res.data;
2182
+ const d = body && body.data !== void 0 ? body.data : body;
2183
+ return Array.isArray(d) ? d : d && Array.isArray(d.data) ? d.data : [];
2184
+ } catch (e) {
2185
+ return [];
2186
+ }
2187
+ }
2188
+ async function withNotesFlags(list) {
2189
+ if (!list.length || hasNotesFlag(list)) return list;
2190
+ const master = await fetchDispoList(END_POINT.AGENT_SELECTABLE_DISPOSITIONS);
2191
+ if (!master.length || !hasNotesFlag(master)) return list;
2192
+ const codeOf = (r) => String(r.code || r.name || "").toUpperCase();
2193
+ const flag = {};
2194
+ master.forEach((m) => {
2195
+ const c = codeOf(m);
2196
+ if (c) flag[c] = !!(m.requiresNotes || m.requires_notes);
2197
+ });
2198
+ return list.map((r) => {
2199
+ const c = codeOf(r);
2200
+ return Object.prototype.hasOwnProperty.call(flag, c) ? __spreadProps(__spreadValues({}, r), { requiresNotes: flag[c] }) : r;
2201
+ });
2202
+ }
2203
+ function DispoFieldLabel({ children }) {
2204
+ return /* @__PURE__ */ jsx(
2205
+ Typography,
2206
+ {
2207
+ variant: "caption",
2208
+ sx: { display: "block", fontWeight: 600, fontSize: "0.8rem", color: "text.secondary", mb: 0.5 },
2209
+ children
2210
+ }
2211
+ );
2212
+ }
2213
+ function EndCallDispositionDialog({ open, setOpen, onSubmitDisposition }) {
2214
+ var _a, _b, _c, _d;
2215
+ const [dispoTree, setDispoTree] = useState6([]);
2216
+ const [dispoPath, setDispoPath] = useState6([]);
2217
+ const [notesError, setNotesError] = useState6(false);
2122
2218
  const [formData, setFormData] = useState6({
2123
2219
  disposition: { label: "", value: "", id: 0 },
2124
2220
  followUp: { label: "No", value: "N" },
@@ -2145,22 +2241,53 @@ function EndCallDispositionDialog({ open, setOpen, onSubmitDisposition }) {
2145
2241
  selected_break: false,
2146
2242
  notes: ""
2147
2243
  });
2244
+ setDispoPath([]);
2245
+ setNotesError(false);
2148
2246
  };
2149
2247
  const handleClose = () => {
2150
2248
  handleReset();
2151
2249
  setOpen(false);
2152
2250
  };
2153
2251
  useEffect3(() => {
2154
- getDispositions(END_POINT.DISPOSITIONS);
2252
+ let cancelled = false;
2253
+ (async () => {
2254
+ let list = await fetchDispoList(END_POINT.DISPOSITIONS);
2255
+ if (list.length && !hasSubDispositions(list)) {
2256
+ const alt = await fetchDispoList(END_POINT.AGENT_SELECTABLE_DISPOSITIONS);
2257
+ if (hasSubDispositions(alt)) list = alt;
2258
+ }
2259
+ list = await withNotesFlags(list);
2260
+ if (!cancelled) {
2261
+ setDispoTree(buildDispoTree(list));
2262
+ setDispoPath([]);
2263
+ }
2264
+ })();
2265
+ return () => {
2266
+ cancelled = true;
2267
+ };
2155
2268
  }, []);
2156
- const dispositionsOptions = useMemo(() => {
2157
- var _a2, _b2, _c2, _d2;
2158
- return ((_d2 = (_c2 = (_b2 = (_a2 = data == null ? void 0 : data.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.filter((item) => item.name !== "Resolved")) == null ? void 0 : _c2.map((item) => ({
2159
- label: item.name,
2160
- value: item.code,
2161
- id: item.disposition_id
2162
- }))) == null ? void 0 : _d2.sort((a, b) => a.label.localeCompare(b.label))) || [];
2163
- }, [(_a = data == null ? void 0 : data.data) == null ? void 0 : _a.data]);
2269
+ const notesRequired = dispoPath.some((n) => n.requiresNotes);
2270
+ const pickDispo = (level, picked) => {
2271
+ setDispoPath((prev) => {
2272
+ const next = prev.slice(0, level);
2273
+ if (picked) next.push(picked);
2274
+ return next;
2275
+ });
2276
+ setNotesError(false);
2277
+ };
2278
+ const handleSubmit = () => {
2279
+ if (notesRequired && !formData.notes.trim()) {
2280
+ setNotesError(true);
2281
+ return;
2282
+ }
2283
+ const leaf = dispoPath[dispoPath.length - 1];
2284
+ onSubmitDisposition(__spreadProps(__spreadValues({}, formData), {
2285
+ disposition: leaf ? { label: leaf.name, value: leaf.code, id: 0 } : { label: "", value: "", id: 0 }
2286
+ }));
2287
+ };
2288
+ const selectedNode = dispoPath[dispoPath.length - 1] || null;
2289
+ const dispoBreadcrumb = dispoPath.map((n) => n.name).join(" \u203A ");
2290
+ const dispoHint = selectedNode ? selectedNode.children.length ? `You can pick a ${dispoLevelLabel(dispoPath.length).toLowerCase()} for more detail.` : "Leaf reached \u2014 this path is complete." : "";
2164
2291
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
2165
2292
  Dialog,
2166
2293
  {
@@ -2169,251 +2296,357 @@ function EndCallDispositionDialog({ open, setOpen, onSubmitDisposition }) {
2169
2296
  "aria-describedby": "alert-dialog-description",
2170
2297
  maxWidth: "sm",
2171
2298
  fullWidth: true,
2172
- slotProps: { paper: { sx: { minWidth: 600 } } },
2299
+ slotProps: { paper: { sx: { minWidth: 600, borderRadius: 3, maxHeight: "85vh" } } },
2173
2300
  sx: {
2174
2301
  minWidth: "650px"
2175
2302
  },
2176
- children: /* @__PURE__ */ jsxs(Paper, { sx: { borderRadius: 2 }, children: [
2177
- /* @__PURE__ */ jsx(
2178
- Box,
2179
- {
2180
- sx: {
2181
- display: "flex",
2182
- justifyContent: "center",
2183
- alignItems: "center",
2184
- padding: "4px 16px",
2185
- boxShadow: "0px 1px 2px #f5f5f5ff"
2186
- },
2187
- children: /* @__PURE__ */ jsxs(
2188
- Typography,
2303
+ children: /* @__PURE__ */ jsxs(
2304
+ Paper,
2305
+ {
2306
+ sx: {
2307
+ borderRadius: 3,
2308
+ display: "flex",
2309
+ flexDirection: "column",
2310
+ maxHeight: "85vh",
2311
+ overflow: "hidden"
2312
+ },
2313
+ children: [
2314
+ /* @__PURE__ */ jsx(
2315
+ Box,
2189
2316
  {
2190
- variant: "body1",
2191
- sx: { m: 1 },
2192
- children: [
2193
- " ",
2194
- "Call Disposition"
2195
- ]
2317
+ sx: {
2318
+ flexShrink: 0,
2319
+ px: 2,
2320
+ py: 1.5,
2321
+ borderBottom: "1px solid",
2322
+ borderColor: "divider"
2323
+ },
2324
+ children: /* @__PURE__ */ jsx(
2325
+ Typography,
2326
+ {
2327
+ variant: "h6",
2328
+ sx: { fontWeight: 600, color: "text.primary", fontSize: "1.05rem" },
2329
+ children: "Call Disposition"
2330
+ }
2331
+ )
2196
2332
  }
2197
- )
2198
- }
2199
- ),
2200
- /* @__PURE__ */ jsxs(
2201
- Box,
2202
- {
2203
- sx: {
2204
- boxShadow: "1px 1px 4px #d3d3d3ff",
2205
- padding: "10px",
2206
- margin: "10px",
2207
- borderRadius: "10px"
2208
- },
2209
- children: [
2210
- /* @__PURE__ */ jsxs(
2211
- Box,
2212
- {
2213
- sx: { display: "flex", gap: 2 },
2214
- children: [
2215
- /* @__PURE__ */ jsx(
2216
- Autocomplete,
2217
- {
2218
- value: formData.disposition,
2219
- options: dispositionsOptions,
2220
- getOptionLabel: (opt) => opt.label,
2221
- onChange: (_, val) => handleChange("disposition", val),
2222
- size: "small",
2223
- renderInput: (params) => /* @__PURE__ */ jsx(
2224
- TextField,
2225
- __spreadProps(__spreadValues({}, params), {
2226
- label: "Disposition",
2227
- fullWidth: true
2228
- })
2229
- ),
2230
- sx: { flex: 1 }
2231
- }
2232
- ),
2233
- /* @__PURE__ */ jsx(
2234
- Autocomplete,
2235
- {
2236
- options: followUpOptions,
2237
- getOptionLabel: (opt) => opt.label,
2238
- value: formData.followUp,
2239
- onChange: (_, val) => handleChange("followUp", val),
2240
- size: "small",
2241
- renderInput: (params) => /* @__PURE__ */ jsx(
2242
- TextField,
2243
- __spreadProps(__spreadValues({}, params), {
2244
- label: "Follow Up",
2245
- fullWidth: true
2246
- })
2247
- ),
2248
- sx: { flex: 1 }
2249
- }
2250
- )
2251
- ]
2252
- }
2253
- ),
2254
- /* @__PURE__ */ jsxs(
2255
- Box,
2256
- {
2257
- sx: { display: "flex", gap: 2, mt: 2 },
2258
- children: [
2259
- /* @__PURE__ */ jsxs(
2260
- Box,
2261
- {
2262
- sx: {
2263
- flex: "1",
2264
- border: "1px solid #bdbdbd",
2265
- borderRadius: "5px"
2266
- },
2267
- children: [
2333
+ ),
2334
+ /* @__PURE__ */ jsx(Box, { sx: { flex: 1, minHeight: 0, overflowY: "auto", p: 1.5 }, children: /* @__PURE__ */ jsxs(
2335
+ Box,
2336
+ {
2337
+ sx: {
2338
+ boxShadow: "1px 1px 4px #d3d3d3ff",
2339
+ padding: "10px",
2340
+ borderRadius: "10px"
2341
+ },
2342
+ children: [
2343
+ /* @__PURE__ */ jsxs(
2344
+ Box,
2345
+ {
2346
+ sx: { display: "flex", flexDirection: "column", gap: 2 },
2347
+ children: [
2348
+ (() => {
2349
+ const levels = [];
2350
+ let siblings = dispoTree;
2351
+ let depth = 0;
2352
+ while (siblings.length) {
2353
+ const chosen = dispoPath[depth] || null;
2354
+ const options = siblings;
2355
+ const level = depth;
2356
+ levels.push(
2357
+ /* @__PURE__ */ jsxs(Box, { children: [
2358
+ /* @__PURE__ */ jsx(DispoFieldLabel, { children: dispoLevelLabel(level) }),
2359
+ /* @__PURE__ */ jsx(
2360
+ Autocomplete,
2361
+ {
2362
+ value: chosen,
2363
+ options,
2364
+ getOptionLabel: (opt) => opt ? opt.name : "",
2365
+ isOptionEqualToValue: (opt, val) => (opt == null ? void 0 : opt.key) === (val == null ? void 0 : val.key),
2366
+ onChange: (_, picked) => pickDispo(level, picked),
2367
+ size: "small",
2368
+ renderInput: (params) => /* @__PURE__ */ jsx(
2369
+ TextField,
2370
+ __spreadProps(__spreadValues({}, params), {
2371
+ placeholder: `Select ${dispoLevelLabel(level).toLowerCase()}\u2026`,
2372
+ fullWidth: true
2373
+ })
2374
+ ),
2375
+ fullWidth: true
2376
+ }
2377
+ )
2378
+ ] }, level)
2379
+ );
2380
+ if (!chosen) break;
2381
+ siblings = chosen.children;
2382
+ depth++;
2383
+ }
2384
+ if (!levels.length) {
2385
+ levels.push(
2386
+ /* @__PURE__ */ jsxs(Box, { children: [
2387
+ /* @__PURE__ */ jsx(DispoFieldLabel, { children: "Disposition" }),
2388
+ /* @__PURE__ */ jsx(
2389
+ TextField,
2390
+ {
2391
+ size: "small",
2392
+ value: "",
2393
+ disabled: true,
2394
+ placeholder: "Loading dispositions\u2026",
2395
+ fullWidth: true
2396
+ }
2397
+ )
2398
+ ] }, "loading")
2399
+ );
2400
+ }
2401
+ return levels;
2402
+ })(),
2403
+ dispoPath.length > 0 && /* @__PURE__ */ jsxs(Box, { sx: { mt: 0.5 }, children: [
2268
2404
  /* @__PURE__ */ jsx(
2269
- Checkbox,
2405
+ Box,
2270
2406
  {
2271
- name: "selected_break",
2272
2407
  sx: {
2273
- padding: "6px"
2408
+ px: 1.5,
2409
+ py: 1,
2410
+ borderRadius: "8px",
2411
+ bgcolor: "#e6f4f1",
2412
+ fontSize: "0.8rem",
2413
+ fontWeight: 500,
2414
+ color: "text.primary",
2415
+ wordBreak: "break-word"
2274
2416
  },
2275
- checked: formData.selected_break,
2276
- onChange: (event) => {
2277
- handleChange("selected_break", event.target.checked);
2278
- },
2279
- slotProps: {
2280
- input: { "aria-label": "controlled" }
2281
- }
2417
+ children: dispoBreadcrumb
2282
2418
  }
2283
2419
  ),
2284
- " ",
2285
- "Mark as break"
2286
- ]
2287
- }
2288
- ),
2289
- ((_c = (_b = formData == null ? void 0 : formData.followUp) == null ? void 0 : _b.label) == null ? void 0 : _c.toLowerCase()) === "yes" ? /* @__PURE__ */ jsx(
2290
- TextField,
2291
- {
2292
- size: "small",
2293
- label: "Callback Date",
2294
- type: "date",
2295
- slotProps: {
2296
- inputLabel: { shrink: true },
2297
- htmlInput: {
2298
- min: (/* @__PURE__ */ new Date()).toISOString().split("T")[0]
2299
- }
2300
- },
2301
- value: formData.callbackDate,
2302
- onChange: (e) => {
2303
- handleChange("callbackDate", e.target.value);
2304
- const isToday = e.target.value === (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
2305
- if (isToday) {
2306
- const now = /* @__PURE__ */ new Date();
2307
- const currentHr = now.getHours();
2308
- if (formData.callbackHrs && Number(formData.callbackHrs) < currentHr) {
2309
- handleChange("callbackHrs", "");
2310
- handleChange("callbackMins", "");
2311
- } else if (formData.callbackHrs && Number(formData.callbackHrs) === currentHr && formData.callbackMins && Number(formData.callbackMins) < now.getMinutes()) {
2312
- handleChange("callbackMins", "");
2420
+ dispoHint && /* @__PURE__ */ jsxs(
2421
+ Typography,
2422
+ {
2423
+ variant: "caption",
2424
+ sx: {
2425
+ display: "block",
2426
+ mt: 0.5,
2427
+ color: notesRequired ? "warning.main" : "text.secondary"
2428
+ },
2429
+ children: [
2430
+ dispoHint,
2431
+ notesRequired ? " Notes are required for this disposition." : ""
2432
+ ]
2313
2433
  }
2434
+ )
2435
+ ] })
2436
+ ]
2437
+ }
2438
+ ),
2439
+ /* @__PURE__ */ jsx(
2440
+ Box,
2441
+ {
2442
+ sx: { display: "flex", gap: 2, mt: 2 },
2443
+ children: /* @__PURE__ */ jsxs(Box, { sx: { flex: 1 }, children: [
2444
+ /* @__PURE__ */ jsx(DispoFieldLabel, { children: "Follow up" }),
2445
+ /* @__PURE__ */ jsx(
2446
+ Autocomplete,
2447
+ {
2448
+ options: followUpOptions,
2449
+ getOptionLabel: (opt) => opt.label,
2450
+ value: formData.followUp,
2451
+ onChange: (_, val) => handleChange("followUp", val),
2452
+ size: "small",
2453
+ renderInput: (params) => /* @__PURE__ */ jsx(
2454
+ TextField,
2455
+ __spreadProps(__spreadValues({}, params), {
2456
+ placeholder: "Select follow up",
2457
+ fullWidth: true
2458
+ })
2459
+ ),
2460
+ fullWidth: true
2314
2461
  }
2315
- },
2316
- fullWidth: true,
2317
- sx: { flex: 1 }
2318
- }
2319
- ) : /* @__PURE__ */ jsx(Box, { sx: { flex: 1 } })
2320
- ]
2321
- }
2322
- ),
2323
- ((_e = (_d = formData == null ? void 0 : formData.followUp) == null ? void 0 : _d.label) == null ? void 0 : _e.toLowerCase()) === "yes" && /* @__PURE__ */ jsxs(
2324
- Box,
2325
- {
2326
- sx: { display: "flex", gap: 2, mt: 2 },
2327
- children: [
2328
- /* @__PURE__ */ jsx(
2329
- Autocomplete,
2330
- {
2331
- size: "small",
2332
- options: Array.from({ length: 24 }, (_, i) => String(i).padStart(2, "0")),
2333
- getOptionDisabled: (option) => {
2334
- const isToday = formData.callbackDate === (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
2335
- return isToday && Number(option) < (/* @__PURE__ */ new Date()).getHours();
2336
- },
2337
- value: formData.callbackHrs || null,
2338
- onChange: (_, value) => handleChange("callbackHrs", value || ""),
2339
- renderInput: (params) => /* @__PURE__ */ jsx(TextField, __spreadProps(__spreadValues({}, params), { label: "Hours (0-23)" })),
2340
- fullWidth: true,
2341
- sx: { flex: 1 }
2342
- }
2343
- ),
2462
+ )
2463
+ ] })
2464
+ }
2465
+ ),
2466
+ /* @__PURE__ */ jsxs(
2467
+ Box,
2468
+ {
2469
+ sx: { display: "flex", gap: 2, mt: 2 },
2470
+ children: [
2471
+ /* @__PURE__ */ jsxs(
2472
+ Box,
2473
+ {
2474
+ sx: {
2475
+ flex: "1",
2476
+ border: "1px solid #bdbdbd",
2477
+ borderRadius: "5px"
2478
+ },
2479
+ children: [
2480
+ /* @__PURE__ */ jsx(
2481
+ Checkbox,
2482
+ {
2483
+ name: "selected_break",
2484
+ sx: {
2485
+ padding: "6px"
2486
+ },
2487
+ checked: formData.selected_break,
2488
+ onChange: (event) => {
2489
+ handleChange("selected_break", event.target.checked);
2490
+ },
2491
+ slotProps: {
2492
+ input: { "aria-label": "controlled" }
2493
+ }
2494
+ }
2495
+ ),
2496
+ " ",
2497
+ "Mark as break"
2498
+ ]
2499
+ }
2500
+ ),
2501
+ ((_b = (_a = formData == null ? void 0 : formData.followUp) == null ? void 0 : _a.label) == null ? void 0 : _b.toLowerCase()) === "yes" ? /* @__PURE__ */ jsxs(Box, { sx: { flex: 1 }, children: [
2502
+ /* @__PURE__ */ jsx(DispoFieldLabel, { children: "Callback date" }),
2503
+ /* @__PURE__ */ jsx(
2504
+ TextField,
2505
+ {
2506
+ size: "small",
2507
+ type: "date",
2508
+ slotProps: {
2509
+ htmlInput: {
2510
+ min: (/* @__PURE__ */ new Date()).toISOString().split("T")[0]
2511
+ }
2512
+ },
2513
+ value: formData.callbackDate,
2514
+ onChange: (e) => {
2515
+ handleChange("callbackDate", e.target.value);
2516
+ const isToday = e.target.value === (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
2517
+ if (isToday) {
2518
+ const now = /* @__PURE__ */ new Date();
2519
+ const currentHr = now.getHours();
2520
+ if (formData.callbackHrs && Number(formData.callbackHrs) < currentHr) {
2521
+ handleChange("callbackHrs", "");
2522
+ handleChange("callbackMins", "");
2523
+ } else if (formData.callbackHrs && Number(formData.callbackHrs) === currentHr && formData.callbackMins && Number(formData.callbackMins) < now.getMinutes()) {
2524
+ handleChange("callbackMins", "");
2525
+ }
2526
+ }
2527
+ },
2528
+ fullWidth: true
2529
+ }
2530
+ )
2531
+ ] }) : /* @__PURE__ */ jsx(Box, { sx: { flex: 1 } })
2532
+ ]
2533
+ }
2534
+ ),
2535
+ ((_d = (_c = formData == null ? void 0 : formData.followUp) == null ? void 0 : _c.label) == null ? void 0 : _d.toLowerCase()) === "yes" && /* @__PURE__ */ jsxs(
2536
+ Box,
2537
+ {
2538
+ sx: { display: "flex", gap: 2, mt: 2 },
2539
+ children: [
2540
+ /* @__PURE__ */ jsxs(Box, { sx: { flex: 1 }, children: [
2541
+ /* @__PURE__ */ jsx(DispoFieldLabel, { children: "Hrs" }),
2542
+ /* @__PURE__ */ jsx(
2543
+ Autocomplete,
2544
+ {
2545
+ size: "small",
2546
+ options: Array.from({ length: 24 }, (_, i) => String(i).padStart(2, "0")),
2547
+ getOptionDisabled: (option) => {
2548
+ const isToday = formData.callbackDate === (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
2549
+ return isToday && Number(option) < (/* @__PURE__ */ new Date()).getHours();
2550
+ },
2551
+ value: formData.callbackHrs || null,
2552
+ onChange: (_, value) => handleChange("callbackHrs", value || ""),
2553
+ renderInput: (params) => /* @__PURE__ */ jsx(TextField, __spreadProps(__spreadValues({}, params), { placeholder: "Hrs" })),
2554
+ fullWidth: true
2555
+ }
2556
+ )
2557
+ ] }),
2558
+ /* @__PURE__ */ jsxs(Box, { sx: { flex: 1 }, children: [
2559
+ /* @__PURE__ */ jsx(DispoFieldLabel, { children: "Mins" }),
2560
+ /* @__PURE__ */ jsx(
2561
+ Autocomplete,
2562
+ {
2563
+ size: "small",
2564
+ options: Array.from({ length: 60 }, (_, i) => String(i).padStart(2, "0")),
2565
+ getOptionDisabled: (option) => {
2566
+ const isToday = formData.callbackDate === (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
2567
+ const now = /* @__PURE__ */ new Date();
2568
+ const isCurrentHr = isToday && formData.callbackHrs === String(now.getHours()).padStart(2, "0");
2569
+ return isCurrentHr && Number(option) < now.getMinutes();
2570
+ },
2571
+ value: formData.callbackMins || null,
2572
+ onChange: (_, value) => handleChange("callbackMins", value || ""),
2573
+ renderInput: (params) => /* @__PURE__ */ jsx(TextField, __spreadProps(__spreadValues({}, params), { placeholder: "Mins" })),
2574
+ fullWidth: true
2575
+ }
2576
+ )
2577
+ ] })
2578
+ ]
2579
+ }
2580
+ ),
2581
+ /* @__PURE__ */ jsxs(Box, { sx: { mt: 2 }, children: [
2582
+ /* @__PURE__ */ jsx(DispoFieldLabel, { children: notesRequired ? "Notes *" : "Notes" }),
2344
2583
  /* @__PURE__ */ jsx(
2345
- Autocomplete,
2584
+ TextField,
2346
2585
  {
2347
2586
  size: "small",
2348
- options: Array.from({ length: 60 }, (_, i) => String(i).padStart(2, "0")),
2349
- getOptionDisabled: (option) => {
2350
- const isToday = formData.callbackDate === (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
2351
- const now = /* @__PURE__ */ new Date();
2352
- const isCurrentHr = isToday && formData.callbackHrs === String(now.getHours()).padStart(2, "0");
2353
- return isCurrentHr && Number(option) < now.getMinutes();
2587
+ placeholder: notesRequired ? "Notes are required for this disposition" : "Notes (optional)",
2588
+ multiline: true,
2589
+ minRows: 2,
2590
+ maxRows: 4,
2591
+ value: formData.notes,
2592
+ onChange: (e) => {
2593
+ handleChange("notes", e.target.value);
2594
+ if (notesError) setNotesError(false);
2354
2595
  },
2355
- value: formData.callbackMins || null,
2356
- onChange: (_, value) => handleChange("callbackMins", value || ""),
2357
- renderInput: (params) => /* @__PURE__ */ jsx(TextField, __spreadProps(__spreadValues({}, params), { label: "Minutes (0-59)" })),
2358
- fullWidth: true,
2359
- sx: { flex: 1 }
2596
+ error: notesError,
2597
+ helperText: notesError ? "Notes are required for this disposition." : "",
2598
+ fullWidth: true
2360
2599
  }
2361
2600
  )
2362
- ]
2363
- }
2364
- ),
2365
- /* @__PURE__ */ jsx(Box, { sx: { mt: 2 }, children: /* @__PURE__ */ jsx(
2366
- TextField,
2367
- {
2368
- size: "small",
2369
- label: "Notes",
2370
- multiline: true,
2371
- minRows: 2,
2372
- maxRows: 4,
2373
- value: formData.notes,
2374
- onChange: (e) => handleChange("notes", e.target.value),
2375
- fullWidth: true
2376
- }
2377
- ) })
2378
- ]
2379
- }
2380
- ),
2381
- /* @__PURE__ */ jsxs(
2382
- Box,
2383
- {
2384
- sx: { textAlign: "right", m: 2 },
2385
- children: [
2386
- /* @__PURE__ */ jsx(
2387
- Button,
2388
- {
2389
- variant: "outlined",
2390
- color: "error",
2391
- size: "large",
2392
- onClick: handleClose,
2393
- sx: {
2394
- px: 2,
2395
- mx: 1,
2396
- borderRadius: "10px",
2397
- textTransform: "capitalize"
2398
- },
2399
- children: "cancel"
2400
- }
2401
- ),
2402
- /* @__PURE__ */ jsx(
2403
- Button,
2404
- {
2405
- variant: "contained",
2406
- color: "primary",
2407
- size: "large",
2408
- onClick: () => onSubmitDisposition(formData),
2409
- sx: { px: 2, borderRadius: "10px", textTransform: "capitalize" },
2410
- children: "Submit"
2411
- }
2412
- )
2413
- ]
2414
- }
2415
- )
2416
- ] })
2601
+ ] })
2602
+ ]
2603
+ }
2604
+ ) }),
2605
+ /* @__PURE__ */ jsxs(
2606
+ Box,
2607
+ {
2608
+ sx: {
2609
+ flexShrink: 0,
2610
+ textAlign: "right",
2611
+ px: 2,
2612
+ py: 1.5,
2613
+ borderTop: "1px solid",
2614
+ borderColor: "divider"
2615
+ },
2616
+ children: [
2617
+ /* @__PURE__ */ jsx(
2618
+ Button,
2619
+ {
2620
+ variant: "outlined",
2621
+ color: "error",
2622
+ size: "large",
2623
+ onClick: handleClose,
2624
+ sx: {
2625
+ px: 2,
2626
+ mx: 1,
2627
+ borderRadius: "10px",
2628
+ textTransform: "capitalize"
2629
+ },
2630
+ children: "cancel"
2631
+ }
2632
+ ),
2633
+ /* @__PURE__ */ jsx(
2634
+ Button,
2635
+ {
2636
+ variant: "contained",
2637
+ color: "primary",
2638
+ size: "large",
2639
+ onClick: handleSubmit,
2640
+ sx: { px: 2, borderRadius: "10px", textTransform: "capitalize" },
2641
+ children: "Submit"
2642
+ }
2643
+ )
2644
+ ]
2645
+ }
2646
+ )
2647
+ ]
2648
+ }
2649
+ )
2417
2650
  }
2418
2651
  ) });
2419
2652
  }
@@ -4441,19 +4674,19 @@ function withGuard(menuCodes, loader, permissions) {
4441
4674
  });
4442
4675
  }
4443
4676
  var SDKPages = {
4444
- CallHistory: withGuard(SDK_MENU_CODES.CALL_HISTORY, () => import("./callHistory-JJZMVID5.mjs"), SDK_PERMISSIONS.REPORTS_CALL_HISTORY_READ),
4445
- Campaigns: withGuard(SDK_MENU_CODES.CAMPAIGNS, () => import("./campaigns-DPTUOXLO.mjs"), [SDK_PERMISSIONS.CAMPAIGNS_READ, SDK_PERMISSIONS.CAMPAIGNS_MANAGE]),
4446
- LoginReport: withGuard(SDK_MENU_CODES.LOGIN_REPORT, () => import("./loginReport-SXQMA2AZ.mjs"), [SDK_PERMISSIONS.REPORTS_AGENT_LOGIN_READ, SDK_PERMISSIONS.REPORTS_AGENT_LOGIN_MANAGE]),
4447
- CdrReports: withGuard(SDK_MENU_CODES.CDR_REPORT, () => import("./cdrReport-DPSZI6JP.mjs"), [SDK_PERMISSIONS.REPORTS_CDR_READ, SDK_PERMISSIONS.REPORTS_CDR_MANAGE]),
4448
- AuditReportPage: withGuard(SDK_MENU_CODES.CDR_REPORT, () => import("./auditReport-XYKDEO4D.mjs"), [SDK_PERMISSIONS.REPORTS_CDR_READ, SDK_PERMISSIONS.REPORTS_CDR_MANAGE]),
4449
- AgentPerformanceReport: withGuard(SDK_MENU_CODES.AGENT_PERFORMANCE_REPORT, () => import("./agentPerformanceReport-ZWJNU7JX.mjs"), [SDK_PERMISSIONS.REPORTS_AGENT_PERFORMANCE_READ, SDK_PERMISSIONS.REPORTS_AGENT_PERFORMANCE_MANAGE]),
4450
- AgentDetailReport: withGuard(SDK_MENU_CODES.AGENT_DETAIL_REPORT, () => import("./agentDetailReport-DFRSOEVZ.mjs"), [SDK_PERMISSIONS.REPORTS_AGENT_PERFORMANCE_READ, SDK_PERMISSIONS.REPORTS_AGENT_PERFORMANCE_MANAGE]),
4451
- LiveStatus: withGuard(SDK_MENU_CODES.LIVE_STATUS, () => import("./liveStatus-GGCOZECH.mjs"), [SDK_PERMISSIONS.DASHBOARD_LIVE_STATUS_READ, SDK_PERMISSIONS.DASHBOARD_LIVE_STATUS_MANAGE]),
4452
- ManagementDashboard: withGuard(SDK_MENU_CODES.MANAGEMENT_DASHBOARD, () => import("./managementDashboard-DUMWSZ4H.mjs"), SDK_PERMISSIONS.MANAGEMENT_DASHBOARD_READ),
4677
+ CallHistory: withGuard(SDK_MENU_CODES.CALL_HISTORY, () => import("./callHistory-FGZXPFCO.mjs"), SDK_PERMISSIONS.REPORTS_CALL_HISTORY_READ),
4678
+ Campaigns: withGuard(SDK_MENU_CODES.CAMPAIGNS, () => import("./campaigns-EFUWKCJR.mjs"), [SDK_PERMISSIONS.CAMPAIGNS_READ, SDK_PERMISSIONS.CAMPAIGNS_MANAGE]),
4679
+ LoginReport: withGuard(SDK_MENU_CODES.LOGIN_REPORT, () => import("./loginReport-BA7TURDS.mjs"), [SDK_PERMISSIONS.REPORTS_AGENT_LOGIN_READ, SDK_PERMISSIONS.REPORTS_AGENT_LOGIN_MANAGE]),
4680
+ CdrReports: withGuard(SDK_MENU_CODES.CDR_REPORT, () => import("./cdrReport-ALE6CRSN.mjs"), [SDK_PERMISSIONS.REPORTS_CDR_READ, SDK_PERMISSIONS.REPORTS_CDR_MANAGE]),
4681
+ AuditReportPage: withGuard(SDK_MENU_CODES.CDR_REPORT, () => import("./auditReport-HSO7MDZI.mjs"), [SDK_PERMISSIONS.REPORTS_CDR_READ, SDK_PERMISSIONS.REPORTS_CDR_MANAGE]),
4682
+ AgentPerformanceReport: withGuard(SDK_MENU_CODES.AGENT_PERFORMANCE_REPORT, () => import("./agentPerformanceReport-S74XCLJY.mjs"), [SDK_PERMISSIONS.REPORTS_AGENT_PERFORMANCE_READ, SDK_PERMISSIONS.REPORTS_AGENT_PERFORMANCE_MANAGE]),
4683
+ AgentDetailReport: withGuard(SDK_MENU_CODES.AGENT_DETAIL_REPORT, () => import("./agentDetailReport-Q2FSBCYY.mjs"), [SDK_PERMISSIONS.REPORTS_AGENT_PERFORMANCE_READ, SDK_PERMISSIONS.REPORTS_AGENT_PERFORMANCE_MANAGE]),
4684
+ LiveStatus: withGuard(SDK_MENU_CODES.LIVE_STATUS, () => import("./liveStatus-GE4LXGBR.mjs"), [SDK_PERMISSIONS.DASHBOARD_LIVE_STATUS_READ, SDK_PERMISSIONS.DASHBOARD_LIVE_STATUS_MANAGE]),
4685
+ ManagementDashboard: withGuard(SDK_MENU_CODES.MANAGEMENT_DASHBOARD, () => import("./managementDashboard-AMEYHYMZ.mjs"), SDK_PERMISSIONS.MANAGEMENT_DASHBOARD_READ),
4453
4686
  CaroVoiceAI: withGuard(SDK_MENU_CODES.CARO_VOICE_AI, () => import("./caroVoiceAI-EFLGZA5P.mjs"), SDK_PERMISSIONS.CARO_VOICE_AI_READ),
4454
4687
  QualityAuditDashboard: withGuard(SDK_MENU_CODES.QUALITY_AUDIT_DASHBOARD, () => import("./qualityAuditDashboard-XJASRF5E.mjs"), SDK_PERMISSIONS.QUALITY_AUDIT_DASHBOARD_READ),
4455
4688
  CaroQualityAuditDashboard: withGuard(SDK_MENU_CODES.CARO_QUALITY_AUDIT_DASHBOARD, () => import("./caroQualityAuditDashboard-SAHPLQZY.mjs"), SDK_PERMISSIONS.CARO_VOICE_AI_DASHBOARD_READ),
4456
- LeadIntegrations: withGuard(SDK_MENU_CODES.LEAD_INTEGRATIONS, () => import("./leadIntegrations-5PHHYP6P.mjs"), [SDK_PERMISSIONS.LEAD_INTEGRATIONS_READ, SDK_PERMISSIONS.LEAD_INTEGRATIONS_MANAGE])
4689
+ LeadIntegrations: withGuard(SDK_MENU_CODES.LEAD_INTEGRATIONS, () => import("./leadIntegrations-O2SFF566.mjs"), [SDK_PERMISSIONS.LEAD_INTEGRATIONS_READ, SDK_PERMISSIONS.LEAD_INTEGRATIONS_MANAGE])
4457
4690
  };
4458
4691
 
4459
4692
  // call-control-sdk/lib/hooks/useClickToConference.ts