From 9c3cd9df95bb3641366b3cf0061885577ca1bf33 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 19 Oct 2022 11:03:21 +0200 Subject: [PATCH] Add Ubib Fix #1004 --- tarteaucitron.services.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 437f1a2..6bc52c8 100644 --- a/tarteaucitron.services.js +++ b/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",