window.g_config = window.g_config || {}; window.g_config.cscClient = 'buyer'; window.g_config.regionID = 'ID'; window.g_config.cscLiveUp = false; window.g_config.cscAnonymous = false; window.g_config.disabledAutoInit = true; window.g_config.cscBot = 'QX1sVhWTMO'; (function() { var pathNameReg = /helpcenter|contact/g; var pathMatched = pathNameReg.test(window.location.pathname); if(!pathMatched){ var sc = document.createElement('script'); sc.async = true; sc.src = '//g.lazcdn.com/g/lzd-cs/chat/2.5.0/alichat.js'; sc.setAttribute("desktopjs","true") var scr = document.getElementsByTagName('script')[0]; scr.parentNode.insertBefore(sc, scr); var link = document.createElement('link'); link.rel = 'stylesheet'; link.href = "https://g.lazcdn.com/g/lzd-cs/chat/2.5.0/alichat.css"; link.setAttribute("desktopcss","true") var l = document.getElementsByTagName('link')[0]; l.parentNode.insertBefore(link, l); var done = false; sc.onload = sc.onreadystatechange = function() { if (!done && (!this.readyState || this.readyState==='loaded' || this.readyState==='complete')) { done = true; var requestHost = 'https://h5-alimebot.lazada.co.id'; var botUrl = 'https://h5-alimebot.lazada.co.id/intl/index.htm?from=QX1sVhWTMO&_lang=in-ID'; var loginUrl = 'https://member.lazada.co.id/user/pure-login?hideRegister=true&hideForgotPWD=true'; window._CSCChatInstance = new CSChat({ bot: { from: window.g_config.cscBot, requestHost: requestHost, botUrl: botUrl, }, loginUrl: loginUrl, }); } }; } })();