PageSourceSearch

https://www.rexel.fr/frx/_ui/kpiTemplatization_desktop_scripts_67f9a3f7653d8d16177244f4dcc0b6cc.js

js rexel.fr collected 2026-10-01 12:17:19 UTC 12,384 bytes, 28 lines download raw bytes

1'use strict';class kpiTemplateClass{constructor(){this.accountType=accountType;this.adminRights=adminRights;this.gtmauthentication=gtmauthentication;this.countryCode=countryCode;this.memberId=memberId;this.currencyCode=currencyCode;this.isPunchoutUser=ACC.validations.isTrue(isPunchoutUser);this.gtmwebManager=gtmwebManager;this.encryptedUserID=encryptedUserID;this.pageType=pageType;this.appTraffic=appTraffic;}
2pushDLforTemplete(obj){if(ACC.validations.isTrue(ACC.config.gdprNewRegulationEnabled)){let gdprConsentCookie=$.cookie("consents");if(ACC.validations.isTrue(sendConsentToDLEnable)){dataLayer.push(obj);}
3else if(gdprConsentCookie!=null&&gdprConsentCookie!=undefined){let values=gdprConsentCookie.split(',');$.each(values,function(i,item){if(item!=null&&item!=''){var cookieCode=item.split(':')[0];var cookieValue=item.split(':')[1];if(cookieCode=="ga"&&cookieValue=="1"){dataLayer.push(obj);}}});}}else{dataLayer.push(obj);}}}
4class eeListViewClass extends kpiTemplateClass{constructor(listType,relativeURL,productListName,products){super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.listType=listType;this.relativeURL=relativeURL;this.productListName=productListName;this.products=products;}
5generateKPIObj(currencyCode,listType,relativeURL,productListName,products){var obj={"eeAction":"eeListView","event":"eeListView","currencyCode":currencyCode,"listType":listType,"page":relativeURL,"appTraffic":appTraffic,"productListName":productListName,"products":products};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
6class pageViewKPI extends kpiTemplateClass{constructor(relativeURL,pageCategory,pageType,sousFamille,sousFunction,supplier){super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.relativeURL=relativeURL;this.pageCategory=pageCategory;this.sousFamille=sousFamille;this.sousFunction=sousFunction;this.supplier=supplier;}
7generateKPIObj(accountType,adminRights,gtmauthentication,countryCode,memberId,relativeURL,pageCategory,pageType,sousFamille,sousFunction,encryptedUserID,supplier,isPunchoutUser,gtmwebManager){var obj={'event':"pageview",'accountType':accountType,'adminRights':adminRights,'authentification':gtmauthentication,'country':countryCode,'memberId':memberId,'page':relativeURL,'pageCategory':pageCategory,'pageType':pageType,'appTraffic':appTraffic,'punchoutUser':isPunchoutUser,'sousFamille':sousFamille,'sousFunction':sousFunction,"supplier":supplier,'userId':encryptedUserID,'webManager':gtmwebManager};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
8class eePromoViewClass extends kpiTemplateClass{constructor(relativeURL,pageCategory,promotions,loyaltyProgram,productBrand,sousFamille,sousFunction){super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.relativeURL=relativeURL;this.pageCategory=pageCategory;this.promotions=promotions;this.loyaltyProgram=loyaltyProgram;this.productBrand=productBrand;this.sousFamille=sousFamille;this.sousFunction=sousFunction;}
9generateKPIObj(accountType,adminRights,gtmauthentication,countryCode,memberId,relativeURL,pageCategory,pageType,sousFamille,sousFunction,encryptedUserID,isPunchoutUser,gtmwebManager,loyaltyProgram,productBrand,promotions){var obj={'event':"eePromoView",'accountType':accountType,'adminRights':adminRights,'authentification':gtmauthentication,'country':countryCode,"loyaltyProgram":loyaltyProgram,'memberId':memberId,'page':relativeURL,'pageCategory':pageCategory,'pageType':pageType,'appTraffic':appTraffic,"productBrand":productBrand,'promotions':promotions,'punchoutUser':isPunchoutUser,"sousFamille":sousFamille,"sousFunction":sousFunction,'userId':encryptedUserID,'webManager':gtmwebManager};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
10class eeCheckoutClass extends kpiTemplateClass{constructor(listOfProducts){super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);
10this.listOfProducts=listOfProducts;}
11generateKPIObj(listOfProducts,isPunchoutUser,relativeUrl){var obj={'event':"eeCheckout",'eeAction':"eeCheckout","checkoutStep":"1",'page':relativeUrl,'appTraffic':appTraffic,'products':listOfProducts,'punchoutUser':isPunchoutUser,'webManager':gtmwebManager};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
12class eePromoClickClass extends kpiTemplateClass{constructor(relativeURL,pageCategory,promotions,loyaltyProgram,productBrand,sousFamille,sousFunction){super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.relativeURL=relativeURL;this.pageCategory=pageCategory;this.promotions=promotions;this.loyaltyProgram=loyaltyProgram;this.productBrand=productBrand;this.sousFamille=sousFamille;this.sousFunction=sousFunction;}
13generateKPIObj(accountType,adminRights,gtmauthentication,countryCode,memberId,relativeURL,pageCategory,pageType,sousFamille,sousFunction,encryptedUserID,isPunchoutUser,gtmwebManager,loyaltyProgram,productBrand,promotions){var obj={'event':"eePromoClick",'accountType':accountType,'adminRights':adminRights,'authentification':gtmauthentication,'country':countryCode,"loyaltyProgram":loyaltyProgram,'memberId':memberId,'page':relativeURL,'pageCategory':pageCategory,'pageType':pageType,'appTraffic':appTraffic,"productBrand":productBrand,'promotions':promotions,'punchoutUser':isPunchoutUser,"sousFamille":sousFamille,"sousFunction":sousFunction,'userId':encryptedUserID,'webManager':gtmwebManager};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
14class eeListClickClass extends kpiTemplateClass{constructor(listType,pageCategory,productListName,list,productBrand,categoryName,productCode,productName,position,price){super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.listType=listType;this.pageCategory=pageCategory;this.productListName=productListName;this.list=list;this.productBrand=productBrand;this.categoryName=categoryName;this.productCode=productCode;this.productName=productName;this.position=position;this.price=price;}
15generateKPIObj(listType,pageCategory,productListName,list,productBrand,categoryName,productCode,productName,position,price){var obj={"event":"eeListClick","listType":listType,"pageCategory":pageCategory,'pageType':pageType,'appTraffic':appTraffic,"productListName":productListName,"list":list,"products":[{'brand':productBrand,'category':categoryName,'id':productCode,'name':productName,'position':position,'price':price,'supplier':productBrand,'variant':productCode}]};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
16class eeOrderConfirmation extends kpiTemplateClass{constructor(listOfProducts,relativeURL,transactionCoupon,voucherSuccess,transactionId,orderId,transactionShipping,transactionTax,transactionTotal,worksite)
17{super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.listOfProducts=listOfProducts;this.relativeURL=relativeURL;this.transactionCoupon=transactionCoupon;this.voucherSuccess=voucherSuccess;this.transactionId=transactionId;this.orderId=orderId;this.transactionShipping=transactionShipping;this.transactionTax=transactionTax;this.transactionTotal=transactionTotal;this.worksite=worksite;}
18generateKPIObj(listOfProducts,relativeURL,transactionCoupon,voucherSuccess,transactionId,orderId,transactionShipping,transactionTax,transactionTotal,isPunchoutUser,gtmwebManager,pageType,memberId,gtmauthentication,currencyCode,countryCode,adminRights,accountType,encryptedUserID,worksite){var obj={'event':"orderConfirmation","punchoutUser":isPunchoutUser,"webManager":gtmwebManager,'products':listOfProducts,'page':relativeURL,'pageType':pageType,'appTraffic':appTraffic,'transactionCoupon':transactionCoupon,'transactionId':transactionId,'voucherSuccess':voucherSuccess,"erpOrderId":orderId,'transactionShipping':transactionShipping,'transactionTax':transactionTax,'transactionTotal':transactionTotal,'userId':encryptedUserID,'accountType':accountType,'adminRights':adminRights,'country':countryCode,'currencyCode':currencyCode,'memberId':memberId,'authentication':gtmauthentication,'worksite':worksite,};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
19class eeSiteSearchClass extends kpiTemplateClass{constructor(typeAheadAutoComplete,siteSearchCategory,siteSearchKeyword,resultType,totalSearchResult,querqyAppliedRules){super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.typeAheadAutoComplete=typeAheadAutoComplete;this.siteSearchCategory=siteSearchCategory;this.siteSearchKeyword=siteSearchKeyword;this.resultType=resultType;this.totalSearchResult=totalSearchResult;this.querqyAppliedRules=querqyAppliedRules;}
20generateKPIObj(typeAheadAutoComplete,siteSearchCategory,siteSearchKeyword,resultType,totalSearchResult,querqyAppliedRules){var obj={'autocompletion':typeAheadAutoComplete,'cat55':siteSearchCategory,'kw55':siteSearchKeyword,'event':"sitesearch",'pageType':pageType,'appTraffic':appTraffic,'resultType':resultType,'siteSearchResults':parseInt(totalSearchResult),'query':querqyAppliedRules};acc.common.getSolrRedirectionObject(solrRedirection,obj);acc.common.addPersonalCatalogObj(obj);return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
21class genericGTMEventClass{constructor(eventCategory,eventAction,eventLabel,eventType){this.eventCategory=eventCategory;this.eventAction=eventAction;this.eventLabel=eventLabel;this.eventType=eventType;}
22generateKPIObj(eventCategory,eventAction,eventLabel,eventType){var obj={'event':"Feature Event",eventCategory:eventCategory,eventAction:eventAction,eventLabel:eventLabel,eventType:eventType,appTraffic:appTraffic};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
23class eeAddToCartTemplate extends kpiTemplateClass{constructor(productListName,products)
24{super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.productListName=productListName;this.products=products;}
25generateKPIObj(currencyCode,pageType,productListName,products){var obj={'event':"add_to_cart",'currencyCode':currencyCode,'pageType':pageType,'appTraffic':appTraffic,'productListName':productListName,'products':products};return kpiTemplateClass.prototype.pushDLforTemplete(obj);}}
26class workSiteAnalyticsClass extends kpiTemplateClass{constructor(event,eventCategory,eventAction,eventLabel,eventType,relativeURL,pageCategory,promotions,loyaltyProgram,productBrand,sousFamille,sousFunction){super(accountType,adminRights,gtmauthentication,countryCode,memberId,currencyCode,encryptedUserID,isPunchoutUser,gtmwebManager,pageType);this.event=event;this.eventCategory=eventCategory;this.eventAction=eventAction;this.eventLabel=eventLabel;this.eventType=eventType;this.relativeURL=relativeURL;this.pageCategory=pageCategory;this.promotions=promotions;this.loyaltyProgram=loyaltyProgram;this.productBrand=productBrand;this.sousFamille=sousFamille;this.sousFunction=sousFunction;}
27generateKPIObj(event,eventCategory,eventAction,eventLabel,eventType,accountType,adminRights,gtmauthentication,countryCode,memberId,relativeURL,pageCategory,pageType,sousFamille,sousFunction,encryptedUserID,isPunchoutUser,gtmwebManager,loyaltyProgram,productBrand,promotions){if(event==='Feature Event'){return kpiTemplateClass.prototype.pushDLforTemplete({event:event,eventCategory:eventCategory,eventAction:eventAction,eventLabel:eventLabel,eventType:eventType,appTraffic:appTraffic});}
28if(event==='eePromoClick'||event==='eePromoView'){return kpiTemplateClass.prototype.pushDLforTemplete({event:event,accountType:accountType,adminRights:adminRights,authentification:gtmauthentication,country:countryCode,loyaltyProgram:loyaltyProgram,memberId:memberId,page:relativeURL,pageCategory:pageCategory,pageType:pageType,appTraffic:appTraffic,productBrand:productBrand,promotions:promotions,punchoutUser:isPunchoutUser,sousFamille:sousFamille,sousFunction:sousFunction,userId:encryptedUserID,webManager:gtmwebManager});}}};

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.