@enegelai/bot-widget 1.12.4 → 1.12.5
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/enegelaibot.umd.js +3 -3
- package/dist/index.es.js +5 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -848,7 +848,7 @@ class L extends kt {
|
|
|
848
848
|
}, this.botSettingsRetryTimeout * 1e3), this.botSettingsRetryTimeout = this.botSettingsRetryTimeout * 2;
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
|
-
A.info("Got bot settings - bot is enabled", r), this.disabled = !1, this.setting.welcomeMessage = (r == null ? void 0 : r.welcomeMessage) || "How can I help ?", this.setting.engageMessage = (r == null ? void 0 : r.engageMessage) || "How can I help ?", this.setting.engageTimeout = (r == null ? void 0 : r.engageTimeout) || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in r ? r.splitMessagesAtBreak : !1, this.setting.feedbackEnabled = "feedbackEnabled" in r ? r.feedbackEnabled : !1, this.setting.uploadImages = "uploadImages" in r ? r.uploadImages : !1, this.setting.newConversationTimeoutInSec = (r == null ? void 0 : r.newConversationTimeoutInSec) || 86400, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
|
|
851
|
+
A.info("Got bot settings - bot is enabled", r), this.disabled = !1, this.setting.welcomeMessage = (r == null ? void 0 : r.welcomeMessage) || "How can I help ?", this.setting.engageMessage = (r == null ? void 0 : r.engageMessage) || "How can I help ?", this.setting.engageTimeout = (r == null ? void 0 : r.engageTimeout) || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in r ? r.splitMessagesAtBreak : !1, this.setting.feedbackEnabled = "feedbackEnabled" in r ? r.feedbackEnabled : !1, this.setting.uploadImages = "uploadImages" in r ? r.uploadImages : !1, this.setting.newConversationTimeoutInSec = (r == null ? void 0 : r.newConversationTimeoutInSec) || 86400, this.setting.enableNotificationSound = "enableNotificationSound" in r ? r.enableNotificationSound : !0, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
|
|
852
852
|
this.showEngagePopup();
|
|
853
853
|
}, this.setting.engageTimeout * 1e3);
|
|
854
854
|
}
|
|
@@ -966,6 +966,8 @@ class L extends kt {
|
|
|
966
966
|
this.open || (A.info("Engaging User !"), this.engage = !0, this.playAudioNotification());
|
|
967
967
|
}
|
|
968
968
|
playAudioNotification() {
|
|
969
|
+
if (!this.setting.enableNotificationSound)
|
|
970
|
+
return;
|
|
969
971
|
const e = (r) => {
|
|
970
972
|
const f = new Uint8Array(r.length / 2);
|
|
971
973
|
for (let w = 0; w < f.length; w++)
|
|
@@ -1472,7 +1474,8 @@ O([
|
|
|
1472
1474
|
splitMessagesAtBreak: !1,
|
|
1473
1475
|
feedbackEnabled: !1,
|
|
1474
1476
|
uploadImages: !1,
|
|
1475
|
-
newConversationTimeoutInSec: 86400
|
|
1477
|
+
newConversationTimeoutInSec: 86400,
|
|
1478
|
+
enableNotificationSound: !0
|
|
1476
1479
|
}
|
|
1477
1480
|
})
|
|
1478
1481
|
], L.prototype, "setting");
|