瀏覽代碼

Add Ubib Fix #1004

Amauri CHAMPEAUX 2 年之前
父節點
當前提交
9c3cd9df95
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      tarteaucitron.services.js

+ 19 - 0
tarteaucitron.services.js

@@ -75,6 +75,25 @@ tarteaucitron.services.leadforensics = {
     }
 };
 
+// ubib
+tarteaucitron.services.ubib = {
+    "key": "ubib",
+    "type": "other",
+    "name": "Ubib Chatbot",
+    "uri": "https://ubib.libanswers.com/",
+    "needConsent": true,
+    "cookies": [],
+    "js": function () {
+        "use strict";
+
+        if (tarteaucitron.user.ubibId === undefined || tarteaucitron.user.ubibHash === undefined) {
+            return;
+        }
+
+        tarteaucitron.addScript('https://' + tarteaucitron.user.ubibId + '.libanswers.com/load_chat.php?hash=' + tarteaucitron.user.ubibHash);
+    }
+};
+
 // trustpilot
 tarteaucitron.services.trustpilot = {
     "key": "trustpilot",