Browse Source

Add tolkai fix #1014

Amauri CHAMPEAUX 2 năm trước cách đây
mục cha
commit
b02a4f7334
1 tập tin đã thay đổi với 23 bổ sung0 xóa
  1. 23 0
      tarteaucitron.services.js

+ 23 - 0
tarteaucitron.services.js

@@ -105,6 +105,29 @@ tarteaucitron.services.calendly = {
     }
 };
 
+// tolkai
+tarteaucitron.services.tolkai = {
+    "key": "tolkai",
+    "type": "other",
+    "name": "tolk.ai",
+    "uri": "https://www.tolk.ai/",
+    "needConsent": true,
+    "cookies": [],
+    "js": function () {
+        "use strict";
+
+        if (tarteaucitron.user.tolkaiBot === undefined) {
+            return;
+        }
+
+        window.cfbot = tarteaucitron.user.tolkaiBot;
+        window.TcfWbchtParams = { behaviour: 'default' };
+        window.display = 'iframe';
+        tarteaucitron.addScript('https://script.tolk.ai/iframe-latest.js');
+    }
+};
+
+
 // kwanko
 tarteaucitron.services.kwanko = {
     "key": "kwanko",