}, helpCenter:{}, chat:{departments: { enabled: ['Jewelry Accessories'], select: 'Jewelry Accessories' }}, contactForm:{} } }, ww = widgets.webWidget; ww.launcher.label = { '*': 'Get Help' }; // Web Widget button text ww.launcher.chatLabel = { '*': 'Chat' }; // Chat button text - When the Help Center Search option is disabled ww.helpCenter.chatButton = { '*': 'Live Chat' }; // Chat button text - when the Help Center Search option is enabled ww.helpCenter.title = { '*': 'BRAND Help Centre' }; // Web Widget header text if (!HCSearch) ww.helpCenter.suppress = true; if (!chat) ww.chat.suppress = true; else zopimConfig(); if (!contactForm) ww.contactForm.suppress = true; window.zESettings = widgets; } function zopimConfig() { zE(function() { $zopim(function() { var zl = $zopim.livechat; zl.setOnConnected(function() { var department_status = zl.departments.getDepartment('Jewelry Accessories'); if (department_status.status == 'offline') zl.setStatus('offline'); // Set the account status to 'offline' else { zl.window.setTitle('Harrystylesmerch.store Support'); // Set the Window Title: //zl.addTags("nononono"); // add a tag zl.departments.filter(''); // Hide the Drop-down list option in the Pre-Chat Form to select the Department zl.departments.setVisitorDepartment('Jewelry Accessories'); // Automatically set the Department } }); }); }); } return module; }()); /** * Change the widget settings. * @params {boolean} HCSearch - enable HC Search? * @params {boolean} chat - enable chat? * @params {boolean} contactForm - enable contact form? */ runWidgetLogic.init(true, true, true);