try { var weezmo_module_bis_id = "6505fe50-9908-4590-8e9c-5b4c57cc4511"; window.wzm = { wid: "a889b..QpRs8xPqeCoe4QzTCNHU", bid: "6505fe50-9908-4590-8e9c-5b4c57cc4511", identifiers: [], setClientInfo: function (userData) { userData.wid = wzm.wid; userData.bid = wzm.bid; userData.identifiers = wzm.identifiers; query(userData); function query(data) { var xhr = new XMLHttpRequest(); xhr.open("POST", "https://api.weezmo.com/client/info", true); xhr.setRequestHeader("Content-Type", "application/json"); xhr.onload = function () { localStorage.setItem("main_wid", JSON.parse(this.responseText)); }; xhr.onerror = function (message) { console.log(message); } xhr.send(JSON.stringify(data)); } } }; (function setCookie(cname, cvalue, exdays) { if (document.cookie && document.cookie.indexOf(cname) === -1) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = d.toUTCString(); var domain = window.location.hostname.replace(/^(www\.)/, ""); document.cookie = cname + "=" + cvalue + ";expires=" + expires + ";path=/" + ";domain=" + domain; } })("_wid", wzm.wid, 365); } catch (err) { }