Socket
Socket
Sign inDemoInstall

cliengo-sdk

Package Overview
Dependencies
18
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.9 to 0.8.10

2

dist/cliengo-sdk.js

@@ -476,3 +476,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

l.sourceId = sourceId;
l.convertionUrl = document.location.href;
l.conversionUrl = document.location.href;
l.landingUrl = _cookies2.default.readCookie('ldkRefererTracking');

@@ -479,0 +479,0 @@ // TODO: ver con yepes si es null

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Cliengo=t():e.Cliengo=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,n){"use strict";function o(e){this.accountId=e.companyId,this.sourceId=e.websiteId,this.whiteLabelId=e.whiteLabelId,this.googleAdWordsConversionId=e.googleAdWordsConversionId,this.googleAnalyticsId=e.googleAnalyticsId,this.chatbotName=e.chatbotName,this.phone=e.phone,this.conversionPixels=e.conversionPixels,this.chatWindowColor=e.chatWindowColor,this.chatWindowTitle=e.chatWindowTitle,this.chatWindowInputPlaceholder=e.chatWindowInputPlaceholder,this.chatInitialMessage=e.chatInitialMessage,this.chatIsWritingMessage=e.chatIsWritingMessage,this.chatSaluteTime=e.chatSaluteTimeInSeconds,this.formHooksEnabled=e.formHooksEnabled,this.contactBarEnabled=e.contactBarEnabled,this.automaticRemarketingEnabled=e.automaticRemarketingEnabled,this.poweredBy=e.poweredBy||{},this.hasConvertedLead=e.hasConvertedLead,this.WS_CHATBOT_URL=e.WS_CHATBOT_URL,this.sessionPath=e.sessionPath,this.debug=e.debug,this.lang=e.lang,this.widgetVersion=e.widgetVersion}o.prototype.getConvertionPixels=function(){return this.conversionPixels},e.exports={ChatConfig:o}},function(e,t,n){"use strict";function o(e){this.email=e.email,this.phone=e.phone,this.name=e.name,this.nationalIdentityNumber=e.nationalIdentityNumber,this.sourceId=e.sourceId,this.accountId=e.accountId,this.customFields=e.customFields||{},this.gender=e.gender,this.age=e.age,this.lastName=e.lastName,this.address=e.address||{country:null,zipCode:null,city:null,state:null},this.nationality=e.nationality,this.landingUrl=e.landingUrl,this.convertionUrl=e.convertionUrl,this.utmSource=null,this.utmMedium=null,this.utmCampaign=null,this.utmContent=null,this.utmTerm=null,this.utmAdgroup=null,this.gclid=null}o.prototype.addCustomField=function(e,t){this.customFields[e]=t},o.prototype.getCustomField=function(e){return this.customFields[e]},o.prototype.getEmail=function(){return this.email},o.prototype.getPhone=function(){return this.phone},o.prototype.getName=function(){return this.name},o.prototype.getSourceId=function(){return this.sourceId},o.prototype.getAccountId=function(){return this.accountId},o.prototype.getNationalIdentityNumber=function(){return this.nationalIdentityNumber};var r=Object.freeze({UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content",UTM_CAMPAIGN:"utm_campaign",UTM_ADGROUP:"utm_adgroup",GCLID:"gclid"});e.exports={Lead:o,UTMs:r}},function(e,t,n){"use strict";function o(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null}function r(e,t,n){var o="";if(n){var r=new Date;r.setTime(r.getTime()+60*n*1e3),o="; expires="+r.toGMTString()}return document.cookie=e+"="+t+o+NaN,e+"="+t+o+NaN}function i(e){var t=a(e);return t?"&"+e+"="+t:""}function a(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(window.location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function c(e,t){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(t)||[,""])[1].replace(/\+/g,"%20"))||null}function s(){var e="";return e+=i("utm_source"),e+=i("utm_medium"),e+=i("utm_term"),e+=i("utm_content"),e+=i("utm_campaign"),e+=i("utm_adgroup"),e+=i("gclid"),r("ldkUtms",e,240),e}e.exports={readCookie:o,createCookie:r,addIfParameterExists:i,getURLParameter:a,getParamFromQueryString:c,setUtmCookies:s}},function(e,t,n){"use strict";function o(e,t){var n=c+s,o=JSON.stringify({leadId:e,sourceId:t}),r=new window.Headers,i={method:"POST",headers:r,mode:"cors",body:o,cache:"default"};return window.fetch(n,i).then(function(e){return e.json()}).catch(function(e){return e})}function r(e,t,n){var o=c+u,r=JSON.stringify({leadId:e,sourceId:t,accountId:n}),i=new window.Headers,a={method:"POST",headers:i,mode:"cors",body:r,cache:"default"};return window.fetch(o,a).then(function(e){return e.json()}).catch(function(e){return e})}function i(){var e=new window.Headers,t={method:"POST",headers:e,mode:"cors",cache:"default"};return window.fetch(c+d,t).then(function(e){return e.json()}).catch(function(e){return e})}function a(e){var t=JSON.stringify({response:e}),n=new window.Headers,o={method:"POST",headers:n,mode:"cors",body:t,cache:"default"};return window.fetch(c+l,o).then(function(e){return e.json()}).catch(function(e){return e})}var c="https://fintech.cliengo.com",s="/mocks/veraz/AR/simpleValidation",u="/process/lead/UY",d="/mocks/veraz/AR/step1",l="/mocks/veraz/AR/step2";e.exports={validateIdentity:o,creditAcceptance:r,getSecurityQuestion:i,answerSecurityQuestion:a}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){window.fetch(T+e+"/"+t+".js?configOnly=true").then(function(e){return e.json()}).then(function(e){return M=new y.ChatConfig(e),P=M.conversionPixels,_=M.sourceId,U=M.accountId,i(),M})}function i(){return null===v.default.readCookie("ldkRefererTracking")&&v.default.createCookie("ldkRefererTracking",document.referrer?document.referrer:"direct",240),v.default.setUtmCookies(),b=v.default.readCookie("ldkRefererTracking"),x=v.default.readCookie("ldkUtms"),!0}function a(e){var t=new w.Lead(e),n=v.default.readCookie("ldkUtms");t.accountId=U,t.sourceId=_,t.convertionUrl=document.location.href,t.landingUrl=v.default.readCookie("ldkRefererTracking"),t.utmSource=v.default.getParamFromQueryString(w.UTMs.UTM_SOURCE,n)||"",t.utmMedium=v.default.getParamFromQueryString(w.UTMs.UTM_MEDIUM,n)||"",t.utmTerm=v.default.getParamFromQueryString(w.UTMs.UTM_TERM,n)||"",t.utmContent=v.default.getParamFromQueryString(w.UTMs.UTM_CONTENT,n)||"",t.utmCampaign=v.default.getParamFromQueryString(w.UTMs.UTM_CAMPAIGN,n)||"",t.utmAdgroup=v.default.getParamFromQueryString(w.UTMs.UTM_ADGROUP,n)||"",t.gclid=v.default.getParamFromQueryString(w.UTMs.GCLID,n)||"";var o=JSON.stringify(t),r=new window.Headers,i={method:"POST",headers:r,mode:"cors",body:o,cache:"default"};return window.fetch(I+C,i).then(function(e){return e.json()}).catch(function(e){return e})}function c(e){return g.default.validateIdentity(e,d())}function s(e,t,n){return g.default.creditAcceptance(e,t,n)}function u(e){return Promise.resolve()}function d(){return _}function l(){return U}function f(){console.log("firing new lead pixel");var e=document.write,t=document.createElement("div");t.classList.add("pixel-script"),t.innerHTML=P,document.write=function(e){document.body.appendChild(e)},document.body.appendChild(t),setTimeout(function(){document.write=e},5e3)}function m(){return P}Object.defineProperty(t,"__esModule",{value:!0}),t.getConvertionPixels=t.fireNewLeadPixels=t.init=t.getAccountId=t.readAndSetCookies=t.getSourceId=t.addFinnProfile=t.creditAcceptance=t.validateIdentity=t.createLead=void 0;var h=n(3),g=o(h),p=n(2),v=o(p),w=n(1),y=n(0),I="https://stage.cliengo.com",C="/2.0/public/leads",T="https://s.cliengo.com/weboptimizer/",_="",U="",M="",P='\x3c!-- Google Code for Conversiones - Pablo Test Conversion Page --\x3e\r\n<script type="text/javascript" id="pixel-script">\r\n/* <![CDATA[ */\r\nvar google_conversion_id = 996173742;\r\nvar google_conversion_language = "en";\r\nvar google_conversion_format = "3";\r\nvar google_conversion_color = "ffffff";\r\nvar google_conversion_label = "f1zACL7JgHYQrs-B2wM";\r\nvar google_remarketing_only = false;\r\n/* ]]> */\r\n<\/script>\r\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\r\n<\/script>\r\n<noscript>\r\n<div style="display:inline;">\r\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/996173742/?label=f1zACL7JgHYQrs-B2wM&amp;guid=ON&amp;script=0"/>\r\n</div>\r\n</noscript>',b=void 0,x=void 0;t.createLead=a,t.validateIdentity=c,t.creditAcceptance=s,t.addFinnProfile=u,t.getSourceId=d,t.readAndSetCookies=i,t.getAccountId=l,t.init=r,t.fireNewLeadPixels=f,t.getConvertionPixels=m}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Cliengo=t():e.Cliengo=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,n){"use strict";function o(e){this.accountId=e.companyId,this.sourceId=e.websiteId,this.whiteLabelId=e.whiteLabelId,this.googleAdWordsConversionId=e.googleAdWordsConversionId,this.googleAnalyticsId=e.googleAnalyticsId,this.chatbotName=e.chatbotName,this.phone=e.phone,this.conversionPixels=e.conversionPixels,this.chatWindowColor=e.chatWindowColor,this.chatWindowTitle=e.chatWindowTitle,this.chatWindowInputPlaceholder=e.chatWindowInputPlaceholder,this.chatInitialMessage=e.chatInitialMessage,this.chatIsWritingMessage=e.chatIsWritingMessage,this.chatSaluteTime=e.chatSaluteTimeInSeconds,this.formHooksEnabled=e.formHooksEnabled,this.contactBarEnabled=e.contactBarEnabled,this.automaticRemarketingEnabled=e.automaticRemarketingEnabled,this.poweredBy=e.poweredBy||{},this.hasConvertedLead=e.hasConvertedLead,this.WS_CHATBOT_URL=e.WS_CHATBOT_URL,this.sessionPath=e.sessionPath,this.debug=e.debug,this.lang=e.lang,this.widgetVersion=e.widgetVersion}o.prototype.getConvertionPixels=function(){return this.conversionPixels},e.exports={ChatConfig:o}},function(e,t,n){"use strict";function o(e){this.email=e.email,this.phone=e.phone,this.name=e.name,this.nationalIdentityNumber=e.nationalIdentityNumber,this.sourceId=e.sourceId,this.accountId=e.accountId,this.customFields=e.customFields||{},this.gender=e.gender,this.age=e.age,this.lastName=e.lastName,this.address=e.address||{country:null,zipCode:null,city:null,state:null},this.nationality=e.nationality,this.landingUrl=e.landingUrl,this.convertionUrl=e.convertionUrl,this.utmSource=null,this.utmMedium=null,this.utmCampaign=null,this.utmContent=null,this.utmTerm=null,this.utmAdgroup=null,this.gclid=null}o.prototype.addCustomField=function(e,t){this.customFields[e]=t},o.prototype.getCustomField=function(e){return this.customFields[e]},o.prototype.getEmail=function(){return this.email},o.prototype.getPhone=function(){return this.phone},o.prototype.getName=function(){return this.name},o.prototype.getSourceId=function(){return this.sourceId},o.prototype.getAccountId=function(){return this.accountId},o.prototype.getNationalIdentityNumber=function(){return this.nationalIdentityNumber};var r=Object.freeze({UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content",UTM_CAMPAIGN:"utm_campaign",UTM_ADGROUP:"utm_adgroup",GCLID:"gclid"});e.exports={Lead:o,UTMs:r}},function(e,t,n){"use strict";function o(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null}function r(e,t,n){var o="";if(n){var r=new Date;r.setTime(r.getTime()+60*n*1e3),o="; expires="+r.toGMTString()}return document.cookie=e+"="+t+o+NaN,e+"="+t+o+NaN}function i(e){var t=a(e);return t?"&"+e+"="+t:""}function a(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(window.location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function c(e,t){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(t)||[,""])[1].replace(/\+/g,"%20"))||null}function s(){var e="";return e+=i("utm_source"),e+=i("utm_medium"),e+=i("utm_term"),e+=i("utm_content"),e+=i("utm_campaign"),e+=i("utm_adgroup"),e+=i("gclid"),r("ldkUtms",e,240),e}e.exports={readCookie:o,createCookie:r,addIfParameterExists:i,getURLParameter:a,getParamFromQueryString:c,setUtmCookies:s}},function(e,t,n){"use strict";function o(e,t){var n=c+s,o=JSON.stringify({leadId:e,sourceId:t}),r=new window.Headers,i={method:"POST",headers:r,mode:"cors",body:o,cache:"default"};return window.fetch(n,i).then(function(e){return e.json()}).catch(function(e){return e})}function r(e,t,n){var o=c+u,r=JSON.stringify({leadId:e,sourceId:t,accountId:n}),i=new window.Headers,a={method:"POST",headers:i,mode:"cors",body:r,cache:"default"};return window.fetch(o,a).then(function(e){return e.json()}).catch(function(e){return e})}function i(){var e=new window.Headers,t={method:"POST",headers:e,mode:"cors",cache:"default"};return window.fetch(c+d,t).then(function(e){return e.json()}).catch(function(e){return e})}function a(e){var t=JSON.stringify({response:e}),n=new window.Headers,o={method:"POST",headers:n,mode:"cors",body:t,cache:"default"};return window.fetch(c+l,o).then(function(e){return e.json()}).catch(function(e){return e})}var c="https://fintech.cliengo.com",s="/mocks/veraz/AR/simpleValidation",u="/process/lead/UY",d="/mocks/veraz/AR/step1",l="/mocks/veraz/AR/step2";e.exports={validateIdentity:o,creditAcceptance:r,getSecurityQuestion:i,answerSecurityQuestion:a}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){window.fetch(T+e+"/"+t+".js?configOnly=true").then(function(e){return e.json()}).then(function(e){return M=new y.ChatConfig(e),P=M.conversionPixels,_=M.sourceId,U=M.accountId,i(),M})}function i(){return null===v.default.readCookie("ldkRefererTracking")&&v.default.createCookie("ldkRefererTracking",document.referrer?document.referrer:"direct",240),v.default.setUtmCookies(),b=v.default.readCookie("ldkRefererTracking"),x=v.default.readCookie("ldkUtms"),!0}function a(e){var t=new w.Lead(e),n=v.default.readCookie("ldkUtms");t.accountId=U,t.sourceId=_,t.conversionUrl=document.location.href,t.landingUrl=v.default.readCookie("ldkRefererTracking"),t.utmSource=v.default.getParamFromQueryString(w.UTMs.UTM_SOURCE,n)||"",t.utmMedium=v.default.getParamFromQueryString(w.UTMs.UTM_MEDIUM,n)||"",t.utmTerm=v.default.getParamFromQueryString(w.UTMs.UTM_TERM,n)||"",t.utmContent=v.default.getParamFromQueryString(w.UTMs.UTM_CONTENT,n)||"",t.utmCampaign=v.default.getParamFromQueryString(w.UTMs.UTM_CAMPAIGN,n)||"",t.utmAdgroup=v.default.getParamFromQueryString(w.UTMs.UTM_ADGROUP,n)||"",t.gclid=v.default.getParamFromQueryString(w.UTMs.GCLID,n)||"";var o=JSON.stringify(t),r=new window.Headers,i={method:"POST",headers:r,mode:"cors",body:o,cache:"default"};return window.fetch(I+C,i).then(function(e){return e.json()}).catch(function(e){return e})}function c(e){return g.default.validateIdentity(e,d())}function s(e,t,n){return g.default.creditAcceptance(e,t,n)}function u(e){return Promise.resolve()}function d(){return _}function l(){return U}function f(){console.log("firing new lead pixel");var e=document.write,t=document.createElement("div");t.classList.add("pixel-script"),t.innerHTML=P,document.write=function(e){document.body.appendChild(e)},document.body.appendChild(t),setTimeout(function(){document.write=e},5e3)}function m(){return P}Object.defineProperty(t,"__esModule",{value:!0}),t.getConvertionPixels=t.fireNewLeadPixels=t.init=t.getAccountId=t.readAndSetCookies=t.getSourceId=t.addFinnProfile=t.creditAcceptance=t.validateIdentity=t.createLead=void 0;var h=n(3),g=o(h),p=n(2),v=o(p),w=n(1),y=n(0),I="https://stage.cliengo.com",C="/2.0/public/leads",T="https://s.cliengo.com/weboptimizer/",_="",U="",M="",P='\x3c!-- Google Code for Conversiones - Pablo Test Conversion Page --\x3e\r\n<script type="text/javascript" id="pixel-script">\r\n/* <![CDATA[ */\r\nvar google_conversion_id = 996173742;\r\nvar google_conversion_language = "en";\r\nvar google_conversion_format = "3";\r\nvar google_conversion_color = "ffffff";\r\nvar google_conversion_label = "f1zACL7JgHYQrs-B2wM";\r\nvar google_remarketing_only = false;\r\n/* ]]> */\r\n<\/script>\r\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\r\n<\/script>\r\n<noscript>\r\n<div style="display:inline;">\r\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/996173742/?label=f1zACL7JgHYQrs-B2wM&amp;guid=ON&amp;script=0"/>\r\n</div>\r\n</noscript>',b=void 0,x=void 0;t.createLead=a,t.validateIdentity=c,t.creditAcceptance=s,t.addFinnProfile=u,t.getSourceId=d,t.readAndSetCookies=i,t.getAccountId=l,t.init=r,t.fireNewLeadPixels=f,t.getConvertionPixels=m}])});
//# sourceMappingURL=cliengo-sdk.min.js.map

@@ -77,3 +77,3 @@ 'use strict';

l.sourceId = sourceId;
l.convertionUrl = document.location.href;
l.conversionUrl = document.location.href;
l.landingUrl = _cookies2.default.readCookie('ldkRefererTracking');

@@ -80,0 +80,0 @@ // TODO: ver con yepes si es null

{
"name": "cliengo-sdk",
"version": "0.8.9",
"version": "0.8.10",
"description": "We offer a powerful Javascript API that gives you flexibility and config, control and track over the behavior of the Cliengo Platform. You can decide, how, when and where to display the chat box on your site, as well as view and update visitor information. You can also track informations and events in web platforms out of the box, including Google Analytics, Google Adwords, Facebook Ads and Google Tag Manager.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc