Amauri CHAMPEAUX 3 years ago
parent
commit
f7d906a8a8
1 changed files with 22 additions and 0 deletions
  1. 22 0
      tarteaucitron.services.js

+ 22 - 0
tarteaucitron.services.js

@@ -5095,3 +5095,25 @@ tarteaucitron.services.gallica = {
     }
 };
 
+// crisp
+tarteaucitron.services.crisp = {
+    "key": "crisp",
+    "type": "other",
+    "name": "Crisp Chat",
+    "uri": "https://help.crisp.chat/en/article/crisp-chatbox-cookie-ip-policy-1147xor/",
+    "needConsent": false,
+    "cookies": ['crisp-client', '__cfduid'],
+    "js": function () {
+        "use strict";
+
+        if (tarteaucitron.user.crispID === undefined) {
+            return;
+        }
+
+        window.$crisp = [];
+        window.CRISP_WEBSITE_ID = tarteaucitron.user.crispID;
+
+        tarteaucitron.addScript('https://client.crisp.chat/l.js');
+    }
+};
+