@opencxh/domain 1.150.0 → 1.152.0
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/entities/ai-budget/index.d.ts +1 -0
- package/dist/entities/ai-budget/types.d.ts +130 -0
- package/dist/entities/communication/message-template.d.ts +13 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +416 -396
- package/dist/platform/ai-tools.d.ts +12 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const wt = 10, Rt = 10, Dt = 10, Pt = 5, ge = /* @__PURE__ */ new Set([
|
|
2
2
|
"header",
|
|
3
3
|
"section",
|
|
4
4
|
"context",
|
|
@@ -14,7 +14,7 @@ function I(e) {
|
|
|
14
14
|
const t = e;
|
|
15
15
|
return typeof t.key == "string" || typeof t.value == "string";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Ut(e, t = () => {
|
|
18
18
|
}) {
|
|
19
19
|
if (!Array.isArray(e)) return [];
|
|
20
20
|
const n = [];
|
|
@@ -25,7 +25,7 @@ function Dt(e, t = () => {
|
|
|
25
25
|
}
|
|
26
26
|
if (!r || typeof r != "object") continue;
|
|
27
27
|
const i = r;
|
|
28
|
-
if (!
|
|
28
|
+
if (!ge.has(i.type)) {
|
|
29
29
|
t("unknown block type " + String(i.type));
|
|
30
30
|
continue;
|
|
31
31
|
}
|
|
@@ -69,7 +69,7 @@ function Dt(e, t = () => {
|
|
|
69
69
|
}
|
|
70
70
|
return n;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function he(e) {
|
|
73
73
|
return e.replace(/<style[\s\S]*?<\/style>/gi, " ").replace(/<script[\s\S]*?<\/script>/gi, " ").replace(/<[^>]+>/g, " ").replace(/ /g, " ").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'").replace(/\s+/g, " ").trim();
|
|
74
74
|
}
|
|
75
75
|
function b(e) {
|
|
@@ -77,7 +77,7 @@ function b(e) {
|
|
|
77
77
|
const t = Math.floor(e / 60), n = Math.floor(e % 60);
|
|
78
78
|
return `${t}:${n.toString().padStart(2, "0")}`;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function L(e) {
|
|
81
81
|
return e ? ` — ${Math.floor(e / 60)}m ${e % 60}s` : "";
|
|
82
82
|
}
|
|
83
83
|
function S(e) {
|
|
@@ -86,7 +86,7 @@ function S(e) {
|
|
|
86
86
|
function A(e) {
|
|
87
87
|
return e.map((t) => t.name).join(", ");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function O(e) {
|
|
90
90
|
return e === "meeting" ? "Meeting" : e === "video" ? "Video call" : "Audio call";
|
|
91
91
|
}
|
|
92
92
|
const m = {
|
|
@@ -123,7 +123,7 @@ const m = {
|
|
|
123
123
|
channelKind: "voice",
|
|
124
124
|
icon: "phone",
|
|
125
125
|
snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${b(e.payload.duration)})` : ""}`,
|
|
126
|
-
timeline: (e) => `Call ended${
|
|
126
|
+
timeline: (e) => `Call ended${L(e.payload.duration)}`
|
|
127
127
|
},
|
|
128
128
|
VOICE_CALL_MISSED: {
|
|
129
129
|
shape: "event",
|
|
@@ -271,7 +271,7 @@ const m = {
|
|
|
271
271
|
channelKind: "chat",
|
|
272
272
|
icon: "message-circle",
|
|
273
273
|
snippet: () => "Gesprek gestart",
|
|
274
|
-
timeline: (e) => `${
|
|
274
|
+
timeline: (e) => `${O(e.payload.callType)} started${e.payload.initiator ? ` by ${e.payload.initiator.name}` : ""}`,
|
|
275
275
|
joinUrl: (e) => e.payload.joinUrl
|
|
276
276
|
},
|
|
277
277
|
CHAT_CALL_ENDED: {
|
|
@@ -279,7 +279,7 @@ const m = {
|
|
|
279
279
|
channelKind: "chat",
|
|
280
280
|
icon: "message-circle",
|
|
281
281
|
snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${b(e.payload.duration)})` : ""}`,
|
|
282
|
-
timeline: (e) => `${
|
|
282
|
+
timeline: (e) => `${O(e.payload.callType)} ended${L(e.payload.duration)}`,
|
|
283
283
|
joinUrl: (e) => e.payload.joinUrl
|
|
284
284
|
},
|
|
285
285
|
CHAT_EVENT: {
|
|
@@ -405,43 +405,43 @@ const m = {
|
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
407
|
function $(e) {
|
|
408
|
-
const t = e.payload, n = t.bodySnippet?.trim() ||
|
|
408
|
+
const t = e.payload, n = t.bodySnippet?.trim() || he(t.body ?? "");
|
|
409
409
|
return t.subject ? `${t.subject} — ${n}` : n;
|
|
410
410
|
}
|
|
411
411
|
function f(e) {
|
|
412
412
|
return m[e];
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Kt(e) {
|
|
415
415
|
return f(e)?.icon ?? "circle";
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Bt(e) {
|
|
418
418
|
return f(e)?.channelKind;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Gt(e) {
|
|
421
421
|
const t = f(e)?.shape;
|
|
422
422
|
return t === "message" || t === "note";
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Ft(e) {
|
|
425
425
|
return f(e)?.replyable === !0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function Ht(e) {
|
|
428
428
|
return f(e)?.carriesText === !0;
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function jt(e) {
|
|
431
431
|
return f(e)?.countsAs;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Vt(e) {
|
|
434
434
|
return f(e)?.playbookAuthored === !0;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function ye(e) {
|
|
437
437
|
const t = f(e.type)?.snippet;
|
|
438
438
|
return t ? t(e) : "";
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Xt(e, t) {
|
|
441
441
|
const n = f(e.type)?.timeline;
|
|
442
442
|
return n ? n(e, t) : e.type.replace(/_/g, " ").toLowerCase();
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Wt(e) {
|
|
445
445
|
const t = f(e.type)?.joinUrl;
|
|
446
446
|
return t ? t(e) : void 0;
|
|
447
447
|
}
|
|
@@ -464,15 +464,15 @@ function k(e, t, n) {
|
|
|
464
464
|
const i = n(e.key, r);
|
|
465
465
|
return i === e.key ? null : i;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function be(e, t) {
|
|
468
468
|
if (!e || typeof e == "string" || "value" in e) return null;
|
|
469
469
|
const n = {};
|
|
470
470
|
for (const [r, i] of Object.entries(e.params ?? {}))
|
|
471
471
|
n[r] = N(t, i);
|
|
472
472
|
return { key: e.key, params: n };
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
function
|
|
474
|
+
const Ae = (e) => e;
|
|
475
|
+
function w(e) {
|
|
476
476
|
const t = m[e];
|
|
477
477
|
return {
|
|
478
478
|
type: e,
|
|
@@ -488,7 +488,7 @@ function R(e) {
|
|
|
488
488
|
displayNameKey: t.displayNameKey
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function R(e) {
|
|
492
492
|
return {
|
|
493
493
|
type: e.type,
|
|
494
494
|
shape: e.shape,
|
|
@@ -503,21 +503,21 @@ function w(e) {
|
|
|
503
503
|
displayNameKey: e.displayNameKey
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
class
|
|
507
|
-
constructor(t = [], n =
|
|
506
|
+
class Ee {
|
|
507
|
+
constructor(t = [], n = Ae) {
|
|
508
508
|
this.translate = n;
|
|
509
509
|
for (const r of t)
|
|
510
510
|
r?.type && (r.type in m || this.declared.has(r.type) || this.declared.set(r.type, r));
|
|
511
511
|
}
|
|
512
512
|
declared = /* @__PURE__ */ new Map();
|
|
513
513
|
get(t) {
|
|
514
|
-
if (t in m) return
|
|
514
|
+
if (t in m) return w(t);
|
|
515
515
|
const n = this.declared.get(t);
|
|
516
|
-
return n ?
|
|
516
|
+
return n ? R(n) : void 0;
|
|
517
517
|
}
|
|
518
518
|
/** Alles wat als trigger aangeboden mag worden, ingebouwd en gedeclareerd. */
|
|
519
519
|
triggerable() {
|
|
520
|
-
const t = Object.keys(m).filter((r) => m[r].triggerable).map(
|
|
520
|
+
const t = Object.keys(m).filter((r) => m[r].triggerable).map(w), n = [...this.declared.values()].map(R).filter((r) => r.triggerable);
|
|
521
521
|
return [...t, ...n];
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
@@ -552,33 +552,33 @@ class Ae {
|
|
|
552
552
|
return this.translate;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
const
|
|
556
|
-
function
|
|
555
|
+
const Yt = new Ee(), D = 140;
|
|
556
|
+
function _e(e) {
|
|
557
557
|
const t = e.trim();
|
|
558
558
|
return t.length <= D ? t : t.slice(0, D - 1).trimEnd() + "…";
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
const n =
|
|
560
|
+
function zt(e, t) {
|
|
561
|
+
const n = be(t?.text, e), r = t ? k(t.text, e, (i) => i) : null;
|
|
562
562
|
return {
|
|
563
563
|
activityId: e.id,
|
|
564
564
|
type: e.type,
|
|
565
|
-
snippet:
|
|
565
|
+
snippet: _e(r ?? ye(e)),
|
|
566
566
|
authorName: e.author?.name ?? "",
|
|
567
567
|
direction: e.direction,
|
|
568
568
|
createdAt: e.createdAt ?? Date.now(),
|
|
569
569
|
...n ? { snippetKey: n.key, snippetParams: n.params } : {}
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function qt(e, t, n = []) {
|
|
573
573
|
const r = e.createdAt;
|
|
574
574
|
if (!r) return [];
|
|
575
575
|
const i = new Set(n);
|
|
576
576
|
return e.author.type === "user" && e.author.id && i.add(e.author.id), Object.entries(t).filter(([a, o]) => o >= r && !i.has(a)).map(([a]) => a);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Jt(e) {
|
|
579
579
|
return e.createdAt ?? 0;
|
|
580
580
|
}
|
|
581
|
-
const
|
|
581
|
+
const Qt = [
|
|
582
582
|
{ id: "agent", label: "Agent", labelSource: "user" },
|
|
583
583
|
{ id: "team", label: "Team", labelSource: "team" },
|
|
584
584
|
{ id: "inbox", label: "Inbox", labelSource: "inbox" },
|
|
@@ -588,7 +588,7 @@ const qt = [
|
|
|
588
588
|
{ id: "handledBy", label: "Afhandelaar", labelSource: "raw" },
|
|
589
589
|
{ id: "time", label: "Tijd", labelSource: "raw" }
|
|
590
590
|
];
|
|
591
|
-
function
|
|
591
|
+
function Zt(e) {
|
|
592
592
|
const t = [];
|
|
593
593
|
for (const n of Object.keys(e))
|
|
594
594
|
for (const r of Object.keys(e[n]))
|
|
@@ -598,44 +598,44 @@ function Jt(e) {
|
|
|
598
598
|
function M(e) {
|
|
599
599
|
return e < 10 ? `0${e}` : `${e}`;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Te(e, t) {
|
|
602
602
|
const n = new Date(e), r = `${n.getUTCFullYear()}-${M(n.getUTCMonth() + 1)}-${M(n.getUTCDate())}`;
|
|
603
603
|
return t === "day" ? r : `${r}T${M(n.getUTCHours())}`;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Ie(e, t) {
|
|
606
606
|
const n = new Date(e);
|
|
607
607
|
return n.setUTCMinutes(0, 0, 0), t === "day" && n.setUTCHours(0), n.getTime();
|
|
608
608
|
}
|
|
609
|
-
const
|
|
610
|
-
function
|
|
611
|
-
const r = n === "hour" ?
|
|
612
|
-
for (let a =
|
|
613
|
-
i.push(
|
|
609
|
+
const Se = 36e5, Me = 864e5;
|
|
610
|
+
function en(e, t, n) {
|
|
611
|
+
const r = n === "hour" ? Se : Me, i = [];
|
|
612
|
+
for (let a = Ie(e, n); a <= t; a += r)
|
|
613
|
+
i.push(Te(a, n));
|
|
614
614
|
return i;
|
|
615
615
|
}
|
|
616
|
-
const
|
|
616
|
+
const Ce = [
|
|
617
617
|
{ id: "resource", label: "Resource", labelSource: "raw" },
|
|
618
618
|
{ id: "origin", label: "Herkomst", labelSource: "raw" }
|
|
619
|
-
],
|
|
620
|
-
function
|
|
619
|
+
], xe = Ce.map((e) => e.id);
|
|
620
|
+
function Ne(e, t) {
|
|
621
621
|
return `${e}.usage.${t}`;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function tn(e, t) {
|
|
624
624
|
return t.map((n) => ({
|
|
625
|
-
id:
|
|
625
|
+
id: Ne(e, n.unit),
|
|
626
626
|
label: n.label,
|
|
627
627
|
category: "Verbruik",
|
|
628
628
|
valueType: n.valueType ?? "count",
|
|
629
629
|
aggregation: "sum",
|
|
630
630
|
supportedDimensions: [
|
|
631
631
|
"provider",
|
|
632
|
-
...
|
|
632
|
+
...xe,
|
|
633
633
|
...n.extraDimensions ?? [],
|
|
634
634
|
"time"
|
|
635
635
|
]
|
|
636
636
|
}));
|
|
637
637
|
}
|
|
638
|
-
const
|
|
638
|
+
const ne = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), P = 200, U = 100, K = 200, B = 12, G = 4, ie = 4e3, C = 500, nn = 256 * 1024, ke = /* @__PURE__ */ new Set([
|
|
639
639
|
"heading",
|
|
640
640
|
"paragraph",
|
|
641
641
|
"list",
|
|
@@ -645,15 +645,15 @@ const te = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]
|
|
|
645
645
|
"table",
|
|
646
646
|
"kpi",
|
|
647
647
|
"callout"
|
|
648
|
-
]),
|
|
649
|
-
function
|
|
648
|
+
]), ve = ["http:", "https:", "mailto:", "tel:"], Le = /^[a-z][a-z0-9+.-]*:/i;
|
|
649
|
+
function re(e) {
|
|
650
650
|
const t = e.trim().replace(/^<|>$/g, "");
|
|
651
651
|
if (!t) return !1;
|
|
652
|
-
const n =
|
|
653
|
-
return n ?
|
|
652
|
+
const n = Le.exec(t)?.[0];
|
|
653
|
+
return n ? ve.includes(n.toLowerCase()) : !t.startsWith("//");
|
|
654
654
|
}
|
|
655
655
|
const Oe = /^[ \t]{0,3}\[([^\]]+)\]:[ \t]*(\S+).*$/gm;
|
|
656
|
-
function
|
|
656
|
+
function $e(e) {
|
|
657
657
|
let t = "", n = 0;
|
|
658
658
|
for (; n < e.length; ) {
|
|
659
659
|
const r = e[n] === "!" && e[n + 1] === "[";
|
|
@@ -672,7 +672,7 @@ function Le(e) {
|
|
|
672
672
|
continue;
|
|
673
673
|
}
|
|
674
674
|
const s = e.slice(i, a), l = e.slice(a + 2, o).trim().split(/\s+/)[0] ?? "";
|
|
675
|
-
t += r || !
|
|
675
|
+
t += r || !re(l) ? s : e.slice(n, o + 1), n = o + 1;
|
|
676
676
|
}
|
|
677
677
|
return t;
|
|
678
678
|
}
|
|
@@ -689,22 +689,22 @@ function F(e, t, n, r) {
|
|
|
689
689
|
}
|
|
690
690
|
return -1;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
return
|
|
692
|
+
function we(e) {
|
|
693
|
+
return $e(e).replace(
|
|
694
694
|
Oe,
|
|
695
|
-
(t, n, r) =>
|
|
695
|
+
(t, n, r) => re(r) ? t : ""
|
|
696
696
|
);
|
|
697
697
|
}
|
|
698
|
-
function u(e, t =
|
|
699
|
-
return typeof e == "string" ?
|
|
698
|
+
function u(e, t = ie) {
|
|
699
|
+
return typeof e == "string" ? we(e).slice(0, t) : "";
|
|
700
700
|
}
|
|
701
|
-
function Re(e, t =
|
|
701
|
+
function Re(e, t = ie) {
|
|
702
702
|
return typeof e == "string" ? e.slice(0, t) : "";
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
return typeof e == "string" &&
|
|
704
|
+
function De(e, t = "info") {
|
|
705
|
+
return typeof e == "string" && ne.has(e) ? e : t;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function rn(e, t = () => {
|
|
708
708
|
}) {
|
|
709
709
|
if (!Array.isArray(e)) return [];
|
|
710
710
|
const n = [];
|
|
@@ -715,7 +715,7 @@ function tn(e, t = () => {
|
|
|
715
715
|
}
|
|
716
716
|
if (!r || typeof r != "object") continue;
|
|
717
717
|
const i = r;
|
|
718
|
-
if (!
|
|
718
|
+
if (!ke.has(i.type)) {
|
|
719
719
|
t("unknown block type " + String(i.type));
|
|
720
720
|
continue;
|
|
721
721
|
}
|
|
@@ -804,7 +804,7 @@ function tn(e, t = () => {
|
|
|
804
804
|
}
|
|
805
805
|
const y = Array.isArray(c) ? c : [];
|
|
806
806
|
p.push(
|
|
807
|
-
s.map((T,
|
|
807
|
+
s.map((T, me) => u(y[me], C))
|
|
808
808
|
);
|
|
809
809
|
}
|
|
810
810
|
const d = u(i.caption, C);
|
|
@@ -828,7 +828,7 @@ function tn(e, t = () => {
|
|
|
828
828
|
if (!p || !d) continue;
|
|
829
829
|
const c = l?.tone;
|
|
830
830
|
s.push(
|
|
831
|
-
typeof c == "string" &&
|
|
831
|
+
typeof c == "string" && ne.has(c) ? { value: p, label: d, tone: c } : { value: p, label: d }
|
|
832
832
|
);
|
|
833
833
|
}
|
|
834
834
|
if (s.length === 0) {
|
|
@@ -848,7 +848,7 @@ function tn(e, t = () => {
|
|
|
848
848
|
n.push({
|
|
849
849
|
...a,
|
|
850
850
|
type: "callout",
|
|
851
|
-
tone:
|
|
851
|
+
tone: De(i.tone),
|
|
852
852
|
...s ? { title: s } : {},
|
|
853
853
|
text: o
|
|
854
854
|
});
|
|
@@ -858,10 +858,10 @@ function tn(e, t = () => {
|
|
|
858
858
|
}
|
|
859
859
|
return n;
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function an(e) {
|
|
862
862
|
return JSON.stringify(e).length;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function on(e) {
|
|
865
865
|
return {
|
|
866
866
|
blocks: e.length,
|
|
867
867
|
types: e.map((t) => t.type),
|
|
@@ -879,7 +879,7 @@ function j(e, t, n) {
|
|
|
879
879
|
...t.map((i) => `| ${i.map(H).join(" | ")} |`)
|
|
880
880
|
];
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Pe(e) {
|
|
883
883
|
switch (e.type) {
|
|
884
884
|
case "heading":
|
|
885
885
|
return [`${"#".repeat(e.level)} ${e.text}`];
|
|
@@ -913,11 +913,11 @@ function De(e) {
|
|
|
913
913
|
return (e.title ? `**${e.title}** ${e.text}` : e.text).split(/\r?\n/).map((n) => `> ${n}`);
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function sn(e, t) {
|
|
917
917
|
const n = [], r = e.some((i) => i.type === "heading" && i.level === 1);
|
|
918
918
|
t && !r && n.push(`# ${t}`);
|
|
919
919
|
for (const i of e) {
|
|
920
|
-
const a =
|
|
920
|
+
const a = Pe(i);
|
|
921
921
|
a.length > 0 && n.push(a.join(`
|
|
922
922
|
`));
|
|
923
923
|
}
|
|
@@ -926,26 +926,26 @@ function an(e, t) {
|
|
|
926
926
|
`)}
|
|
927
927
|
`;
|
|
928
928
|
}
|
|
929
|
-
const
|
|
930
|
-
function
|
|
929
|
+
const ae = (e) => `user:${e}`, oe = (e) => `team:${e}`;
|
|
930
|
+
function ln(e) {
|
|
931
931
|
const t = /* @__PURE__ */ new Set();
|
|
932
932
|
for (const n of e ?? [])
|
|
933
|
-
n?.id && (n.kind === "user" && t.add(
|
|
933
|
+
n?.id && (n.kind === "user" && t.add(ae(n.id)), n.kind === "team" && t.add(oe(n.id)));
|
|
934
934
|
return [...t].sort();
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
return [
|
|
936
|
+
function cn(e, t) {
|
|
937
|
+
return [ae(e), ...t.map(oe)];
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function un(e) {
|
|
940
940
|
const t = /* @__PURE__ */ new Set();
|
|
941
941
|
for (const n of e ?? [])
|
|
942
942
|
n?.kind && t.add(n.kind);
|
|
943
943
|
return [...t];
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function pn(e) {
|
|
946
946
|
return (e.startsWith("tool:") ? e.slice(5) : e).replace(/__/g, " · ").replace(/\./g, " · ").replace(/_/g, " ");
|
|
947
947
|
}
|
|
948
|
-
const
|
|
948
|
+
const dn = [
|
|
949
949
|
{ name: "text", type: "string" },
|
|
950
950
|
{ name: "subject", type: "string" },
|
|
951
951
|
{ name: "from", type: "string" },
|
|
@@ -968,7 +968,7 @@ const un = [
|
|
|
968
968
|
// een nieuw adres) — een stap die hierop leunt hoort dus een `condition` te hebben.
|
|
969
969
|
{ name: "contactId", type: "string" },
|
|
970
970
|
{ name: "companyId", type: "string" }
|
|
971
|
-
],
|
|
971
|
+
], fn = {
|
|
972
972
|
topics: [
|
|
973
973
|
{ name: "topic", type: "string" },
|
|
974
974
|
{ name: "confidence", type: "number" }
|
|
@@ -979,7 +979,7 @@ const un = [
|
|
|
979
979
|
],
|
|
980
980
|
extract: []
|
|
981
981
|
};
|
|
982
|
-
function
|
|
982
|
+
function Ue(e) {
|
|
983
983
|
switch (e.kind) {
|
|
984
984
|
case "user":
|
|
985
985
|
return `user:${e.userId}`;
|
|
@@ -989,7 +989,7 @@ function Pe(e) {
|
|
|
989
989
|
return "org";
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function mn(e) {
|
|
993
993
|
if (typeof e != "string") return;
|
|
994
994
|
const t = e.trim();
|
|
995
995
|
if (t === "org") return { kind: "org" };
|
|
@@ -1001,10 +1001,10 @@ function dn(e) {
|
|
|
1001
1001
|
if (r === "team") return { kind: "team", teamId: i };
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1005
|
-
return
|
|
1004
|
+
function Ke(e) {
|
|
1005
|
+
return Ue(e);
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function gn(e) {
|
|
1008
1008
|
switch (e.kind) {
|
|
1009
1009
|
case "personal":
|
|
1010
1010
|
return { kind: "user", userId: e.userId };
|
|
@@ -1014,24 +1014,24 @@ function fn(e) {
|
|
|
1014
1014
|
return { kind: "org" };
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return
|
|
1017
|
+
function hn(e) {
|
|
1018
|
+
return Ke(e);
|
|
1019
1019
|
}
|
|
1020
|
-
const
|
|
1021
|
-
function
|
|
1022
|
-
return
|
|
1020
|
+
const Be = ["done", "escalated", "failed", "timed_out", "stopped"], Ge = ["awaiting_approval", "awaiting_reply"];
|
|
1021
|
+
function Fe(e) {
|
|
1022
|
+
return Be.includes(e);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return
|
|
1024
|
+
function yn(e) {
|
|
1025
|
+
return Fe(e);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1027
|
+
function bn(e) {
|
|
1028
|
+
return Ge.includes(e);
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function An(e, t) {
|
|
1031
1031
|
const n = e.labels ?? [];
|
|
1032
1032
|
return n.find((r) => r.locale === t)?.label ?? n[0]?.label ?? e.url;
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function En(e, t, n) {
|
|
1035
1035
|
const r = e.translations ?? [];
|
|
1036
1036
|
return r.find((i) => i.locale === t) ?? (n ? r.find((i) => i.locale === n) : void 0) ?? { locale: t };
|
|
1037
1037
|
}
|
|
@@ -1050,36 +1050,36 @@ const V = [
|
|
|
1050
1050
|
{ code: "fi", label: "Suomi", english: "Finnish" },
|
|
1051
1051
|
{ code: "tr", label: "Türkçe", english: "Turkish" }
|
|
1052
1052
|
];
|
|
1053
|
-
function
|
|
1053
|
+
function se(e) {
|
|
1054
1054
|
const t = (e ?? "").toLowerCase();
|
|
1055
1055
|
return V.find((n) => n.code === t) ?? V.find((n) => n.code === t.split("-")[0]);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return
|
|
1057
|
+
function _n(e) {
|
|
1058
|
+
return se(e)?.label ?? e;
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1061
|
-
const t =
|
|
1060
|
+
function Tn(e) {
|
|
1061
|
+
const t = se(e);
|
|
1062
1062
|
return t ? t.english === t.label ? `${t.english} (${t.code})` : `${t.english} — ${t.label} (${t.code})` : e;
|
|
1063
1063
|
}
|
|
1064
|
-
const
|
|
1065
|
-
function
|
|
1064
|
+
const le = 3;
|
|
1065
|
+
function He(e, t) {
|
|
1066
1066
|
const n = /* @__PURE__ */ new Set();
|
|
1067
1067
|
let r = 1, i = t.get(e)?.parentId;
|
|
1068
1068
|
for (; i; ) {
|
|
1069
|
-
if (n.has(i) || (n.add(i), r++, r >
|
|
1069
|
+
if (n.has(i) || (n.add(i), r++, r > le + 1)) return 1 / 0;
|
|
1070
1070
|
i = t.get(i)?.parentId;
|
|
1071
1071
|
}
|
|
1072
1072
|
return r;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function In(e, t, n) {
|
|
1075
1075
|
if (!e) return !0;
|
|
1076
1076
|
if (e === t) return !1;
|
|
1077
1077
|
const r = new Map(n.map((o) => [o.id, o]));
|
|
1078
|
-
if (!r.has(e) || t &&
|
|
1079
|
-
const i =
|
|
1080
|
-
return i + a <=
|
|
1078
|
+
if (!r.has(e) || t && je(e, t, r)) return !1;
|
|
1079
|
+
const i = He(e, r), a = t ? ce(t, n) : 1;
|
|
1080
|
+
return i + a <= le;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function je(e, t, n) {
|
|
1083
1083
|
const r = /* @__PURE__ */ new Set();
|
|
1084
1084
|
let i = n.get(e)?.parentId;
|
|
1085
1085
|
for (; i; ) {
|
|
@@ -1089,27 +1089,27 @@ function He(e, t, n) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
return !1;
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function ce(e, t, n = /* @__PURE__ */ new Set()) {
|
|
1093
1093
|
if (n.has(e)) return 1;
|
|
1094
1094
|
n.add(e);
|
|
1095
1095
|
const r = t.filter((i) => i.parentId === e);
|
|
1096
|
-
return r.length ? 1 + Math.max(...r.map((i) =>
|
|
1096
|
+
return r.length ? 1 + Math.max(...r.map((i) => ce(i.id, t, n))) : 1;
|
|
1097
1097
|
}
|
|
1098
|
-
const
|
|
1099
|
-
function
|
|
1100
|
-
return e.defaultLocale || e.locale ||
|
|
1098
|
+
const Ve = "en";
|
|
1099
|
+
function Xe(e) {
|
|
1100
|
+
return e.defaultLocale || e.locale || Ve;
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function Sn(e) {
|
|
1103
1103
|
const t = /* @__PURE__ */ new Set(), n = [];
|
|
1104
|
-
for (const r of [
|
|
1104
|
+
for (const r of [Xe(e), ...e.locales ?? []])
|
|
1105
1105
|
!r || t.has(r) || (t.add(r), n.push(r));
|
|
1106
1106
|
return n;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Mn(e, t, n) {
|
|
1109
1109
|
const r = e.translations ?? [];
|
|
1110
1110
|
return r.find((i) => i.locale === t)?.name ?? (n ? r.find((i) => i.locale === n)?.name : void 0) ?? e.name;
|
|
1111
1111
|
}
|
|
1112
|
-
const
|
|
1112
|
+
const We = 20, Ye = 20, x = 300;
|
|
1113
1113
|
function g(e) {
|
|
1114
1114
|
return e.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, " ").replace(/\s+/g, " ").trim();
|
|
1115
1115
|
}
|
|
@@ -1119,7 +1119,7 @@ function ze(e) {
|
|
|
1119
1119
|
const n = t.slice(0, x), r = Math.max(n.lastIndexOf(". "), n.lastIndexOf("! "), n.lastIndexOf("? "));
|
|
1120
1120
|
return r > x * 0.6 ? n.slice(0, r + 1) : `${n.trimEnd()}…`;
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1122
|
+
function Cn(e, t) {
|
|
1123
1123
|
const n = ze(t.text), r = g(n);
|
|
1124
1124
|
if (!r || (e.examples ?? []).some((o) => g(o) === r)) return null;
|
|
1125
1125
|
const i = e.exampleCandidates ?? [], a = i.findIndex((o) => g(o.text) === r);
|
|
@@ -1128,27 +1128,27 @@ function Sn(e, t) {
|
|
|
1128
1128
|
const o = [...i];
|
|
1129
1129
|
return o[a] = { ...o[a], corrected: !0, addedAt: t.addedAt }, X(o);
|
|
1130
1130
|
}
|
|
1131
|
-
return X([{ ...t, text: n }, ...i]).slice(0,
|
|
1131
|
+
return X([{ ...t, text: n }, ...i]).slice(0, Ye);
|
|
1132
1132
|
}
|
|
1133
1133
|
function X(e) {
|
|
1134
1134
|
return [...e].sort((t, n) => Number(n.corrected) - Number(t.corrected) || n.addedAt - t.addedAt);
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function xn(e, t) {
|
|
1137
1137
|
const n = g(t), r = (e.examples ?? []).filter((a) => a.trim());
|
|
1138
|
-
return { examples: r.some((a) => g(a) === n) ? r : [...r, t].slice(-
|
|
1138
|
+
return { examples: r.some((a) => g(a) === n) ? r : [...r, t].slice(-We), exampleCandidates: qe(e, t) };
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function qe(e, t) {
|
|
1141
1141
|
const n = g(t);
|
|
1142
1142
|
return (e.exampleCandidates ?? []).filter((r) => g(r.text) !== n);
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function Je(e, t) {
|
|
1145
1145
|
const n = e.ownerScope;
|
|
1146
1146
|
return n ? n.kind === "org" ? !0 : n.kind === "team" ? !!t && n.teamId === t : !1 : !1;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return e.filter((n) =>
|
|
1148
|
+
function Nn(e, t) {
|
|
1149
|
+
return e.filter((n) => Je(n, t));
|
|
1150
1150
|
}
|
|
1151
|
-
const
|
|
1151
|
+
const ue = [
|
|
1152
1152
|
{
|
|
1153
1153
|
id: "openai",
|
|
1154
1154
|
attachmentKinds: ["image", "pdf"],
|
|
@@ -1240,53 +1240,69 @@ const ce = [
|
|
|
1240
1240
|
}
|
|
1241
1241
|
];
|
|
1242
1242
|
function _(e) {
|
|
1243
|
-
return
|
|
1243
|
+
return ue.find((t) => t.id === e);
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function kn(e) {
|
|
1246
1246
|
return _(e)?.label ?? e;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function vn(e, t = "gpt-5-mini") {
|
|
1249
1249
|
return _(e)?.defaultModel ?? t;
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return
|
|
1251
|
+
function Ln(e) {
|
|
1252
|
+
return ue.filter((t) => t.capabilities.includes(e));
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function On(e) {
|
|
1255
1255
|
const t = _(e);
|
|
1256
1256
|
return !!t && !t.baseUrl;
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function $n(e, t) {
|
|
1259
1259
|
return t === "text" ? !0 : _(e)?.attachmentKinds?.includes(t) === !0;
|
|
1260
1260
|
}
|
|
1261
|
-
|
|
1262
|
-
|
|
1261
|
+
function wn(e, t) {
|
|
1262
|
+
if (!e.enabled) return "ok";
|
|
1263
|
+
const n = W(e.hardLimitNanos), r = W(e.softLimitNanos);
|
|
1264
|
+
return n !== void 0 && t >= n ? "hard" : r !== void 0 && t >= r ? "soft" : "ok";
|
|
1265
|
+
}
|
|
1266
|
+
function W(e) {
|
|
1267
|
+
return typeof e == "number" ? e : void 0;
|
|
1268
|
+
}
|
|
1269
|
+
function Qe(e, t = "month") {
|
|
1270
|
+
const n = new Date(e);
|
|
1271
|
+
return Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), 1);
|
|
1272
|
+
}
|
|
1273
|
+
function Rn(e, t = "month") {
|
|
1274
|
+
const n = new Date(Qe(e, t));
|
|
1275
|
+
return `${n.getUTCFullYear()}-${String(n.getUTCMonth() + 1).padStart(2, "0")}`;
|
|
1276
|
+
}
|
|
1277
|
+
const Dn = /* @__PURE__ */ new Set(["mail", "message"]);
|
|
1278
|
+
function Ze(e, t) {
|
|
1263
1279
|
const n = e.settings?.signatures?.[t];
|
|
1264
1280
|
return !n || !n.enabled || !n.body || n.body.trim() === "" ? null : n;
|
|
1265
1281
|
}
|
|
1266
|
-
function
|
|
1282
|
+
function Pn(e, t, n, r = "html") {
|
|
1267
1283
|
if (!e) return n;
|
|
1268
|
-
const i =
|
|
1284
|
+
const i = Ze(e, t);
|
|
1269
1285
|
return i ? `${n}${r === "text" ? `
|
|
1270
1286
|
|
|
1271
1287
|
` : t === "mail" ? "<br><br>-- <br>" : "<br><br>"}${i.body}` : n;
|
|
1272
1288
|
}
|
|
1273
|
-
function
|
|
1289
|
+
function Un(e) {
|
|
1274
1290
|
return e.endpoints ?? [];
|
|
1275
1291
|
}
|
|
1276
|
-
const
|
|
1292
|
+
const Kn = (e) => !!e.assignedUserId || !!e.assignedInboxId, Bn = (e) => e.status === "closed", Gn = (e) => ({
|
|
1277
1293
|
urgent: 10,
|
|
1278
1294
|
high: 5,
|
|
1279
1295
|
normal: 2,
|
|
1280
1296
|
low: 1
|
|
1281
|
-
})[e.priority] || 0,
|
|
1282
|
-
function
|
|
1297
|
+
})[e.priority] || 0, Fn = (e, t = 30) => e.title?.length <= t ? e.title : `${e.title.substring(0, t)}...`;
|
|
1298
|
+
function Hn(e, t) {
|
|
1283
1299
|
return e.lastActivityAt ? !(e.seenBy ?? []).includes(t) : !1;
|
|
1284
1300
|
}
|
|
1285
|
-
const
|
|
1286
|
-
function
|
|
1301
|
+
const jn = 1e3, Vn = 2e3, Xn = 500, Wn = 12e3, Yn = 4e3, et = ["contact", "company"];
|
|
1302
|
+
function zn(e) {
|
|
1287
1303
|
if (!e) return !1;
|
|
1288
1304
|
const t = e.slice(0, e.indexOf(":"));
|
|
1289
|
-
return
|
|
1305
|
+
return et.includes(t);
|
|
1290
1306
|
}
|
|
1291
1307
|
const v = {
|
|
1292
1308
|
// The lower bounds are deliberately generous: service ranges (0800/0900) are
|
|
@@ -1311,10 +1327,10 @@ const v = {
|
|
|
1311
1327
|
PL: { callingCode: "48", nsnMin: 9, nsnMax: 9 },
|
|
1312
1328
|
US: { callingCode: "1", nsnMin: 10, nsnMax: 10 },
|
|
1313
1329
|
CA: { callingCode: "1", nsnMin: 10, nsnMax: 10 }
|
|
1314
|
-
},
|
|
1330
|
+
}, tt = "NL", nt = 15, it = 8, rt = Array.from(
|
|
1315
1331
|
new Set(Object.values(v).map((e) => e.callingCode))
|
|
1316
1332
|
).sort((e, t) => t.length - e.length);
|
|
1317
|
-
function
|
|
1333
|
+
function Y(e) {
|
|
1318
1334
|
if (e)
|
|
1319
1335
|
return v[e.trim().toUpperCase()];
|
|
1320
1336
|
}
|
|
@@ -1322,8 +1338,8 @@ function E(e, t) {
|
|
|
1322
1338
|
return e.length >= t.nsnMin && e.length <= t.nsnMax;
|
|
1323
1339
|
}
|
|
1324
1340
|
function z(e) {
|
|
1325
|
-
if (e.length >
|
|
1326
|
-
for (const t of
|
|
1341
|
+
if (e.length > nt) return null;
|
|
1342
|
+
for (const t of rt) {
|
|
1327
1343
|
if (!e.startsWith(t)) continue;
|
|
1328
1344
|
const n = e.slice(t.length);
|
|
1329
1345
|
for (const r of Object.values(v)) {
|
|
@@ -1333,31 +1349,31 @@ function z(e) {
|
|
|
1333
1349
|
}
|
|
1334
1350
|
return null;
|
|
1335
1351
|
}
|
|
1336
|
-
return e.length <
|
|
1352
|
+
return e.length < it ? null : `+${e}`;
|
|
1337
1353
|
}
|
|
1338
|
-
function
|
|
1354
|
+
function at(e) {
|
|
1339
1355
|
let t = e.trim();
|
|
1340
1356
|
const n = t.match(/^(sips?|tel|whatsapp):/i);
|
|
1341
1357
|
n && (t = t.slice(n[0].length));
|
|
1342
1358
|
const r = t.indexOf("@");
|
|
1343
1359
|
return r >= 0 && (t = t.slice(0, r)), t.trim();
|
|
1344
1360
|
}
|
|
1345
|
-
function
|
|
1361
|
+
function qn(e) {
|
|
1346
1362
|
if (!e) return !1;
|
|
1347
1363
|
const t = e.indexOf("@");
|
|
1348
1364
|
if (t <= 0) return !1;
|
|
1349
1365
|
const n = e.slice(0, t).trim();
|
|
1350
1366
|
return !/^[+\d\s().-]+$/.test(n);
|
|
1351
1367
|
}
|
|
1352
|
-
function
|
|
1368
|
+
function q(e, t) {
|
|
1353
1369
|
if (!e) return null;
|
|
1354
|
-
const n =
|
|
1370
|
+
const n = at(e);
|
|
1355
1371
|
if (!n) return null;
|
|
1356
1372
|
const r = n.startsWith("+"), i = n.replace(/\D/g, "");
|
|
1357
1373
|
if (!i) return null;
|
|
1358
1374
|
if (r) return z(i);
|
|
1359
1375
|
if (i.startsWith("00")) return z(i.slice(2));
|
|
1360
|
-
const a =
|
|
1376
|
+
const a = Y(t) ?? Y(tt);
|
|
1361
1377
|
if (!a) return null;
|
|
1362
1378
|
const o = a.trunkPrefix;
|
|
1363
1379
|
if (o && i.startsWith(o)) {
|
|
@@ -1370,22 +1386,22 @@ function Y(e, t) {
|
|
|
1370
1386
|
}
|
|
1371
1387
|
return !o && E(i, a) ? `+${a.callingCode}${i}` : null;
|
|
1372
1388
|
}
|
|
1373
|
-
function
|
|
1389
|
+
function Jn(e, t = 9) {
|
|
1374
1390
|
const n = (e ?? "").replace(/\D/g, "");
|
|
1375
1391
|
return n.length < t ? null : n.slice(-t);
|
|
1376
1392
|
}
|
|
1377
|
-
function
|
|
1393
|
+
function pe(e) {
|
|
1378
1394
|
if (!e) return null;
|
|
1379
1395
|
const t = e.trim().toLowerCase(), n = t.lastIndexOf("@");
|
|
1380
1396
|
if (n <= 0 || n === t.length - 1) return null;
|
|
1381
1397
|
const r = t.slice(0, n).split("+")[0], i = t.slice(n + 1);
|
|
1382
1398
|
return !r || !i.includes(".") ? null : `${r}@${i}`;
|
|
1383
1399
|
}
|
|
1384
|
-
function
|
|
1385
|
-
const t =
|
|
1400
|
+
function Qn(e) {
|
|
1401
|
+
const t = pe(e);
|
|
1386
1402
|
return t ? t.slice(t.lastIndexOf("@") + 1) : null;
|
|
1387
1403
|
}
|
|
1388
|
-
const
|
|
1404
|
+
const ot = /* @__PURE__ */ new Set([
|
|
1389
1405
|
"co.uk",
|
|
1390
1406
|
"org.uk",
|
|
1391
1407
|
"gov.uk",
|
|
@@ -1395,14 +1411,14 @@ const rt = /* @__PURE__ */ new Set([
|
|
|
1395
1411
|
"com.br",
|
|
1396
1412
|
"co.za"
|
|
1397
1413
|
]);
|
|
1398
|
-
function
|
|
1414
|
+
function st(e) {
|
|
1399
1415
|
if (!e) return null;
|
|
1400
1416
|
const t = e.trim().toLowerCase().replace(/\.$/, "").split(".").filter(Boolean);
|
|
1401
1417
|
if (t.length < 2) return null;
|
|
1402
1418
|
const n = t.slice(-2).join(".");
|
|
1403
|
-
return
|
|
1419
|
+
return ot.has(n) && t.length >= 3 ? t.slice(-3).join(".") : n;
|
|
1404
1420
|
}
|
|
1405
|
-
const
|
|
1421
|
+
const lt = /* @__PURE__ */ new Set([
|
|
1406
1422
|
"gmail.com",
|
|
1407
1423
|
"googlemail.com",
|
|
1408
1424
|
"outlook.com",
|
|
@@ -1447,44 +1463,44 @@ const ot = /* @__PURE__ */ new Set([
|
|
|
1447
1463
|
"proximus.be",
|
|
1448
1464
|
"scarlet.be"
|
|
1449
1465
|
]);
|
|
1450
|
-
function
|
|
1451
|
-
const t =
|
|
1452
|
-
return t ?
|
|
1466
|
+
function Zn(e) {
|
|
1467
|
+
const t = st(e);
|
|
1468
|
+
return t ? lt.has(t) : !1;
|
|
1453
1469
|
}
|
|
1454
|
-
function
|
|
1470
|
+
function ei(e) {
|
|
1455
1471
|
if (!e) return !1;
|
|
1456
1472
|
const t = e.trim().toLowerCase();
|
|
1457
1473
|
return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
|
|
1458
1474
|
}
|
|
1459
|
-
function
|
|
1475
|
+
function ti(e, t, n) {
|
|
1460
1476
|
if (!e || !t) return null;
|
|
1461
1477
|
const r = e.trim().toLowerCase();
|
|
1462
1478
|
if (r === "tel" || r === "sms" || r === "whatsapp") {
|
|
1463
|
-
const a =
|
|
1479
|
+
const a = q(t, n);
|
|
1464
1480
|
return a ? `tel:${a}` : null;
|
|
1465
1481
|
}
|
|
1466
1482
|
if (r === "fax") {
|
|
1467
|
-
const a =
|
|
1483
|
+
const a = q(t, n);
|
|
1468
1484
|
return a ? `fax:${a}` : null;
|
|
1469
1485
|
}
|
|
1470
1486
|
if (r === "mailto" || r === "email") {
|
|
1471
|
-
const a =
|
|
1487
|
+
const a = pe(t);
|
|
1472
1488
|
return a ? `mailto:${a}` : null;
|
|
1473
1489
|
}
|
|
1474
1490
|
const i = t.trim().toLowerCase();
|
|
1475
1491
|
return i ? `${r}:${i}` : null;
|
|
1476
1492
|
}
|
|
1477
|
-
const
|
|
1478
|
-
function
|
|
1493
|
+
const ct = /(\*\*|__)(?=\S)([\s\S]*?\S)\1/g, ut = /(\*|_)(?=\S)([^*_\n]*?\S)\1/g;
|
|
1494
|
+
function ni(e) {
|
|
1479
1495
|
if (typeof e != "string" || !e) return "";
|
|
1480
1496
|
let t = e;
|
|
1481
1497
|
return t = t.replace(/```[a-z]*\n?/gi, "").replace(/~~~[a-z]*\n?/gi, ""), t = t.replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\[[^\]]*\]/g, "$1"), t = t.replace(/<((?:https?|mailto):[^>\s]+)>/gi, "$1"), t = t.split(`
|
|
1482
1498
|
`).map(
|
|
1483
1499
|
(n) => n.replace(/^\s{0,3}#{1,6}\s+/, "").replace(/^\s{0,3}>\s?/, "").replace(/^\s*[-*+]\s+/, "").replace(/^\s*\d+[.)]\s+/, "").replace(/^\s*(?:[-*_]\s*){3,}$/, "")
|
|
1484
1500
|
).join(`
|
|
1485
|
-
`), t = t.replace(
|
|
1501
|
+
`), t = t.replace(ct, "$2"), t = t.replace(ut, "$2"), t = t.replace(/~~(?=\S)([\s\S]*?\S)~~/g, "$1"), t = t.replace(/`([^`\n]+)`/g, "$1"), t.replace(/\s+/g, " ").trim();
|
|
1486
1502
|
}
|
|
1487
|
-
const
|
|
1503
|
+
const pt = [
|
|
1488
1504
|
/<blockquote/i,
|
|
1489
1505
|
/class="?gmail_quote/i,
|
|
1490
1506
|
// Gmail quote container
|
|
@@ -1497,17 +1513,17 @@ const ct = [
|
|
|
1497
1513
|
// Outlook underscore separator before "From:"
|
|
1498
1514
|
/\bOn\b[\s\S]{0,200}?\bwrote:/i
|
|
1499
1515
|
// Gmail "On <date> <name> wrote:"
|
|
1500
|
-
],
|
|
1501
|
-
function
|
|
1516
|
+
], J = /^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i, dt = /^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;
|
|
1517
|
+
function ft(e) {
|
|
1502
1518
|
const t = e.split(`
|
|
1503
1519
|
`);
|
|
1504
1520
|
for (let n = 0; n < t.length; n++)
|
|
1505
|
-
if (
|
|
1521
|
+
if (dt.test(t[n]) || J.test(t[n]) && t.slice(n + 1, n + 4).some((r) => J.test(r)))
|
|
1506
1522
|
return t.slice(0, n).join(`
|
|
1507
1523
|
`).trim();
|
|
1508
1524
|
return e;
|
|
1509
1525
|
}
|
|
1510
|
-
function
|
|
1526
|
+
function Q(e) {
|
|
1511
1527
|
let t = e;
|
|
1512
1528
|
return t = t.replace(/<(script|style)[\s\S]*?<\/\1>/gi, ""), t = t.replace(/<br\s*\/?>/gi, `
|
|
1513
1529
|
`), t = t.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi, `
|
|
@@ -1515,38 +1531,38 @@ function J(e) {
|
|
|
1515
1531
|
`), t = t.replace(/<\/(div|li|tr)>/gi, `
|
|
1516
1532
|
`), t = t.replace(/<\/(td|th)>/gi, " "), t = t.replace(/<[^>]+>/g, ""), t = t.replace(/<[^>]*$/, ""), t;
|
|
1517
1533
|
}
|
|
1518
|
-
function Q(e) {
|
|
1519
|
-
return !Number.isInteger(e) || e < 0 || e > 1114111 ? null : String.fromCodePoint(e);
|
|
1520
|
-
}
|
|
1521
1534
|
function Z(e) {
|
|
1522
|
-
return
|
|
1535
|
+
return !Number.isInteger(e) || e < 0 || e > 1114111 ? null : String.fromCodePoint(e);
|
|
1523
1536
|
}
|
|
1524
1537
|
function ee(e) {
|
|
1538
|
+
return e.replace(/ /gi, " ").replace(/</gi, "<").replace(/>/gi, ">").replace(/"/gi, '"').replace(/&#(\d+);/g, (t, n) => Z(Number(n)) ?? t).replace(/&#x([0-9a-f]+);/gi, (t, n) => Z(parseInt(n, 16)) ?? t).replace(/&/gi, "&");
|
|
1539
|
+
}
|
|
1540
|
+
function te(e) {
|
|
1525
1541
|
return e.replace(/\r/g, "").replace(/[ \t]+/g, " ").replace(/ *\n */g, `
|
|
1526
1542
|
`).replace(/\n{3,}/g, `
|
|
1527
1543
|
|
|
1528
1544
|
`).trim();
|
|
1529
1545
|
}
|
|
1530
|
-
function
|
|
1546
|
+
function ii(e) {
|
|
1531
1547
|
if (typeof e != "string" || !e) return "";
|
|
1532
1548
|
let t = e.length;
|
|
1533
|
-
for (const a of
|
|
1549
|
+
for (const a of pt) {
|
|
1534
1550
|
const o = e.search(a);
|
|
1535
1551
|
o >= 0 && o < t && (t = o);
|
|
1536
1552
|
}
|
|
1537
1553
|
const n = e.slice(0, t);
|
|
1538
|
-
let r = ee(
|
|
1539
|
-
return r || (r = ee(
|
|
1554
|
+
let r = te(ee(Q(n)));
|
|
1555
|
+
return r || (r = te(ee(Q(e)))), ft(r) || r;
|
|
1540
1556
|
}
|
|
1541
|
-
const
|
|
1542
|
-
function
|
|
1543
|
-
return !!(e &&
|
|
1557
|
+
const mt = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, gt = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
|
|
1558
|
+
function ri(e, t) {
|
|
1559
|
+
return !!(e && mt.test(e) || t && gt.test(t));
|
|
1544
1560
|
}
|
|
1545
|
-
const
|
|
1546
|
-
function
|
|
1547
|
-
return e >=
|
|
1561
|
+
const ht = 3, yt = 600;
|
|
1562
|
+
function ai(e, t) {
|
|
1563
|
+
return e >= ht || t >= yt;
|
|
1548
1564
|
}
|
|
1549
|
-
const
|
|
1565
|
+
const bt = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), At = /* @__PURE__ */ new Set([
|
|
1550
1566
|
"text/plain",
|
|
1551
1567
|
"text/markdown",
|
|
1552
1568
|
"text/csv",
|
|
@@ -1555,29 +1571,29 @@ const ht = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "ima
|
|
|
1555
1571
|
"application/xml",
|
|
1556
1572
|
"text/xml"
|
|
1557
1573
|
]);
|
|
1558
|
-
function
|
|
1574
|
+
function Et(e) {
|
|
1559
1575
|
const t = (e ?? "").trim().toLowerCase().split(";")[0];
|
|
1560
|
-
return t ?
|
|
1576
|
+
return t ? bt.has(t) ? "image" : t === "application/pdf" ? "pdf" : At.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
|
|
1561
1577
|
}
|
|
1562
|
-
const h = 1024 * 1024,
|
|
1578
|
+
const h = 1024 * 1024, _t = {
|
|
1563
1579
|
image: 5 * h,
|
|
1564
1580
|
pdf: 20 * h,
|
|
1565
1581
|
text: 1 * h,
|
|
1566
1582
|
audio: 20 * h
|
|
1567
|
-
},
|
|
1568
|
-
function
|
|
1569
|
-
const n =
|
|
1570
|
-
return n === "unsupported" ? "unsupported" : t >
|
|
1583
|
+
}, oi = 25 * h, si = 5;
|
|
1584
|
+
function li(e, t) {
|
|
1585
|
+
const n = Et(e);
|
|
1586
|
+
return n === "unsupported" ? "unsupported" : t > _t[n] ? "too-large" : null;
|
|
1571
1587
|
}
|
|
1572
|
-
function
|
|
1573
|
-
const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, i = t.intents.filter((o) => !n.has(o.intent)).map((o) =>
|
|
1588
|
+
function Tt(e, t) {
|
|
1589
|
+
const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, i = t.intents.filter((o) => !n.has(o.intent)).map((o) => St(o, r[o.intent]));
|
|
1574
1590
|
if (!e.extraIntents || e.extraIntents.length === 0) return i;
|
|
1575
1591
|
const a = new Set(i.map((o) => o.intent));
|
|
1576
1592
|
for (const o of e.extraIntents)
|
|
1577
1593
|
a.has(o.intent) || (i.push(o), a.add(o.intent));
|
|
1578
1594
|
return i;
|
|
1579
1595
|
}
|
|
1580
|
-
function
|
|
1596
|
+
function It(e, t) {
|
|
1581
1597
|
const n = {};
|
|
1582
1598
|
for (const r of e.intents) {
|
|
1583
1599
|
if (!r.togglable) continue;
|
|
@@ -1586,46 +1602,46 @@ function _t(e, t) {
|
|
|
1586
1602
|
}
|
|
1587
1603
|
return n;
|
|
1588
1604
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const n =
|
|
1605
|
+
function ci(e, t) {
|
|
1606
|
+
const n = It(e, t);
|
|
1591
1607
|
return Object.entries(n).filter(([, r]) => !r).map(([r]) => r);
|
|
1592
1608
|
}
|
|
1593
|
-
function
|
|
1609
|
+
function St(e, t) {
|
|
1594
1610
|
return t ? {
|
|
1595
1611
|
intent: t.intent ?? e.intent,
|
|
1596
1612
|
targetSchemes: t.targetSchemes ?? e.targetSchemes,
|
|
1597
1613
|
transport: t.transport ?? e.transport
|
|
1598
1614
|
} : e;
|
|
1599
1615
|
}
|
|
1600
|
-
function
|
|
1616
|
+
function ui(e, t) {
|
|
1601
1617
|
const n = [];
|
|
1602
1618
|
for (const r of e) {
|
|
1603
1619
|
if (!r.enabled) continue;
|
|
1604
1620
|
const i = t[r.providerId];
|
|
1605
1621
|
if (i)
|
|
1606
|
-
for (const a of
|
|
1622
|
+
for (const a of Tt(r, i))
|
|
1607
1623
|
n.push({ channel: r, description: i, capability: a });
|
|
1608
1624
|
}
|
|
1609
1625
|
return n;
|
|
1610
1626
|
}
|
|
1611
|
-
function
|
|
1627
|
+
function pi(e, t) {
|
|
1612
1628
|
return t.filter((n) => n.capability.intent === e);
|
|
1613
1629
|
}
|
|
1614
|
-
function
|
|
1630
|
+
function Mt(e, t) {
|
|
1615
1631
|
return t.filter((n) => n.capability.targetSchemes.includes(e));
|
|
1616
1632
|
}
|
|
1617
|
-
function
|
|
1618
|
-
return
|
|
1633
|
+
function di(e, t) {
|
|
1634
|
+
return Mt(e.scheme, t);
|
|
1619
1635
|
}
|
|
1620
|
-
function
|
|
1636
|
+
function fi(e, t, n) {
|
|
1621
1637
|
const r = [];
|
|
1622
1638
|
for (const i of e)
|
|
1623
1639
|
for (const a of n)
|
|
1624
1640
|
a.capability.intent === t && a.capability.targetSchemes.includes(i.scheme) && r.push({ channelIntent: a, endpoint: i });
|
|
1625
1641
|
return r;
|
|
1626
1642
|
}
|
|
1627
|
-
var
|
|
1628
|
-
const
|
|
1643
|
+
var Ct = /* @__PURE__ */ ((e) => (e.MAILTO = "mailto", e.SIP = "sip", e.TEL = "tel", e.WEBHOOK = "webhook", e.USERNAME = "username", e.ID = "id", e.CUSTOM = "custom", e.URL = "url", e.TELEGRAM = "telegram", e.WHATSAPP = "whatsapp", e.MESSENGER = "messenger", e.INSTAGRAM = "instagram", e.VIBER = "viber", e.SMS = "sms", e.FAX = "fax", e.TEAMS = "teams", e.CALENDAR = "calendar", e))(Ct || {});
|
|
1644
|
+
const xt = {
|
|
1629
1645
|
mailto: "mail",
|
|
1630
1646
|
sip: "tel",
|
|
1631
1647
|
tel: "tel",
|
|
@@ -1647,10 +1663,10 @@ const Mt = {
|
|
|
1647
1663
|
id: "note",
|
|
1648
1664
|
custom: "note"
|
|
1649
1665
|
};
|
|
1650
|
-
function
|
|
1651
|
-
return e ?
|
|
1666
|
+
function mi(e) {
|
|
1667
|
+
return e ? xt[e] ?? "note" : "note";
|
|
1652
1668
|
}
|
|
1653
|
-
const
|
|
1669
|
+
const gi = "message_window", hi = "message_templates", yi = {
|
|
1654
1670
|
// E-mail
|
|
1655
1671
|
FROM: "from",
|
|
1656
1672
|
TO: "to",
|
|
@@ -1667,26 +1683,26 @@ const pi = "message_window", di = "message_templates", fi = {
|
|
|
1667
1683
|
// Voice/conference
|
|
1668
1684
|
HOST: "host",
|
|
1669
1685
|
PARTICIPANT: "participant"
|
|
1670
|
-
},
|
|
1671
|
-
function
|
|
1686
|
+
}, bi = (e, t) => ({ intent: e, ...t }), Ai = "folder_management", Ei = "remote_search", _i = { ok: !1, code: "UNSUPPORTED", message: "Provider does not support this op" }, de = "auth";
|
|
1687
|
+
function fe(e) {
|
|
1672
1688
|
const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
|
|
1673
1689
|
return t ? t[1] : null;
|
|
1674
1690
|
}
|
|
1675
|
-
function
|
|
1676
|
-
const t =
|
|
1677
|
-
return t ? t !==
|
|
1691
|
+
function Ti(e) {
|
|
1692
|
+
const t = fe(e);
|
|
1693
|
+
return t ? t !== de : typeof e == "string" && e.startsWith("/wake");
|
|
1678
1694
|
}
|
|
1679
|
-
function
|
|
1680
|
-
return typeof e != "string" || e === "" || e === "/" ? !0 :
|
|
1695
|
+
function Ii(e) {
|
|
1696
|
+
return typeof e != "string" || e === "" || e === "/" ? !0 : fe(e) === de;
|
|
1681
1697
|
}
|
|
1682
|
-
function
|
|
1698
|
+
function Nt(e) {
|
|
1683
1699
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1684
1700
|
}
|
|
1685
|
-
function
|
|
1686
|
-
const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : "/" +
|
|
1701
|
+
function kt(e) {
|
|
1702
|
+
const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : "/" + Nt(r)).join("");
|
|
1687
1703
|
return new RegExp(`^${n}\\/?$`);
|
|
1688
1704
|
}
|
|
1689
|
-
function
|
|
1705
|
+
function vt(e, t) {
|
|
1690
1706
|
const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean), i = {};
|
|
1691
1707
|
return n.forEach((a, o) => {
|
|
1692
1708
|
if (a.startsWith(":")) {
|
|
@@ -1695,14 +1711,14 @@ function Nt(e, t) {
|
|
|
1695
1711
|
}
|
|
1696
1712
|
}), i;
|
|
1697
1713
|
}
|
|
1698
|
-
function
|
|
1714
|
+
function Lt(e) {
|
|
1699
1715
|
return e.publicBasePath ?? `/apps/${e.name}`;
|
|
1700
1716
|
}
|
|
1701
|
-
function
|
|
1717
|
+
function Si(e) {
|
|
1702
1718
|
const t = [];
|
|
1703
1719
|
for (const n of e) {
|
|
1704
1720
|
if (!n?.name) continue;
|
|
1705
|
-
const r =
|
|
1721
|
+
const r = Lt(n);
|
|
1706
1722
|
for (const i of n.routes ?? []) {
|
|
1707
1723
|
if (!i.public) continue;
|
|
1708
1724
|
const a = i.path === "/" ? "" : i.path;
|
|
@@ -1716,7 +1732,7 @@ function Ei(e) {
|
|
|
1716
1732
|
}
|
|
1717
1733
|
return t;
|
|
1718
1734
|
}
|
|
1719
|
-
function
|
|
1735
|
+
function Ot(e, t) {
|
|
1720
1736
|
const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
1721
1737
|
for (let i = 0; i < Math.min(n.length, r.length); i++) {
|
|
1722
1738
|
const a = n[i].startsWith(":"), o = r[i].startsWith(":");
|
|
@@ -1724,183 +1740,187 @@ function vt(e, t) {
|
|
|
1724
1740
|
}
|
|
1725
1741
|
return n.length > r.length;
|
|
1726
1742
|
}
|
|
1727
|
-
function
|
|
1743
|
+
function $t(e, t) {
|
|
1728
1744
|
if (typeof e != "string") return null;
|
|
1729
1745
|
let n = null;
|
|
1730
1746
|
for (const r of t)
|
|
1731
|
-
|
|
1732
|
-
return n ? { ...n, params: { ...n.props, ...
|
|
1747
|
+
kt(r.pattern).test(e) && (!n || Ot(r.pattern, n.pattern)) && (n = r);
|
|
1748
|
+
return n ? { ...n, params: { ...n.props, ...vt(n.pattern, e) } } : null;
|
|
1733
1749
|
}
|
|
1734
|
-
function
|
|
1735
|
-
return
|
|
1750
|
+
function Mi(e, t) {
|
|
1751
|
+
return $t(e, t) !== null;
|
|
1736
1752
|
}
|
|
1737
|
-
const
|
|
1753
|
+
const Ci = 9e4, xi = "installation-id";
|
|
1738
1754
|
export {
|
|
1739
1755
|
m as ACTIVITY_CATALOG,
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1756
|
+
_t as AI_ATTACHMENT_LIMITS,
|
|
1757
|
+
si as AI_ATTACHMENT_MAX_PER_TURN,
|
|
1758
|
+
oi as AI_ATTACHMENT_TURN_BUDGET,
|
|
1759
|
+
ue as AI_VENDORS,
|
|
1760
|
+
ve as ALLOWED_LINK_SCHEMES,
|
|
1745
1761
|
P as ARTIFACT_MAX_BLOCKS,
|
|
1746
|
-
|
|
1762
|
+
nn as ARTIFACT_MAX_BODY_BYTES,
|
|
1747
1763
|
C as ARTIFACT_MAX_CELL_LEN,
|
|
1748
1764
|
G as ARTIFACT_MAX_KPI_ITEMS,
|
|
1749
1765
|
U as ARTIFACT_MAX_LIST_ITEMS,
|
|
1750
1766
|
B as ARTIFACT_MAX_TABLE_COLUMNS,
|
|
1751
1767
|
K as ARTIFACT_MAX_TABLE_ROWS,
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1768
|
+
ie as ARTIFACT_MAX_TEXT_LEN,
|
|
1769
|
+
de as AUTH_APP_NAME,
|
|
1770
|
+
Ee as ActivityTypeRegistry,
|
|
1771
|
+
Yt as BUILT_IN_ONLY,
|
|
1772
|
+
fn as CLASSIFY_VARS,
|
|
1773
|
+
Qt as CORE_DIMENSIONS,
|
|
1774
|
+
Ct as CommunicationScheme,
|
|
1775
|
+
Yn as DEFAULT_MEMORY_BUDGET,
|
|
1776
|
+
tt as DEFAULT_PHONE_REGION,
|
|
1777
|
+
Ai as FEATURE_FOLDER_MANAGEMENT,
|
|
1778
|
+
Ei as FEATURE_REMOTE_SEARCH,
|
|
1779
|
+
xi as INSTALLATION_HEADER,
|
|
1780
|
+
yi as InteractionParticipantRole,
|
|
1781
|
+
Ve as KB_FALLBACK_LOCALE,
|
|
1766
1782
|
V as KB_LOCALES,
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1783
|
+
Pt as MAX_ACTIONS,
|
|
1784
|
+
wt as MAX_BLOCKS,
|
|
1785
|
+
le as MAX_COLLECTION_DEPTH,
|
|
1786
|
+
Rt as MAX_FIELDS,
|
|
1787
|
+
Dt as MAX_LIST_ITEMS,
|
|
1788
|
+
jn as MAX_MEMORY_BROWSE,
|
|
1789
|
+
Wn as MAX_MEMORY_BUDGET,
|
|
1790
|
+
Vn as MAX_MEMORY_CHARS,
|
|
1791
|
+
Ye as MAX_TOPIC_CANDIDATES,
|
|
1792
|
+
We as MAX_TOPIC_EXAMPLES,
|
|
1777
1793
|
x as MAX_TOPIC_EXAMPLE_CHARS,
|
|
1778
|
-
|
|
1779
|
-
|
|
1794
|
+
Xn as MIN_MEMORY_BUDGET,
|
|
1795
|
+
Ge as PAUSED_RUN_STATUSES,
|
|
1780
1796
|
v as PHONE_REGIONS,
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1797
|
+
Ci as PRESENCE_ONLINE_WINDOW_MS,
|
|
1798
|
+
hi as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
|
|
1799
|
+
gi as PROVIDER_FEATURE_MESSAGE_WINDOW,
|
|
1800
|
+
lt as PUBLIC_EMAIL_DOMAINS,
|
|
1801
|
+
et as RELATED_SUBJECT_KINDS,
|
|
1802
|
+
Dn as SIGNATURE_INTENTS,
|
|
1803
|
+
yt as SUMMARY_MIN_LAST_CHARS,
|
|
1804
|
+
ht as SUMMARY_MIN_MESSAGES,
|
|
1805
|
+
Be as TERMINAL_RUN_STATUSES,
|
|
1806
|
+
dn as TRIGGER_VARS,
|
|
1807
|
+
_i as UNSUPPORTED,
|
|
1808
|
+
Ce as USAGE_DIMENSIONS,
|
|
1809
|
+
xe as USAGE_DIMENSION_IDS,
|
|
1810
|
+
xn as acceptExampleCandidate,
|
|
1811
|
+
Ke as actingIdentityKey,
|
|
1812
|
+
Kt as activityIconOf,
|
|
1813
|
+
Wt as activityJoinUrl,
|
|
1814
|
+
ye as activitySnippet,
|
|
1815
|
+
be as activityTextParams,
|
|
1816
|
+
Xt as activityTimelineText,
|
|
1817
|
+
Jt as activityTimestamp,
|
|
1802
1818
|
f as activityTypeInfo,
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
on as
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
mi as
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1819
|
+
hn as actorKey,
|
|
1820
|
+
Cn as addExampleCandidate,
|
|
1821
|
+
Et as aiAttachmentKind,
|
|
1822
|
+
li as aiAttachmentRejection,
|
|
1823
|
+
W as aiBudgetLimit,
|
|
1824
|
+
Rn as aiBudgetPeriodKey,
|
|
1825
|
+
Qe as aiBudgetPeriodStart,
|
|
1826
|
+
wn as aiBudgetState,
|
|
1827
|
+
$n as aiVendorAcceptsAttachment,
|
|
1828
|
+
vn as aiVendorDefaultModel,
|
|
1829
|
+
kn as aiVendorLabel,
|
|
1830
|
+
On as aiVendorNeedsBaseUrl,
|
|
1831
|
+
Ln as aiVendorsWith,
|
|
1832
|
+
fe as appNameFromPath,
|
|
1833
|
+
Pn as applySignature,
|
|
1834
|
+
an as artifactBodyBytes,
|
|
1835
|
+
on as artifactOutline,
|
|
1836
|
+
sn as artifactToMarkdown,
|
|
1837
|
+
zt as buildActivityPreview,
|
|
1838
|
+
ui as buildChannelIntents,
|
|
1839
|
+
ln as buildShareKeys,
|
|
1840
|
+
In as canNestUnder,
|
|
1841
|
+
Ht as carriesText,
|
|
1842
|
+
Mn as categoryLabel,
|
|
1843
|
+
mi as channelKindForScheme,
|
|
1844
|
+
Bt as channelKindOf,
|
|
1845
|
+
ii as cleanMessageText,
|
|
1846
|
+
Xe as defaultLocaleOf,
|
|
1847
|
+
bi as defineIntent,
|
|
1848
|
+
He as depthOf,
|
|
1849
|
+
ci as disabledIntentsFromCapabilities,
|
|
1850
|
+
Qn as emailDomain,
|
|
1851
|
+
ti as endpointKey,
|
|
1852
|
+
vt as extractParams,
|
|
1853
|
+
di as filterByEndpoint,
|
|
1854
|
+
pi as filterByIntent,
|
|
1855
|
+
Mt as filterByTargetScheme,
|
|
1836
1856
|
_ as findAiVendor,
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1857
|
+
Zt as flattenLocales,
|
|
1858
|
+
Ie as floorToPeriod,
|
|
1859
|
+
Ue as formatActingIdentity,
|
|
1860
|
+
Te as formatPeriod,
|
|
1861
|
+
qt as getActivitySeenUserIds,
|
|
1862
|
+
Un as getContactEndpoints,
|
|
1863
|
+
Fn as getShortTitle,
|
|
1864
|
+
Gn as getUrgencyScore,
|
|
1865
|
+
ce as heightOf,
|
|
1866
|
+
En as helpCenterText,
|
|
1867
|
+
pn as humanizeAction,
|
|
1868
|
+
Kn as isAssigned,
|
|
1869
|
+
Bn as isClosed,
|
|
1870
|
+
Ti as isDeepLink,
|
|
1871
|
+
je as isDescendant,
|
|
1872
|
+
Hn as isInteractionUnseen,
|
|
1873
|
+
Ii as isLandingPath,
|
|
1874
|
+
ri as isLikelyBulk,
|
|
1875
|
+
Gt as isMessageType,
|
|
1876
|
+
Ot as isMoreSpecificPattern,
|
|
1877
|
+
bn as isPaused,
|
|
1878
|
+
Vt as isPlaybookAuthoredType,
|
|
1879
|
+
Zn as isPublicEmailDomain,
|
|
1880
|
+
Mi as isPublicPath,
|
|
1881
|
+
Ft as isReplyableType,
|
|
1882
|
+
yn as isRetryable,
|
|
1883
|
+
Fe as isTerminal,
|
|
1884
|
+
ai as isThreadLongEnough,
|
|
1885
|
+
An as linkLabel,
|
|
1886
|
+
Tn as localeInstruction,
|
|
1887
|
+
_n as localeName,
|
|
1888
|
+
Sn as localesOf,
|
|
1889
|
+
qn as looksLikeEmail,
|
|
1890
|
+
fi as matchContactToIntents,
|
|
1891
|
+
$t as matchPublicRoute,
|
|
1892
|
+
jt as messageCountsAs,
|
|
1893
|
+
ei as needsPhoneRegion,
|
|
1894
|
+
rn as normalizeArtifactBlocks,
|
|
1895
|
+
Ut as normalizeBlocks,
|
|
1896
|
+
pe as normalizeEmail,
|
|
1877
1897
|
g as normalizeExample,
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1898
|
+
mn as parseActingIdentity,
|
|
1899
|
+
kt as pathToRegex,
|
|
1900
|
+
en as periodsInRange,
|
|
1901
|
+
Jn as phoneSuffix,
|
|
1902
|
+
ni as plainTextFromMarkdown,
|
|
1903
|
+
gn as playbookActor,
|
|
1904
|
+
Lt as publicBasePathFor,
|
|
1905
|
+
Si as publicRoutePatterns,
|
|
1886
1906
|
N as readPath,
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1907
|
+
st as registrableDomain,
|
|
1908
|
+
qe as rejectExampleCandidate,
|
|
1909
|
+
zn as relatedByDefault,
|
|
1910
|
+
It as resolveAccountCapabilities,
|
|
1891
1911
|
k as resolveActivityText,
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1912
|
+
Tt as resolveChannelIntents,
|
|
1913
|
+
Ze as resolveSignature,
|
|
1914
|
+
we as sanitizeInline,
|
|
1915
|
+
oe as shareKeyForTeam,
|
|
1916
|
+
ae as shareKeyForUser,
|
|
1917
|
+
cn as shareKeysForViewer,
|
|
1918
|
+
he as stripHtml,
|
|
1919
|
+
q as toE164,
|
|
1920
|
+
un as toolSourceKinds,
|
|
1921
|
+
Je as topicOfferedForTeam,
|
|
1922
|
+
Nn as topicsForTeam,
|
|
1903
1923
|
ze as truncateExample,
|
|
1904
|
-
|
|
1905
|
-
|
|
1924
|
+
Ne as usageMetricId,
|
|
1925
|
+
tn as usageMetrics
|
|
1906
1926
|
};
|