@2uinc/frontend-component-xpert-chatbot 1.6.0 → 1.6.2
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/lib/index.min.js +4 -4
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -880,7 +880,7 @@ var du = pn.exports;
|
|
880
880
|
const hu = /* @__PURE__ */ nt(du), gu = {
|
881
881
|
xpertKey: "exec-ed-ss-olc-moodle",
|
882
882
|
chatApi: {
|
883
|
-
endpoint: "https://xpert-platform-services-api.
|
883
|
+
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
884
884
|
payloadParams: {
|
885
885
|
use_case: "LOG_OUT"
|
886
886
|
}
|
@@ -10107,12 +10107,12 @@ function Kr({ submitEvent: e, setLiveChatOpen: t, isTestUser: n }) {
|
|
10107
10107
|
);
|
10108
10108
|
Oe(() => {
|
10109
10109
|
let m, d;
|
10110
|
-
return u.liveChat.enabled && (m = document.createElement("script"), m.type = "text/javascript", m.src = u.liveChat.sourceCode, m.async = !0, m.onload = () => {
|
10110
|
+
return u.liveChat.enabled && (window.Five9ChatPlugin || (m = document.createElement("script"), m.type = "text/javascript", m.src = u.liveChat.sourceCode, m.async = !0, m.onload = () => {
|
10111
10111
|
window.Five9ChatPlugin(u.liveChat.options);
|
10112
|
-
}, document.body.appendChild(m), window.addEventListener("message", s), window.addEventListener("message", c), d = setTimeout(() => {
|
10112
|
+
}, document.body.appendChild(m)), window.addEventListener("message", s), window.addEventListener("message", c), d = setTimeout(() => {
|
10113
10113
|
i(!1);
|
10114
10114
|
}, 3e3)), () => {
|
10115
|
-
u.liveChat.enabled && (
|
10115
|
+
u.liveChat.enabled && (window.removeEventListener("message", s), window.removeEventListener("message", c), clearTimeout(d));
|
10116
10116
|
};
|
10117
10117
|
}, [
|
10118
10118
|
u.liveChat.enabled,
|