1var baseUrl="https://gp6ljdb61d.execute-api.ap-south-1.amazonaws.com/prod",newBaseUrl="https://api.skinkraft.com",ajaxReqs=0,incnutSubUrl="https://subs.incnut.com/subscriptions",apiKey=window.location.host==="dev.skinkraft.com"?"DMKcuCoPM62Yyiab5J8wL6XWVMkCCRhv61UiQPGl":"ePeJFAaL1Xa8LaDixwMOO2B47vHrAYYvaiUoQBuU",zohoId=window.location.host==="dev.skinkraft.com"?"651547676":"665028196",zohoToken=window.location.host==="dev.skinkraft.com"?"e4662ba47b458f7c1ac3298de2c6231f":"e6e2e40a13de58e2aa6d2392571d9ccc",appId=window.location.host==="dev.skinkraft.com"?"skinkraft-dev":"skinkraft";function getProducts(date){ajaxReqs++;var url="/skProductRecos";return date&&(url+="?date="+date),fetch(baseUrl+url,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function getHairProducts(date){ajaxReqs++;var url="/skHairProductRecos";return date&&(url+="?date="+date),fetch(baseUrl+url,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function getSPQs(num,date){ajaxReqs++;var url="/skListSPQ?limit="+num;return date&&num&&(url+="&date="+date),date&&!num&&(url="/skListSPQ?date="+date),fetch(baseUrl+url,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function getHPQs(num,date){ajaxReqs++;var url="/skListHPQ?limit="+num;return date&&num&&(url+="&date="+date),date&&!num&&(url="/skListHPQ?date="+date),fetch(baseUrl+url,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function resetSPQ(flag){return fetch(baseUrl+"/skResetSPQ?date="+flag,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){window.location.href="/pages/subscription"}).catch(function(e){return console.log(e),null})}function getSubscriptions(){return ajaxReqs++,fetch(baseUrl+"/skGetSubscriptions",{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function receivePayment(data){return ajaxReqs++,fetch(baseUrl+"/skRzpRecv",{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function validateCoupon(data){return ajaxReqs++,data.app_id=appId,fetch("https://hppw44g1ji.execute-api.ap-south-1.amazonaws.com/Prod/validate",{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json","X-Api-Key":"PN3ymV8EAuvOe92vq71x8taHnRhHeNy46H8m1WXb"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function completeOrderNew(data){return ajaxReqs++,fetch(baseUrl+"/skCheckout",{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function completeDirectCheckout(data){return ajaxReqs++,fetch(baseUrl+"/skDirectRegister",{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,e})}function getOrderStatus(){return ajaxReqs++,fetch(baseUrl+"/skGetOrderStatus",{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(err){return ajaxReqs--,null})}function getFollowup(date){return ajaxReqs++,fetch(baseUrl+"/skFollowups?date="+date,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function getFollowups(){return ajaxReqs++,fetch(baseUrl+"/skFollowups",{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function addFollowup(followup,reco,date){return ajaxReqs++,fetch(baseUrl+"/skNewFollowup",{method:"POST",body:JSON.stringify({followup,reco,lastOrder:date}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function addReview(review,reco){return ajaxReqs++,fetch(baseUrl+"/skNewReview",{method:"POST",body:JSON.stringify({review,reco}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function getCheckoutUrl(data){console.log(data);var callFunc=data.plan==="sample"?"/skCheckoutSample":"/skCheckoutLink";return ajaxReqs++,fetch(baseUrl+callFunc,{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function recvSub(subid,flag,hp,extraDiscount,additionalProduct){ajaxReqs++;var url=baseUrl+"/skNewSub?subid="+subid+"&flag="+flag;return hp&&(url=baseUrl+"/skNewSub?host_id="+subid),extraDiscount&&(url+="&extraDiscount="+extraDiscount),additionalProduct&&(url+="&additionalProduct="+additionalProduct),fetch(url,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function sendMessage(msg,adminId){ajaxReqs++;var postdata={body:msg};return adminId&&(postdata.adminId=adminId),fetch(baseUrl+"/skNewTicket",{method:"POST",body:JSON.stringify(postdata),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}
1function getReco(prodId,condition,currUsage,type,gender){return ajaxReqs++,fetch(baseUrl+"/skNewReco",{method:"POST",body:JSON.stringify({prodId,condition,currUsage,type,gender}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function getActive(issueId,gender,age){return ajaxReqs++,fetch(baseUrl+"/skNewReco",{method:"POST",body:JSON.stringify({issueId,gender,age}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function getUserRecoHistory(lim){var limit=lim?"?limit=all":"";return ajaxReqs++,fetch(baseUrl+"/skUserRecoHistory"+limit,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}setInterval(function(){var el=document.querySelector(".page-loader");el!==null&&(ajaxReqs>0?el.style.display="block":el.style.display="none")},1e3);function cancelSub(subid,reasons){return ajaxReqs++,fetch(incnutSubUrl+"/"+subid+"/cancel?cancel_at_end=true",{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json","x-api-key":apiKey,"X-com-zoho-subscriptions-organizationid":zohoId,Authorization:`Zoho-authtoken ${zohoToken}`}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function cancelOrder(orderId,reason){return ajaxReqs++,fetch(baseUrl+"/skCancelOrder?orderId="+orderId,{method:"POST",body:JSON.stringify({reason}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function postponeSub(subid,date){return ajaxReqs++,fetch(incnutSubUrl+"/"+subid+"/postpone",{method:"POST",body:JSON.stringify({renewal_at:date}),headers:{"Content-Type":"application/json","x-api-key":apiKey,"X-com-zoho-subscriptions-organizationid":zohoId,Authorization:`Zoho-authtoken ${zohoToken}`}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function addSchedule(schedule,isHair){return ajaxReqs++,localStorage.getItem("___SKVX_GTM_SUITE--cookies")&&(schedule.note_attrs=Object.entries(JSON.parse(localStorage.getItem("___SKVX_GTM_SUITE--cookies"))).map(([e,t])=>({name:`_datalayer_${e}`,value:t}))),localStorage.getItem("___SKVX_GTM_SUITE--params")&&schedule.note_attrs.push({name:"_datalayer_visitor_info",value:localStorage.getItem("___SKVX_GTM_SUITE--params")}),fetch(baseUrl+"/skScheduleRenewal",{method:"POST",body:JSON.stringify(schedule),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function editOrder(address){return ajaxReqs++,fetch(baseUrl+"/skEditOrder",{method:"POST",body:JSON.stringify(address),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function getSchedule(isHair){return ajaxReqs++,fetch(baseUrl+(isHair?"/skScheduleRenewal?isHair=true":"/skScheduleRenewal"),{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function cancelSchedule(email,date,isHair){return ajaxReqs++,fetch(baseUrl+"/skScheduleRenewal",{method:"DELETE",body:JSON.stringify({email,date,isHair}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function notifyUser(action,num,topic,whatsappSource,customerName){var url=baseUrl+"/skUserNotifySub"+(action==="GET"?"?topic="+topic:""),options=action==="GET"?{method:action,headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}:{method:action,body:JSON.stringify({topic,endpoint:num,whatsappSource,customerName}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}};return ajaxReqs++,fetch(url,options).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function getFUP(){return ajaxReqs++,fetch(baseUrl+"/skGetFup",{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function getParameterByName(name,url){url||(url=window.location.href),name=name.replace(/[\[\]]/g,"\\$&");var regex=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)"),results=regex.exec(url);
1return results?results[2]?decodeURIComponent(results[2].replace(/\+/g," ")):"":null}window.addEventListener("appReady",function(){(getParameterByName("cta_change")==="choose_plan"||getParameterByName("adwords_cta_change")==="choose_plan")&&setTimeout(function(){$("a.btn[data-cta]").not(".btn-lg").text("Choose Plan"),$("a.text-link[data-cta]").text("Choose Plan"),$("a.btn.btn-lg[data-cta]").text("Choose Plan")},1e3)});function upgradeSubscription(){return ajaxReqs++,fetch(baseUrl+"/skUpgradeSub",{method:"POST",body:JSON.stringify({email:"email",date:"date"}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function submitReview(form){return ajaxReqs++,fetch("https://gp6ljdb61d.execute-api.ap-south-1.amazonaws.com/prod/skHandleCustReviews",{method:"POST",body:JSON.stringify({name:form.reviewer_name,email:form.reviewer_email,rating:form.rating,title:form.review_title,body:form.review_body,url:"skin-identity.myshopify.com",platform:"shopify",picture_keys:{0:form.key}}),headers:{"Content-Type":"application/json"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function uploadpic(file){return ajaxReqs++,fetch("https://gp6ljdb61d.execute-api.ap-south-1.amazonaws.com/prod/skHandleCustReviews",{method:"POST",body:JSON.stringify({file,file_name:file.name}),headers:{"Content-Type":"application/json"}}).then(function(response){return ajaxReqs--,response.json()}).then(data=>postpic(data,file)).catch(function(){return ajaxReqs--,null})}function postpic(data,file){var key=data.key_prefix+file.name,formData=new FormData;return formData.append("key",key),formData.append("acl",data.fields.acl),formData.append("success_action_status",data.fields.success_action_status),formData.append("policy",data.fields.policy),formData.append("x-amz-credential",data.fields["x-amz-credential"]),formData.append("x-amz-algorithm",data.fields["x-amz-algorithm"]),formData.append("x-amz-date",data.fields["x-amz-date"]),formData.append("x-amz-signature",data.fields["x-amz-signature"]),formData.append("file",file),ajaxReqs++,fetch("https://s3.amazonaws.com/me.judge.temp-files",{method:"POST",body:formData}).then(function(response){if(ajaxReqs--,response.status===201||response.status===200)return key})}function getReview(email){return ajaxReqs++,fetch("https://gp6ljdb61d.execute-api.ap-south-1.amazonaws.com/prod/skHandleCustReviews?email="+email,{method:"GET",headers:{"Content-Type":"application/json"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function getReviewResult(date){return ajaxReqs++,fetch(baseUrl+"/skGetRegimenReview?date="+date,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function claimOffer(email,prodId,price,prodLine){ajaxReqs++;let body={email,type:"addon",value:prodId,price};return prodLine&&(body.prodLine=prodLine),fetch(baseUrl+"/skClaimOffer",{method:"POST",body:JSON.stringify(body),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function getHairFollowUp(data){let url="/skHairFollowUp";return data.date&&(url+="?date="+data.date),data.agent&&(url+="&agent=true"),ajaxReqs++,fetch(baseUrl+url,{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function getHairReview(data){return ajaxReqs++,fetch(baseUrl+"/skHairRegimenReview",{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function saveHairRegimenReview(data){return ajaxReqs++,fetch(baseUrl+"/skHairRegimenReview",{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function getRzpToken(name,phone){return ajaxReqs++,fetch(baseUrl+"/skRzpToken?name="+name+"&phone="+phone,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function deleteRzpToken(tokenId){return ajaxReqs++,fetch(baseUrl+"/skRzpToken",{method:"DELETE",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier},body:JSON.stringify({tokenId})}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function createRzpToken(type,amount){return ajaxReqs++,fetch(baseUrl+"/skRzpToken",{method:"POST",body:JSON.stringify({type,amount}),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return null})}function getReferPoints(){return ajaxReqs++,fetch(baseUrl+"/skRedeemPoints",{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function redeemReferPoints(data){return ajaxReqs++,fetch(baseUrl+"/skRedeemPoints",{method:"POST",body:JSON.stringify(data),headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function scheduleAbandon(type,url,template,phone){let paramBody={userId:window.headerIdentifier,name:window.customerName};return url&&(paramBody.url=url),template&&(paramBody.template=template),type&&(paramBody.type=type),phone&&(paramBody.phone=phone),aja
1xReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/skAbandon",{method:"POST",body:JSON.stringify(paramBody),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function scheduleSms(type,phone,message,offsetMins){let paramBody={userId:window.headerIdentifier,phone,message,type};return offsetMins&&(paramBody.offsetMins=offsetMins),ajaxReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/skSms",{method:"POST",body:JSON.stringify(paramBody),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function redeemNotification(){let paramBody={userId:window.headerIdentifier,name:window.customerName};return ajaxReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/skReferal",{method:"POST",body:JSON.stringify(paramBody),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function scheduleFunnel(){return ajaxReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/skFunnel",{method:"POST",body:JSON.stringify({userId:window.headerIdentifier,name:window.customerName}),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function scheduleHPQCrossSell(){return ajaxReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/skHPQCrossSell",{method:"POST",body:JSON.stringify({userId:window.headerIdentifier,name:window.customerName}),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function clearHPQCrossSell(){return ajaxReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/clearQueue",{method:"POST",body:JSON.stringify({userId:window.headerIdentifier,website:"skinkraft",type:"sk-hpq-crosssell"}),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function clearAbandon(type){return ajaxReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/clearQueue",{method:"POST",body:JSON.stringify({userId:window.headerIdentifier,website:"skinkraft",type:type||"sk-abandons"}),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function covidSub(phone){return ajaxReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/skCovid",{method:"POST",body:JSON.stringify({userId:window.headerIdentifier,name:window.customerName,phone}),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function clearFunnel(){return ajaxReqs++,fetch("https://nluihdfsjj.execute-api.ap-south-1.amazonaws.com/Prod/clearQueue",{method:"POST",body:JSON.stringify({userId:window.headerIdentifier,website:"skinkraft",type:"sk-funnel"}),headers:{"Content-Type":"application/json","X-Api-Key":"1c8il6WI9V73FYn3Y3M6c2EwhyRIpjeEUq1nwtn0"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function getProdUpdates(){return ajaxReqs++,fetch("https://api.skinkraft.com/getProdUpdates",{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier,"x-api-key":"PUjACrV8kp717aFX17fly1qR2CtFdEvy903jfeB3"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function submitFUPResponse(email,detail){return ajaxReqs++,fetch("https://api.airtable.com/v0/appg60LiChZyoSrtM/Table%201",{method:"POST",body:JSON.stringify({records:[{fields:{email,userId:window.headerIdentifier,fup:!0,Details:detail}}]}),headers:{"Content-Type":"application/json",Authorization:"Bearer keyp4wv3czaovLSRm"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function amazonIntegration(requestType,data){ajaxReqs++;let _url="/skAmazonIntegration";requestType==="GET"&&(_url="/skAmazonIntegration?uid="+data);let _options={method:requestType,headers:{"Content-Type":"application/json"}};return requestType==="POST"&&(_options.body=JSON.stringify(data),_options.headers["X-SK-Amz-Id"]=window.headerIdentifier),fetch(baseUrl+_url,_options).then(function(response){return ajaxReqs--,response.json()}).catch(function(){return ajaxReqs--,null})}function getImmunityProducts(date){ajaxReqs++;var url="/skProductRecos?type=immunity";return date&&(url+="?date="+date),fetch(newBaseUrl+url,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier,"X-Api-Key":"PUjACrV8kp717aFX17fly1qR2CtFdEvy903jfeB3"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})}function getIPQs(num,date){ajaxReqs++;var url="/skListIPQ?limit="+num;return date&&num&&(url+="&date="+date),date&&!num&&(url="/skListIPQ?date="+date),fetch(newBaseUrl+url,{method:"GET",headers:{"Content-Type":"application/json","X-SK-Amz-Id":window.headerIdentifier,"X-Api-Key":"PUjACrV8kp717aFX17fly1qR2CtFdEvy903jfeB3"}}).then(function(response){return ajaxReqs--,response.json()}).catch(function(e){return console.log(e),ajaxReqs--,null})} 2//# sourceMappingURL=/cdn/shop/t/11/assets/subscriptions.js.map?v=62089523970085736381669250783
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.