// Custom loader for conversy version 3 (based on Smooch version 4) (function(w, d) { var ConversyOptions = { websiteKey: 'zmaerybcO3umkivd', conversyToken: '61b82b2e-61de-4c7a-8e09-5cb56f1cae1a', apiUrl: 'https://app.bookboost.io/api', pusherInfo: { key: 'cf03ce80e9274f4a6e1c', cluster: 'eu' }, whatsAppPhoneNumber: '', initialActions: null, coreOptions: { appId: '5a8171e092aabd0021596285', customText: {"sendButtonText":"Send","headerText":"How can we help?","introductionText":"We typically reply within 5 minutes. Message us below or from your favourite app.","inputPlaceholder":"Type a message...","appName":"","connectNotificationText":"Be notified inside your other apps when you get a reply.","introAppText":""}, businessName: '', businessIconUrl: 'https://cdn.bookboost.io/logos/5dc42fcc70ff8_23.jpg', customColors: { brandColor: 'f4ca14', conversationColor: '000000', } } }; var queue = []; w.conversy = function() { queue.push(arguments) }; function loadScript(url) { var head = d.getElementsByTagName('head')[0]; var script = d.createElement('script'); script.type = 'text/javascript'; script.src = url; script.async = 1 head.appendChild(script); } function onConversyReady(Conversy) { // Execute commands queued before app loaded for (var i in queue) { Conversy.command.apply(Conversy, queue[i]); } queue = undefined; // App loaded, execute future commands directly w.conversy = function() { Conversy.command.apply(Conversy, arguments); } w.Bookboost = Conversy; } w.__onWebMessengerHostReady__ = function(Host) { delete w.__onWebMessengerHostReady__; // Decorate the original handler var originalOnWebMessengerFrameReady = w.__onWebMessengerFrameReady__; w.__onWebMessengerFrameReady__ = function(Conversy) { originalOnWebMessengerFrameReady(Conversy); onConversyReady(Conversy); }; Host.init(ConversyOptions); } loadScript('https://web-messenger.bookboost.io/bookboost.3.9.1.min.js'); })(window, document);