PageSourceSearch

https://circlesrq.com/wp-content/cache/min/1/appengine/loc/MKJkoL0…/number_pool.js?ver=1790975167

js circlesrq.com collected 2026-10-07 03:06:39 UTC 11,125 bytes, 1 lines download raw bytes

1var pool_id="",type="",base_URL="",revexLcPhoneBaseUrl="";function getAllUrlParams(e){var e=e?e.split("?")[1]:window.location.search.slice(1),o={};if(e)for(var t=(e=e.split("#")[0]).split("&"),s=0;s<t.length;s++){var i,n,r=t[s].split("="),a=r[0],r=void 0===r[1]||r[1];a.match(/\[(\d+)?\]$/)?(o[i=a.replace(/\[(\d+)?\]/,"")]||(o[i]=[]),a.match(/\[\d+\]$/)?(n=/\[(\d+)\]/.exec(a)[1],o[i][n]=r):o[i].push(r)):o[a]?("string"==typeof o[a]&&(o[a]=[o[a]]),o[a].push(r)):o[a]=r}return o}function setCookie(e,o,t){var s,i="";t&&((s=new Date).setTime(s.getTime()+24*t*60*60*1e3),i="; expires="+s.toUTCString()),document.cookie=e+"="+(o||"")+i+"; path=/"}function getCookie(e){for(var o=e+"=",t=document.cookie.split(";"),s=0;s<t.length;s++){for(var i=t[s];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(o))return i.substring(o.length,i.length)}return null}var NumberPool=function(){async function d(e){var o=getCookie("fingerprint_"+e),t=getCookie("session_id_"+e),s=getCookie("pool_id_"+e)||getCookie("poolId_"+e),i=JSON.parse(localStorage.getItem("_np_history_"+s));if(i)if(t&&i){var i=i.sessions,n=i.length,r=i[n-1],a=r.pages.length,a=r.pages[a-1].timestamp,r=r.source,l=p(document.referrer);if(a+864e5<Date.now()||l!==document.domain&&l!==r){var a=getAllUrlParams(document.location.href),l=[...i,{session:n+1,source:p(document.referrer,document.location.href),referrer:document.referrer,keyword:a.keyword||a.utm_keyword||a.utm_term||a.utm_content||"",url_params:a,pages:[{url:document.location.href,timestamp:Date.now(),title:document.title}],timestamp:Date.now()}];try{await fetch(base_URL+"/user_session/update_session/"+t,{method:"POST",body:JSON.stringify({gaClientId:getCookie("_ga"),sessions:l}),headers:{"Content-Type":"application/json"}});localStorage.setItem("_np_history_"+s,JSON.stringify({sessions:l}))}catch(e){console.log(e)}}else{i[n-1].pages.push({url:document.location.href,timestamp:Date.now(),title:document.title});try{await fetch(base_URL+"/user_session/update_session/"+t,{method:"POST",body:JSON.stringify({gaClientId:getCookie("_ga"),sessions:i}),headers:{"Content-Type":"application/json"}});localStorage.setItem("_np_history_"+s,JSON.stringify({sessions:i}))}catch(e){console.log(e)}}}else localStorage.removeItem("_np_history_"+s),await d(e);else{r=getAllUrlParams(document.location.href),a=[{session:1,source:p(document.referrer,document.location.href),referrer:document.referrer,keyword:r.keyword||r.utm_keyword||r.utm_term||r.utm_content||"",url_params:r,pages:[{url:document.location.href,timestamp:Date.now(),title:document.title}],timestamp:Date.now()}];try{var c=await(await fetch(base_URL+"/user_session/create_session",{method:"POST",body:JSON.stringify({sessions:a,gaClientId:getCookie("_ga"),initialReferrer:document.referrer,locationId:e,fingerprint:o,sessionId:t}),headers:{"Content-Type":"application/json"}})).json();t||setCookie("session_id_"+e,c.sessionId,365),localStorage.setItem("_np_history_"+s,JSON.stringify({sessions:a}))}catch(e){console.log(e),localStorage.removeItem("_np_history_"+s)}}l=e,window.userSessionAttribution&&(n=getCookie("session_id_"+l),window.userSessionAttribution.create(l,"call-swap",n))}this.getNumber=async function(n,e,r){var o=getCookie("is_active_"+n);if(pool_id=e||getCookie("pool_id_"+n)||getCookie("poolId_"+n),""!==o)return new Promise(async(e,o)=>{var t,s=getCookie("session_id_"+n),i=JSON.parse(localStorage.getItem("_np_"+pool_id));try{"1"===getCookie("count_"+n)||i&&i.timestamp+36e5>Date.now()?(console.log("using cache"),d(n),localStorage.setItem("_np_"+pool_id,JSON.stringify({assignedNumber:i.assignedNumber,forwardingNumber:i.forwardingNumber,timestamp:Date.now()})),e({assignedNumber:i.assignedNumber,forwardingNumber:i.forwardingNumber})):getCookie("in_progress_pool_id_"+pool_id)||(setCookie("in_progress_pool_id_"+pool_id,!0),console.log("new data"),t=await(await fetch(revexLcPhoneBaseUrl+"/number-pools/assign-number",{method:"POST",body:JSON.stringify({sessionId:s,numberPoolId:pool_id,deviceType:function(){var e;e=/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android|iemobile|w3c|acs\-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd\-|dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg\-c|lg\-d|lg\-g|lge\-|maui|maxo|midp|mits|mmef|mobi|mot\-|moto|mwbp|nec\-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch\-|sec\-|send|seri|sgh\-|shar|sie\-|siem|smal|smar|sony|sph\-|symb|t\-mo|teli|tim\-|tosh|tsm\-|upg1|upsi|vk\-v|voda|wap\-|wapa|wapi|wapp|wapr|webc|winw|winw|xda|xda\-) /i.test(navigator.userAgent)?/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i.test(navigator.userAgent)?"Tablet":"Mobile":/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i.test(navigator.userAgent)?"Tablet":"Desktop";return e}(),referralUrl:document.referrer,href:document.location.href,type:r,poolId:getCookie("poolId_"+n)||"",locationId:n||"",gaClientId:getCookie("_ga")}),headers:{"Content-Type":"application/json"}}
1)).json(),setCookie("poolId_"+n,t.poolId,365),setCookie("count_"+n,t.count,365),setCookie("session_id_"+n,t.id,365),setCookie("in_progress_pool_id_"+t.poolId,!1),console.log(t.trackingOption),console.table(t.values),t.isActive?(d(n),localStorage.setItem("_np_"+t.poolId,JSON.stringify({assignedNumber:t.assignedNumber,forwardingNumber:t.forwardingNumber,timestamp:Date.now()})),e({assignedNumber:t.assignedNumber,forwardingNumber:t.forwardingNumber})):(console.log("setting is not active"),setCookie("is_active_"+n,t.isActive,365)))}catch(e){o(e)}});console.log("no swap")};var p=function(e,o=""){return o.includes("gclid")||o.includes("gbraid")||o.includes("wbraid")?"google paid":""===e?"direct":e.includes("google")?o.includes("gclid")||o.includes("gbraid")||o.includes("wbraid")?"google paid":"google organic":e.includes("twitter")?"twitter":e.includes("bing")?o.includes("msclkid")?"bing paid":"bing organic":e.includes("facebook")?"facebook":e.includes("yahoo")?o.includes("dclid")||o.includes("yahoo")?"yahoo paid":"yahoo organic":e.includes("duckduckgo")?"duckduckgo":((o=document.createElement("a")).setAttribute("href",e),o.hostname)};function a(e){type="pool"===e[e.length-3]?"pool":"group",pool_id=e[e.length-2];e=e[e.length-4];setCookie("type_"+e,type,365),setCookie("pool_id_"+e,pool_id,365)}this.replaceNumber=function(e,o){for(var t,s=function e(o,t){if(3===o.nodeType)4<o.length&&(/\d/.test(o.nodeValue)||"a"===o.parentElement.localName)&&t.push(o);else if(1===o.nodeType)if(o.classList){if(!o.classList.contains("noswap"))for(var s=0,i=o.childNodes.length;s<i;++s)e(o.childNodes[s],t)}else for(s=0,i=o.childNodes.length;s<i;++s)e(o.childNodes[s],t);return t}(document.body,[]),i=o.national,n=o.international,r=e.national,a=e.international,l=i.replace(/[^0-9]/gi,""),c=r.replace(/[^0-9]/gi,""),d=`${l.substring(0,3)}-${l.substring(3,6)}-`+l.substring(6,10),p=`${l.substring(0,3)}.${l.substring(3,6)}.`+l.substring(6,10),u=`(${l.substring(0,3)}) ${l.substring(3,6)}-`+l.substring(6,10),g=`(${l.substring(0,3)})%20${l.substring(3,6)}-`+l.substring(6,10),m=`%28${l.substring(0,3)}%29%20${l.substring(3,6)}-`+l.substring(6,10),h=`(${l.substring(0,3)})${l.substring(3,6)}-`+l.substring(6,10),b=`${c.substring(0,3)}-${c.substring(3,6)}-`+c.substring(6,10),f=`${c.substring(0,3)}.${c.substring(3,6)}.`+c.substring(6,10),_=`(${c.substring(0,3)}) ${c.substring(3,6)}-`+c.substring(6,10),y=`(${c.substring(0,3)}) ${c.substring(3,6)}-`+c.substring(6,10),w=0,k=s.length;w<k;w++)s[w].parentElement.localName,(t=s[w].nodeValue).includes(i)?t=t.replace(i,r):t.includes(d)?t=t.replace(d,b):t.includes(p)?t=t.replace(p,f):t.includes(u)?t=t.replace(u,_):t.includes(g)?t=t.replace(g,y):t.includes(h)&&(t=t.replace(h,y)),t.includes(n)&&(t=t.replace(n,a)),s[w].nodeValue=t;for(var v=document.getElementsByTagName("A"),w=0;w<v.length;w++){var N=v.item(w);N.className.includes("noswap")||(N.href.includes(l)?N.href=N.href.replace(l,c):N.href.includes(i)?N.href=N.href.replace(i,r):N.href.includes(d)?N.href=N.href.replace(d,b):N.href.includes(p)?N.href=N.href.replace(p,f):N.href.includes(u)?N.href=N.href.replace(u,_):N.href.includes(g)?N.href=N.href.replace(g,y):N.href.includes(m)?N.href=N.href.replace(m,y):N.href.includes(h)?N.href=N.href.replace(h,y):N.href.includes(n)&&(N.href=N.href.replace(n,a)))}},this.fetchPoolId=function(e){var o=[];if(document&&document.currentScript&&document.currentScript.src){var t=(e=document.currentScript.src).split("/");if(e.includes("http://localhost")||e.includes("ngrok.io"))return base_URL="http://localhost:5000",revexLcPhoneBaseUrl="http://localhost:5000/phone-system",setCookie("pool_id_"+(r=getAllUrlParams(e).location_id),pool_id=getAllUrlParams(e).pool_id||getAllUrlParams(e).group_id,365),setCookie("type_"+r,s=getAllUrlParams(e).pool_id?"pool":"group",365),{locationId:r,poolId:pool_id,type:s};e.includes("https://malde-dot-highlevel-staging.appspot.com")?base_URL="https://malde-dot-highlevel-staging.appspot.com":e.includes("staging")?(base_URL="https://staging.backend.leadconnectorhq.com/appengine",revexLcPhoneBaseUrl="https://staging.services.leadconnectorhq.com/phone-system"):e.includes("https://beta")?base_URL="https://beta-dot-highlevel-backend.appspot.com":(base_URL="https://services.leadconnectorhq.com/appengine",revexLcPhoneBaseUrl="https://services.leadconnectorhq.com/phone-system"),a(t);var s="pool"===t[t.length-3]?"pool":"group";o.push({locationId:t[t.length-4],poolId:t[t.length-2],type:s})}else for(var i=document.getElementsByTagName("script"),n=0;n<i.length;n++){var r,t=i[n].src.split("/");if(i[n].src.includes("number_pool"))if(i[n].src.includes("http://localhost")||i[n].src.includes("ngrok.io"))base_URL="http://localhost:5000",setCookie("location_id",r=getAllUrlParams(i[n].src).location_id,365),setCookie("pool_id_"+r,pool_id=getAllUrlParams(i[n].src).pool_id||getAllUrlParams(i[n].src).group_id,365),setCookie("type_"+r,s=getAllUrlParams(i[n].src).pool_id?"pool":"group",365),o.push({locationId:r,poolId:pool_id,type:s});else{if(i[n].src.includes("staging"))base_URL="https://staging.backend.leadconnectorhq.com/appengine";else{if(i[n].src.includes("https://beta"))return base_URL="https://beta-dot-highlevel-backend.appspot.com",a(t),t[t.length-4];base_URL="https://services.leadconnectorhq.com/appengine"}a(t);s="pool"===t[t.length-3]?"pool":"group";o.push({locationId:t[t.length-4],poolId:t[t.length-2],type:s})}}return o}},numberPool=new NumberPool,locationId=numberPool.fetchPoolId();
1function initNumberPool(){if(!(-1<document.location.href.search(".appspot."))){var e=numberPool.fetchPoolId();if(e&&e.length)for(var o=0;o<e.length;o++)numberPool.getNumber(e[o].locationId,e[o].poolId,e[o].type).then(({assignedNumber:o,forwardingNumber:e})=>{e.forEach(e=>{numberPool.replaceNumber(o,e)})}).catch(e=>console.log(e));else numberPool.getNumber(locationId).then(({assignedNumber:o,forwardingNumber:e})=>{e.forEach(e=>{numberPool.replaceNumber(o,e)})}).catch(e=>console.log(e))}}"complete"===document.readyState||"interactive"===document.readyState?setTimeout(function(){initNumberPool()},1):document.addEventListener("DOMContentLoaded",function(){initNumberPool()})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.