Amauri CHAMPEAUX преди 10 години
родител
ревизия
aa4a5bde01
променени са 1 файла, в които са добавени 21 реда и са изтрити 0 реда
  1. 21 0
      tarteaucitron.services.js

+ 21 - 0
tarteaucitron.services.js

@@ -422,3 +422,24 @@ tarteaucitron.services.xiti = {
         tarteaucitron.cookie.purge(cookies);
     }
 };
+
+// zopim
+tarteaucitron.services.zopim = {
+    "key": "zopim",
+    "type": "social",
+    "name": "Zopim",
+    "uri": "https://www.zopim.com/privacy",
+    "needConsent": true,
+    "js": function () {
+        "use strict";
+        if (tarteaucitron.user.zopimID === undefined) {
+            return;
+        }
+        tarteaucitron.addScript('//v2.zopim.com/?' + tarteaucitron.user.zopimID);
+    },
+    "fallback": function () {
+        "use strict";
+        var cookies = ['__zlcid', '__zprivacy'];
+        tarteaucitron.cookie.purge(cookies);
+    }
+};