apxor-qe 1.6.2-qa.0 → 1.6.3-qa.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,7 +208,7 @@
208
208
  var toUpperCase = function toUpperCase(key) {
209
209
  return key.toUpperCase();
210
210
  };
211
- var FrGM = function FrGM(actual, expected, operator) {
211
+ var KMXo = function KMXo(actual, expected, operator) {
212
212
  switch (operator) {
213
213
  case "EQ":
214
214
  return actual === expected;
@@ -413,7 +413,7 @@
413
413
  path = path.substring(0, index) + "svg:svg";
414
414
  }
415
415
  try {
416
- return document.xOwj(path, document, function (prefix) {
416
+ return document.DOOS(path, document, function (prefix) {
417
417
  if (prefix === "svg") {
418
418
  return "http://www.w3.org/2000/svg";
419
419
  } else {
@@ -473,18 +473,18 @@
473
473
  var Audience = /*#__PURE__*/_createClass(function Audience() {
474
474
  var _this = this;
475
475
  _classCallCheck(this, Audience);
476
- _defineProperty(this, "MLcB", "ALL");
477
- _defineProperty(this, "dsWR", []);
478
- _defineProperty(this, "LTNO", []);
476
+ _defineProperty(this, "VaVo", "ALL");
477
+ _defineProperty(this, "sDWS", []);
478
+ _defineProperty(this, "yMFf", []);
479
479
  _defineProperty(this, "userAttributesValidated", true);
480
480
  _defineProperty(this, "sessionAttributeValidated", true);
481
481
  _defineProperty(this, "parse", function () {
482
482
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
483
483
  try {
484
- _this.MLcB = config.audience.audience_type;
485
- _this.dsWR = config.audience.attributes.user;
486
- _this.LTNO = config.audience.attributes.session;
487
- if (!Array.isArray(_this.dsWR) || !Array.isArray(_this.LTNO)) {
484
+ _this.VaVo = config.audience.audience_type;
485
+ _this.sDWS = config.audience.attributes.user;
486
+ _this.yMFf = config.audience.attributes.session;
487
+ if (!Array.isArray(_this.sDWS) || !Array.isArray(_this.yMFf)) {
488
488
  Logger$1.error("No attributes");
489
489
  return false;
490
490
  }
@@ -496,11 +496,11 @@
496
496
  });
497
497
  _defineProperty(this, "validate", function (user, session) {
498
498
  var status = true;
499
- if (_this.MLcB === "FTU") {
499
+ if (_this.VaVo === "FTU") {
500
500
  status = Apxor.getController().getSessionInfo().is_first_session;
501
501
  }
502
- var userAttributesCompare = _this.oQgb(user, _this.dsWR);
503
- var sessionAttributesCompare = _this.oQgb(session, _this.LTNO);
502
+ var userAttributesCompare = _this.Mbis(user, _this.sDWS);
503
+ var sessionAttributesCompare = _this.Mbis(session, _this.yMFf);
504
504
  if (!userAttributesCompare) {
505
505
  _this.userAttributesValidated = false;
506
506
  }
@@ -509,7 +509,7 @@
509
509
  }
510
510
  return status && userAttributesCompare && sessionAttributesCompare;
511
511
  });
512
- _defineProperty(this, "oQgb", function (attributes, expected) {
512
+ _defineProperty(this, "Mbis", function (attributes, expected) {
513
513
  var length = expected.length;
514
514
  var status = true;
515
515
  try {
@@ -557,7 +557,7 @@
557
557
  } else if (type === "b") {
558
558
  loggedValue = !!loggedValue;
559
559
  }
560
- return FrGM(loggedValue, configValue, operator);
560
+ return KMXo(loggedValue, configValue, operator);
561
561
  });
562
562
  });
563
563
  status = status && match;
@@ -585,41 +585,41 @@
585
585
  var Frequency = /*#__PURE__*/_createClass(function Frequency() {
586
586
  var _this = this;
587
587
  _classCallCheck(this, Frequency);
588
- _defineProperty(this, "ansI", 0);
589
- _defineProperty(this, "XsJV", 0);
590
- _defineProperty(this, "FXvj", "SESSION");
591
- _defineProperty(this, "DALS", 0);
592
- _defineProperty(this, "hPUi", 0);
593
- _defineProperty(this, "fckB", 0);
588
+ _defineProperty(this, "MWXm", 0);
589
+ _defineProperty(this, "oNDH", 0);
590
+ _defineProperty(this, "sChz", "SESSION");
591
+ _defineProperty(this, "ElVV", 0);
592
+ _defineProperty(this, "bLMV", 0);
593
+ _defineProperty(this, "kWOI", 0);
594
594
  _defineProperty(this, "parse", function () {
595
595
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
596
596
  try {
597
- _this.xKIU = config._id;
598
- _this.UzYn = config.meta;
599
- _this.ansI = config.frequency.count;
600
- if (_this.ansI === -1) {
601
- _this.ansI = 1000;
602
- }
603
- _this.fckB = _this.ansI;
604
- _this.XsJV = config.frequency.time_interval;
605
- _this.FXvj = config.frequency.validity;
606
- _this.hPUi = config.frequency.ses_lmt;
597
+ _this.UOvb = config._id;
598
+ _this.ZRcw = config.meta;
599
+ _this.MWXm = config.frequency.count;
600
+ if (_this.MWXm === -1) {
601
+ _this.MWXm = 1000;
602
+ }
603
+ _this.kWOI = _this.MWXm;
604
+ _this.oNDH = config.frequency.time_interval;
605
+ _this.sChz = config.frequency.validity;
606
+ _this.bLMV = config.frequency.ses_lmt;
607
607
  _this._dayCount = config.frequency.day_lmt;
608
608
  // let data = Apxor.getController().getFromStorage(QE_STATE);
609
609
  // let qe_state = JSON.parse(decode(Apxor.getSiteId(), data));
610
610
  var qe_state = CE.getInstance().getQeState();
611
611
  if (!isDefined(qe_state) || !isDefined(qe_state[config._id])) return true;
612
- if (_this.FXvj === "SESSION") {
613
- _this.ansI = parseInt(_this.ansI) - parseInt(qe_state[config._id]["SESSION"]);
614
- if (_this.ansI <= 0) {
615
- _this.QyOa("Session limit reached");
612
+ if (_this.sChz === "SESSION") {
613
+ _this.MWXm = parseInt(_this.MWXm) - parseInt(qe_state[config._id]["SESSION"]);
614
+ if (_this.MWXm <= 0) {
615
+ _this.Jhva("Session limit reached");
616
616
  console.warn("Max count limit reached for session:" + config._id);
617
617
  return false;
618
618
  }
619
- } else if (_this.FXvj === "OVERALL") {
620
- _this.ansI = parseInt(_this.ansI) - parseInt(qe_state[config._id]["OVERALL"]);
621
- if (_this.ansI <= 0) {
622
- _this.QyOa("Overall limit reached");
619
+ } else if (_this.sChz === "OVERALL") {
620
+ _this.MWXm = parseInt(_this.MWXm) - parseInt(qe_state[config._id]["OVERALL"]);
621
+ if (_this.MWXm <= 0) {
622
+ _this.Jhva("Overall limit reached");
623
623
  console.warn("Max count limit reached for overall:" + config._id);
624
624
  return false;
625
625
  }
@@ -633,32 +633,32 @@
633
633
  }
634
634
  return true;
635
635
  });
636
- _defineProperty(this, "PrTa", function () {
637
- _this.ansI = _this.ansI - 1;
636
+ _defineProperty(this, "KQWg", function () {
637
+ _this.MWXm = _this.MWXm - 1;
638
638
  });
639
639
  _defineProperty(this, "getFrequencyCount", function () {
640
- return _this.ansI;
640
+ return _this.MWXm;
641
641
  });
642
- _defineProperty(this, "hYCk", function () {
643
- if (_this.FXvj === "SESSION") {
644
- _this.ansI = _this.fckB;
642
+ _defineProperty(this, "ffxG", function () {
643
+ if (_this.sChz === "SESSION") {
644
+ _this.MWXm = _this.kWOI;
645
645
  Logger$2.info("Campaign Limit reset");
646
646
  }
647
647
  });
648
648
  /**
649
- * @function fhhD
649
+ * @function xWvr
650
650
  * @description Validates if the campaign count is with in the limits set in the config.
651
651
  * @param {string} Config id
652
652
  * @returns {boolean} true - If the Campaign limits are not reached
653
653
  * false - Otherwise
654
654
  */
655
- _defineProperty(this, "fhhD", function (id) {
655
+ _defineProperty(this, "xWvr", function (id) {
656
656
  try {
657
- if (_this.ansI <= 0) {
658
- if (_this.FXvj === "OVERALL") {
659
- _this.QyOa("Overall limit reached");
660
- } else if (_this.FXvj === "SESSION") {
661
- _this.QyOa("Session limit reached");
657
+ if (_this.MWXm <= 0) {
658
+ if (_this.sChz === "OVERALL") {
659
+ _this.Jhva("Overall limit reached");
660
+ } else if (_this.sChz === "SESSION") {
661
+ _this.Jhva("Session limit reached");
662
662
  }
663
663
  return false;
664
664
  }
@@ -670,11 +670,11 @@
670
670
  if (!isDefined(qe_state) || !isDefined(qe_state[id])) return true;
671
671
 
672
672
  //If the config has a session count limit set
673
- if (_this.hPUi !== 0) {
674
- var sessionCountInConfig = parseInt(_this.hPUi);
673
+ if (_this.bLMV !== 0) {
674
+ var sessionCountInConfig = parseInt(_this.bLMV);
675
675
  var thisSessionCount = parseInt(qe_state[id]["SESSION"]);
676
676
  if (sessionCountInConfig - thisSessionCount <= 0) {
677
- _this.QyOa("Session limit reached");
677
+ _this.Jhva("Session limit reached");
678
678
  return false;
679
679
  }
680
680
  }
@@ -686,23 +686,23 @@
686
686
  var dayCountInConfig = parseInt(_this._dayCount);
687
687
  var thisDayCount = parseInt(((_qe_state$id = qe_state[id]) === null || _qe_state$id === void 0 ? void 0 : _qe_state$id.DATES[date]) || 0);
688
688
  if (dayCountInConfig - thisDayCount <= 0) {
689
- _this.QyOa("Day limit reached");
689
+ _this.Jhva("Day limit reached");
690
690
  return false;
691
691
  }
692
692
  }
693
693
  } catch (e) {
694
- _this.QyOa("Error validating the frequency: ".concat(e));
694
+ _this.Jhva("Error validating the frequency: ".concat(e));
695
695
  Logger$2.error("Error validating the frequency:" + e);
696
696
  }
697
697
  return true;
698
698
  });
699
- _defineProperty(this, "QyOa", function (reason) {
700
- var _this$UzYn$attr;
699
+ _defineProperty(this, "Jhva", function (reason) {
700
+ var _this$ZRcw$attr;
701
701
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
702
- apx_nudge_type: _this.UzYn.type === "SURVEY" ? "survey" : "campaign",
703
- apx_nudge_id: _this.xKIU,
704
- apx_nudge_name: _this.UzYn.name,
705
- apx_variant_code: _this.UzYn.isExperiment || _this.UzYn.only_context ? (_this$UzYn$attr = _this.UzYn.attr) === null || _this$UzYn$attr === void 0 ? void 0 : _this$UzYn$attr[APX_VARIANT_CODE] : "TG",
702
+ apx_nudge_type: _this.ZRcw.type === "SURVEY" ? "survey" : "campaign",
703
+ apx_nudge_id: _this.UOvb,
704
+ apx_nudge_name: _this.ZRcw.name,
705
+ apx_variant_code: _this.ZRcw.isExperiment || _this.ZRcw.only_context ? (_this$ZRcw$attr = _this.ZRcw.attr) === null || _this$ZRcw$attr === void 0 ? void 0 : _this$ZRcw$attr[APX_VARIANT_CODE] : "TG",
706
706
  apx_failure_type: "warn",
707
707
  apx_reason: reason
708
708
  });
@@ -712,14 +712,14 @@
712
712
  var Meta = /*#__PURE__*/_createClass(function Meta() {
713
713
  var _this = this;
714
714
  _classCallCheck(this, Meta);
715
- _defineProperty(this, "hqtt", "");
716
- _defineProperty(this, "MLcB", "");
715
+ _defineProperty(this, "EzOS", "");
716
+ _defineProperty(this, "VaVo", "");
717
717
  _defineProperty(this, "parse", function () {
718
718
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
719
719
  try {
720
720
  var _config$meta, _config$meta2;
721
- _this.hqtt = config.meta.name;
722
- _this.MLcB = config.meta.type;
721
+ _this.EzOS = config.meta.name;
722
+ _this.VaVo = config.meta.type;
723
723
  _this._only_context = config.meta.only_context;
724
724
  _this._attr = ((_config$meta = config.meta) === null || _config$meta === void 0 ? void 0 : _config$meta.attr) || {};
725
725
  _this._isExperiment = (_config$meta2 = config.meta) === null || _config$meta2 === void 0 ? void 0 : _config$meta2.isExperiment;
@@ -735,11 +735,11 @@
735
735
  var Validity = /*#__PURE__*/_createClass(function Validity() {
736
736
  var _this = this;
737
737
  _classCallCheck(this, Validity);
738
- _defineProperty(this, "pOyH", -1);
739
- _defineProperty(this, "PSJt", -1);
740
- _defineProperty(this, "LHUD", -1);
741
- _defineProperty(this, "SuFC", -1);
742
- _defineProperty(this, "CtxV", false);
738
+ _defineProperty(this, "fooS", -1);
739
+ _defineProperty(this, "kSER", -1);
740
+ _defineProperty(this, "gKFX", -1);
741
+ _defineProperty(this, "LVss", -1);
742
+ _defineProperty(this, "TMmn", false);
743
743
  _defineProperty(this, "_nudge_expired", false);
744
744
  _defineProperty(this, "_not_yet_active", false);
745
745
  _defineProperty(this, "_not_in_specified_time", false);
@@ -750,17 +750,17 @@
750
750
  Logger$3.error("Not valid dates");
751
751
  return false;
752
752
  }
753
- _this.pOyH = Date.parse(config.validity.start_date);
754
- _this.PSJt = Date.parse(config.validity.end_date);
753
+ _this.fooS = Date.parse(config.validity.start_date);
754
+ _this.kSER = Date.parse(config.validity.end_date);
755
755
  if (isDefined(config.at_specific_time)) {
756
- _this.CtxV = config.at_specific_time;
757
- if (_this.CtxV && isDefined(config.time_limits)) {
756
+ _this.TMmn = config.at_specific_time;
757
+ if (_this.TMmn && isDefined(config.time_limits)) {
758
758
  var currentDate = new Date().toISOString().split("T")[0];
759
- _this.LHUD = Date.parse(currentDate + "T" + config.time_limits.start_time + ":00.000Z");
760
- _this.SuFC = Date.parse(currentDate + "T" + config.time_limits.end_time + ":00.000Z");
759
+ _this.gKFX = Date.parse(currentDate + "T" + config.time_limits.start_time + ":00.000Z");
760
+ _this.LVss = Date.parse(currentDate + "T" + config.time_limits.end_time + ":00.000Z");
761
761
 
762
762
  // If invalid format is passed, return false
763
- if (isNaN(_this.LHUD) || isNaN(_this.SuFC)) {
763
+ if (isNaN(_this.gKFX) || isNaN(_this.LVss)) {
764
764
  Logger$3.error("Not valid times");
765
765
  return false;
766
766
  }
@@ -774,14 +774,14 @@
774
774
  });
775
775
  _defineProperty(this, "validate", function () {
776
776
  var currentTime = Date.now();
777
- if (currentTime > _this.pOyH && currentTime < _this.PSJt) {
778
- if (_this.CtxV && !(currentTime >= _this.LHUD && currentTime <= _this.SuFC)) {
777
+ if (currentTime > _this.fooS && currentTime < _this.kSER) {
778
+ if (_this.TMmn && !(currentTime >= _this.gKFX && currentTime <= _this.LVss)) {
779
779
  _this._not_in_specified_time = true;
780
780
  }
781
- return !_this.CtxV || currentTime >= _this.LHUD && currentTime <= _this.SuFC;
782
- } else if (currentTime < _this.pOyH) {
781
+ return !_this.TMmn || currentTime >= _this.gKFX && currentTime <= _this.LVss;
782
+ } else if (currentTime < _this.fooS) {
783
783
  _this._not_yet_active = true;
784
- } else if (currentTime > _this.PSJt) {
784
+ } else if (currentTime > _this.kSER) {
785
785
  _this._nudge_expired = true;
786
786
  }
787
787
  return false;
@@ -791,13 +791,13 @@
791
791
  var Details = /*#__PURE__*/_createClass(function Details() {
792
792
  var _this = this;
793
793
  _classCallCheck(this, Details);
794
- _defineProperty(this, "hqtt", "");
795
- _defineProperty(this, "XKvc", {});
794
+ _defineProperty(this, "EzOS", "");
795
+ _defineProperty(this, "pyOM", {});
796
796
  _defineProperty(this, "parse", function () {
797
797
  var details = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
798
798
  try {
799
- _this.hqtt = details.name;
800
- _this.XKvc = details.additional_info;
799
+ _this.EzOS = details.name;
800
+ _this.pyOM = details.additional_info;
801
801
  } catch (error) {
802
802
  return false;
803
803
  }
@@ -808,14 +808,14 @@
808
808
  var Timebounds = /*#__PURE__*/_createClass(function Timebounds() {
809
809
  var _this = this;
810
810
  _classCallCheck(this, Timebounds);
811
- _defineProperty(this, "xBDg", 0);
812
- _defineProperty(this, "sjKZ", 0);
811
+ _defineProperty(this, "NBtp", 0);
812
+ _defineProperty(this, "ZJHd", 0);
813
813
  _defineProperty(this, "parse", function () {
814
814
  var timeBounds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
815
815
  try {
816
- _this.xBDg = Number(timeBounds.lower);
817
- _this.sjKZ = Number(timeBounds.upper);
818
- if (isNaN(_this.xBDg) || isNaN(_this.sjKZ)) {
816
+ _this.NBtp = Number(timeBounds.lower);
817
+ _this.ZJHd = Number(timeBounds.upper);
818
+ if (isNaN(_this.NBtp) || isNaN(_this.ZJHd)) {
819
819
  return false;
820
820
  }
821
821
  } catch (error) {
@@ -828,17 +828,17 @@
828
828
  var PreCondition = /*#__PURE__*/_createClass(function PreCondition() {
829
829
  var _this = this;
830
830
  _classCallCheck(this, PreCondition);
831
- _defineProperty(this, "BXjF", 0);
832
- _defineProperty(this, "rNjl", "");
833
- _defineProperty(this, "PWJL", "");
834
- _defineProperty(this, "VfDz", new Details());
835
- _defineProperty(this, "jJSu", new Timebounds());
831
+ _defineProperty(this, "IwMM", 0);
832
+ _defineProperty(this, "ssBF", "");
833
+ _defineProperty(this, "nGQM", "");
834
+ _defineProperty(this, "tuth", new Details());
835
+ _defineProperty(this, "XFvh", new Timebounds());
836
836
  _defineProperty(this, "parse", function () {
837
837
  var precondition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
838
838
  try {
839
- _this.rNjl = precondition.event_type;
840
- _this.PWJL = precondition.activity;
841
- return _this.VfDz.parse(precondition.details) && _this.jJSu.parse(precondition.time_bounds);
839
+ _this.ssBF = precondition.event_type;
840
+ _this.nGQM = precondition.activity;
841
+ return _this.tuth.parse(precondition.details) && _this.XFvh.parse(precondition.time_bounds);
842
842
  } catch (error) {
843
843
  return false;
844
844
  }
@@ -849,29 +849,29 @@
849
849
  var Condition = /*#__PURE__*/_createClass(function Condition() {
850
850
  var _this = this;
851
851
  _classCallCheck(this, Condition);
852
- _defineProperty(this, "BXjF", 0);
853
- _defineProperty(this, "eXhV", -1);
854
- _defineProperty(this, "ansI", 0);
855
- _defineProperty(this, "cLqc", "");
856
- _defineProperty(this, "PWJL", "");
857
- _defineProperty(this, "rNjl", "");
858
- _defineProperty(this, "jJSu", new Timebounds());
859
- _defineProperty(this, "VfDz", new Details());
860
- _defineProperty(this, "wYau", new PreCondition());
861
- _defineProperty(this, "NcmX", "AND");
862
- _defineProperty(this, "GWHp", false);
863
- _defineProperty(this, "MLcB", void 0);
852
+ _defineProperty(this, "IwMM", 0);
853
+ _defineProperty(this, "POaq", -1);
854
+ _defineProperty(this, "MWXm", 0);
855
+ _defineProperty(this, "yTeO", "");
856
+ _defineProperty(this, "nGQM", "");
857
+ _defineProperty(this, "ssBF", "");
858
+ _defineProperty(this, "XFvh", new Timebounds());
859
+ _defineProperty(this, "tuth", new Details());
860
+ _defineProperty(this, "NtQG", new PreCondition());
861
+ _defineProperty(this, "TlGR", "AND");
862
+ _defineProperty(this, "nxcI", false);
863
+ _defineProperty(this, "VaVo", void 0);
864
864
  _defineProperty(this, "parse", function () {
865
865
  var condition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
866
866
  try {
867
- _this.eXhV = condition.sequence;
868
- _this.ansI = condition.count_config.count;
869
- _this.cLqc = condition.count_config.operator;
870
- _this.PWJL = condition.activity;
871
- _this.rNjl = condition.event_type;
872
- _this.NcmX = condition.combine_operator;
873
- _this.MLcB = condition.type;
874
- return _this.VfDz.parse(condition.details) && _this.wYau.parse(condition.trigger) && _this.jJSu.parse(condition.time_bounds);
867
+ _this.POaq = condition.sequence;
868
+ _this.MWXm = condition.count_config.count;
869
+ _this.yTeO = condition.count_config.operator;
870
+ _this.nGQM = condition.activity;
871
+ _this.ssBF = condition.event_type;
872
+ _this.TlGR = condition.combine_operator;
873
+ _this.VaVo = condition.type;
874
+ return _this.tuth.parse(condition.details) && _this.NtQG.parse(condition.trigger) && _this.XFvh.parse(condition.time_bounds);
875
875
  } catch (error) {
876
876
  Logger$4.error(error);
877
877
  return false;
@@ -883,19 +883,19 @@
883
883
  var GoalEvent = /*#__PURE__*/_createClass(function GoalEvent() {
884
884
  var _this = this;
885
885
  _classCallCheck(this, GoalEvent);
886
- _defineProperty(this, "ansI", 0);
887
- _defineProperty(this, "cLqc", "");
888
- _defineProperty(this, "rNjl", "");
889
- _defineProperty(this, "jJSu", new Timebounds());
890
- _defineProperty(this, "VfDz", new Details());
891
- _defineProperty(this, "NcmX", "AND");
886
+ _defineProperty(this, "MWXm", 0);
887
+ _defineProperty(this, "yTeO", "");
888
+ _defineProperty(this, "ssBF", "");
889
+ _defineProperty(this, "XFvh", new Timebounds());
890
+ _defineProperty(this, "tuth", new Details());
891
+ _defineProperty(this, "TlGR", "AND");
892
892
  _defineProperty(this, "parse", function (data) {
893
893
  try {
894
- _this.ansI = data.count_config.count;
895
- _this.cLqc = data.count_config.operator;
896
- _this.rNjl = data.event_type;
897
- _this.NcmX = data.combine_operator;
898
- return _this.VfDz.parse(data.details) && _this.jJSu.parse(data.time_bounds);
894
+ _this.MWXm = data.count_config.count;
895
+ _this.yTeO = data.count_config.operator;
896
+ _this.ssBF = data.event_type;
897
+ _this.TlGR = data.combine_operator;
898
+ return _this.tuth.parse(data.details) && _this.XFvh.parse(data.time_bounds);
899
899
  } catch (error) {
900
900
  Logger$5.error(error);
901
901
  return false;
@@ -909,21 +909,21 @@
909
909
  function ConditionValidator() {
910
910
  var _this = this;
911
911
  _classCallCheck(this, ConditionValidator);
912
- _defineProperty(this, "EdOZ", 0);
913
- _defineProperty(this, "xKIU", "");
914
- _defineProperty(this, "HPBH", new Condition());
915
- _defineProperty(this, "FcCI", new GoalEvent());
916
- _defineProperty(this, "BkRH", false);
917
- _defineProperty(this, "lAQm", false);
918
- _defineProperty(this, "vJCV", 0);
919
- _defineProperty(this, "NcmX", "AND");
920
- _defineProperty(this, "cTHv", "OR");
921
- _defineProperty(this, "SIsf", -1);
922
- _defineProperty(this, "WNGW", []);
923
- _defineProperty(this, "MHiS", {});
924
- _defineProperty(this, "CwKf", false);
912
+ _defineProperty(this, "bUKF", 0);
913
+ _defineProperty(this, "UOvb", "");
914
+ _defineProperty(this, "GppC", new Condition());
915
+ _defineProperty(this, "FNCF", new GoalEvent());
916
+ _defineProperty(this, "hprw", false);
917
+ _defineProperty(this, "jddI", false);
918
+ _defineProperty(this, "Nvar", 0);
919
+ _defineProperty(this, "TlGR", "AND");
920
+ _defineProperty(this, "HAaq", "OR");
921
+ _defineProperty(this, "Iiwo", -1);
922
+ _defineProperty(this, "bmGo", []);
923
+ _defineProperty(this, "NUWz", {});
924
+ _defineProperty(this, "QHZw", false);
925
925
  /**
926
- * If respectSequence is true, don't auto-GRBk to events except for the condition whose index is 0
926
+ * If respectSequence is true, don't auto-wxSy to events except for the condition whose index is 0
927
927
  *
928
928
  * @param condition
929
929
  * @param type
@@ -939,191 +939,191 @@
939
939
  var respectSequence = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
940
940
  var noKpiArray = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
941
941
  var flag = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : "";
942
- _this.xKIU = id;
943
- _this.vJCV = index;
944
- _this.WNGW = noKpiArray;
942
+ _this.UOvb = id;
943
+ _this.Nvar = index;
944
+ _this.bmGo = noKpiArray;
945
945
  if (flag !== "termination" || flag === "") {
946
- var result = _this.HPBH.parse(condition);
946
+ var result = _this.GppC.parse(condition);
947
947
  if (result) {
948
- _this.NcmX = _this.HPBH.NcmX;
948
+ _this.TlGR = _this.GppC.TlGR;
949
949
 
950
950
  // FIXME: Why this code is written? Don't see any usecase
951
- if (_this.HPBH.GWHp) {
952
- var eventName = _this.HPBH.VfDz.hqtt;
951
+ if (_this.GppC.nxcI) {
952
+ var eventName = _this.GppC.tuth.EzOS;
953
953
  if (eventName === "APX_PAGE_OPENED") {
954
- eventName = _this.HPBH.VfDz.XKvc["navigation_id"];
955
- eventName = isDefined(eventName) ? eventName : _this.HPBH.VfDz.hqtt;
954
+ eventName = _this.GppC.tuth.pyOM["navigation_id"];
955
+ eventName = isDefined(eventName) ? eventName : _this.GppC.tuth.EzOS;
956
956
  }
957
- _this.SIsf = Apxor.getController().getEventCount(eventName);
958
- var count = _this.HPBH.ansI;
959
- var operator = _this.HPBH.cLqc;
960
- _this.lAQm = _this.cCpn(_this.SIsf - 1, count, operator, false);
961
- _this.BkRH = _this.lAQm;
962
- // If the condition is already satisfied and if it is page view, no need to GRBk
957
+ _this.Iiwo = Apxor.getController().getEventCount(eventName);
958
+ var count = _this.GppC.MWXm;
959
+ var operator = _this.GppC.yTeO;
960
+ _this.jddI = _this.yHyw(_this.Iiwo - 1, count, operator, false);
961
+ _this.hprw = _this.jddI;
962
+ // If the condition is already satisfied and if it is page view, no need to wxSy
963
963
  // This only applies for NAVIGATION_EVENTS
964
- if (_this.lAQm && _this.HPBH.VfDz.hqtt === "APX_PAGE_OPENED") {
964
+ if (_this.jddI && _this.GppC.tuth.EzOS === "APX_PAGE_OPENED") {
965
965
  return true;
966
966
  }
967
967
  }
968
968
  if (!respectSequence || index === 0) {
969
- _this.GRBk();
969
+ _this.wxSy();
970
970
  }
971
971
  return true;
972
972
  }
973
973
  } else {
974
- var _result = _this.FcCI.parse(condition);
975
- _this.cTHv = _this.FcCI.NcmX;
976
- _this.jVsY();
974
+ var _result = _this.FNCF.parse(condition);
975
+ _this.HAaq = _this.FNCF.TlGR;
976
+ _this.zXFR();
977
977
  return true;
978
978
  }
979
979
  return false;
980
980
  });
981
- _defineProperty(this, "GRBk", function () {
981
+ _defineProperty(this, "wxSy", function () {
982
982
  var _window$ApxorRTM;
983
- var condition = _this.HPBH;
984
- var precondition = condition.wYau;
983
+ var condition = _this.GppC;
984
+ var precondition = condition.NtQG;
985
985
  var ceInstance = CE.getInstance();
986
- if (precondition.rNjl === "app_start") {
987
- _this.BkRH = true;
988
- ceInstance.registerForEvent(generateKey(condition.rNjl) + "___" + condition.VfDz.hqtt, _this.rXqr);
986
+ if (precondition.ssBF === "app_start") {
987
+ _this.hprw = true;
988
+ ceInstance.registerForEvent(generateKey(condition.ssBF) + "___" + condition.tuth.EzOS, _this.bJZM);
989
989
  } else {
990
- ceInstance.registerForEvent(generateKey(condition.rNjl) + "___" + precondition.VfDz.hqtt, _this.rXqr);
990
+ ceInstance.registerForEvent(generateKey(condition.ssBF) + "___" + precondition.tuth.EzOS, _this.bJZM);
991
991
  }
992
- if ((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.badgesLists.includes(_this.xKIU)) {
993
- ceInstance.registerForEvent(generateKey(condition.rNjl) + "___" + "apxor-badge-container-".concat("-".concat(_this.xKIU).replaceAll(" ", "").replace(/[^\w\s]/gi, "")), _this.rXqr);
992
+ if ((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.badgesLists.includes(_this.UOvb)) {
993
+ ceInstance.registerForEvent(generateKey(condition.ssBF) + "___" + "apxor-badge-container-".concat("-".concat(_this.UOvb).replaceAll(" ", "").replace(/[^\w\s]/gi, "")), _this.bJZM);
994
994
  }
995
995
  });
996
- _defineProperty(this, "jVsY", function () {
997
- var condition = _this.FcCI;
996
+ _defineProperty(this, "zXFR", function () {
997
+ var condition = _this.FNCF;
998
998
  var ceInstance = CE.getInstance();
999
- _this.BkRH = true;
1000
- ceInstance.registerForEvent(generateKey(condition.rNjl) + "___" + condition.VfDz.hqtt, _this.nCho);
999
+ _this.hprw = true;
1000
+ ceInstance.registerForEvent(generateKey(condition.ssBF) + "___" + condition.tuth.EzOS, _this.cseb);
1001
1001
  });
1002
- _defineProperty(this, "sDtI", function (type, name, time, additionalInfo) {
1003
- var _this$HPBH;
1002
+ _defineProperty(this, "BsOm", function (type, name, time, additionalInfo) {
1003
+ var _this$GppC;
1004
1004
  var eventTime = Date.now();
1005
- var time_differnce = (eventTime - _this.MHiS[name]) / 1000;
1006
- var time_fromConfig = ((_this$HPBH = _this.HPBH) === null || _this$HPBH === void 0 || (_this$HPBH = _this$HPBH.VfDz) === null || _this$HPBH === void 0 || (_this$HPBH = _this$HPBH.XKvc) === null || _this$HPBH === void 0 ? void 0 : _this$HPBH.time) / 1000;
1005
+ var time_differnce = (eventTime - _this.NUWz[name]) / 1000;
1006
+ var time_fromConfig = ((_this$GppC = _this.GppC) === null || _this$GppC === void 0 || (_this$GppC = _this$GppC.tuth) === null || _this$GppC === void 0 || (_this$GppC = _this$GppC.pyOM) === null || _this$GppC === void 0 ? void 0 : _this$GppC.time) / 1000;
1007
1007
  if (time_fromConfig > time_differnce) {
1008
1008
  _this._displayCampaign(time);
1009
1009
  }
1010
1010
  });
1011
- _defineProperty(this, "hyIv", function (type, name, time, additionalInfo) {
1011
+ _defineProperty(this, "PfgK", function (type, name, time, additionalInfo) {
1012
1012
  var _this$_condition2, _this$_condition3;
1013
- _this.CwKf = true;
1013
+ _this.QHZw = true;
1014
1014
  var currentTime = Date.now();
1015
- var eventName = (_this$_condition2 = _this.HPBH) === null || _this$_condition2 === void 0 || (_this$_condition2 = _this$_condition2.wYau) === null || _this$_condition2 === void 0 ? void 0 : _this$_condition2.VfDz.hqtt;
1016
- var eventTime = _this.MHiS[eventName];
1015
+ var eventName = (_this$_condition2 = _this.GppC) === null || _this$_condition2 === void 0 || (_this$_condition2 = _this$_condition2.NtQG) === null || _this$_condition2 === void 0 ? void 0 : _this$_condition2.tuth.EzOS;
1016
+ var eventTime = _this.NUWz[eventName];
1017
1017
  var time_differnce = (currentTime - eventTime) / 1000;
1018
- var time_fromConfig = (_this$_condition3 = _this.HPBH) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.VfDz) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.XKvc) === null || _this$_condition3 === void 0 ? void 0 : _this$_condition3.time;
1018
+ var time_fromConfig = (_this$_condition3 = _this.GppC) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.tuth) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.pyOM) === null || _this$_condition3 === void 0 ? void 0 : _this$_condition3.time;
1019
1019
  time_fromConfig = time_fromConfig / 1000;
1020
1020
  if (time_fromConfig > time_differnce) {
1021
1021
  _this._displayCampaign(time);
1022
1022
  }
1023
1023
  //unregister the event
1024
1024
  });
1025
- _defineProperty(this, "rXqr", function (type, name, time, additionalInfo) {
1025
+ _defineProperty(this, "bJZM", function (type, name, time, additionalInfo) {
1026
1026
  var _window$ApxorRTM2, _window$ApxorRTM3;
1027
1027
  var ceInstance = CE.getInstance();
1028
- if (!_this.BkRH) {
1028
+ if (!_this.hprw) {
1029
1029
  // Validate Precondition
1030
- _this.BkRH = _this.pNGQ(type, name, time, additionalInfo);
1031
- if (_this.BkRH) {
1032
- var condition = _this.HPBH;
1033
- var precondition = condition.wYau;
1034
- precondition.BXjF = time;
1030
+ _this.hprw = _this.CNSZ(type, name, time, additionalInfo);
1031
+ if (_this.hprw) {
1032
+ var condition = _this.GppC;
1033
+ var precondition = condition.NtQG;
1034
+ precondition.IwMM = time;
1035
1035
  //events will be registred by its type activity event_type: "activity_time"
1036
- if ((condition === null || condition === void 0 ? void 0 : condition.rNjl) === "activity_time") {
1037
- var HPBH$VfDz, HPBH$_details2, HPBH$_details3;
1038
- var event_time = condition === null || condition === void 0 || (HPBH$VfDz = condition.VfDz) === null || HPBH$VfDz === void 0 || (HPBH$VfDz = HPBH$VfDz.XKvc) === null || HPBH$VfDz === void 0 ? void 0 : HPBH$VfDz.time;
1039
- if ((condition === null || condition === void 0 || (HPBH$_details2 = condition.VfDz) === null || HPBH$_details2 === void 0 || (HPBH$_details2 = HPBH$_details2.XKvc) === null || HPBH$_details2 === void 0 ? void 0 : HPBH$_details2.nkpi.length) > 0) {
1036
+ if ((condition === null || condition === void 0 ? void 0 : condition.ssBF) === "activity_time") {
1037
+ var GppC$tuth, GppC$_details2, GppC$_details3;
1038
+ var event_time = condition === null || condition === void 0 || (GppC$tuth = condition.tuth) === null || GppC$tuth === void 0 || (GppC$tuth = GppC$tuth.pyOM) === null || GppC$tuth === void 0 ? void 0 : GppC$tuth.time;
1039
+ if ((condition === null || condition === void 0 || (GppC$_details2 = condition.tuth) === null || GppC$_details2 === void 0 || (GppC$_details2 = GppC$_details2.pyOM) === null || GppC$_details2 === void 0 ? void 0 : GppC$_details2.nkpi.length) > 0) {
1040
1040
  setTimeout(function () {
1041
- if (!_this.CwKf) {
1042
- _this.lAQm = true;
1043
- if (_this.lAQm) {
1044
- _this.EdOZ += 1;
1045
- _this.lAQm = _this.cCpn(_this.EdOZ, _this.HPBH.ansI, _this.HPBH.cLqc);
1046
- if (_this.lAQm) {
1047
- _this.HPBH.BXjF = time;
1048
- ceInstance.validate(_this.xKIU, _this.vJCV);
1041
+ if (!_this.QHZw) {
1042
+ _this.jddI = true;
1043
+ if (_this.jddI) {
1044
+ _this.bUKF += 1;
1045
+ _this.jddI = _this.yHyw(_this.bUKF, _this.GppC.MWXm, _this.GppC.yTeO);
1046
+ if (_this.jddI) {
1047
+ _this.GppC.IwMM = time;
1048
+ ceInstance.validate(_this.UOvb, _this.Nvar);
1049
1049
  }
1050
1050
  }
1051
1051
  }
1052
- condition.VfDz.XKvc.nkpi.map(function (nokpi) {
1053
- ceInstance.unregisterFromEvent(toUpperCase(condition.VfDz.XKvc.et) + "___" + nokpi, _this);
1052
+ condition.tuth.pyOM.nkpi.map(function (nokpi) {
1053
+ ceInstance.unregisterFromEvent(toUpperCase(condition.tuth.pyOM.et) + "___" + nokpi, _this);
1054
1054
  });
1055
1055
  }, event_time);
1056
- condition.VfDz.XKvc.nkpi.map(function (nokpi) {
1057
- ceInstance.registerForEvent(toUpperCase(condition.VfDz.XKvc.et) + "___" + nokpi, _this.hyIv);
1056
+ condition.tuth.pyOM.nkpi.map(function (nokpi) {
1057
+ ceInstance.registerForEvent(toUpperCase(condition.tuth.pyOM.et) + "___" + nokpi, _this.PfgK);
1058
1058
  });
1059
1059
  }
1060
1060
  //it is for unregistering the events did case after completing the time imit
1061
- if ((condition === null || condition === void 0 || (HPBH$_details3 = condition.VfDz) === null || HPBH$_details3 === void 0 || (HPBH$_details3 = HPBH$_details3.XKvc) === null || HPBH$_details3 === void 0 ? void 0 : HPBH$_details3.kpi.length) > 0) {
1061
+ if ((condition === null || condition === void 0 || (GppC$_details3 = condition.tuth) === null || GppC$_details3 === void 0 || (GppC$_details3 = GppC$_details3.pyOM) === null || GppC$_details3 === void 0 ? void 0 : GppC$_details3.kpi.length) > 0) {
1062
1062
  setTimeout(function () {
1063
- condition.VfDz.XKvc.kpi.map(function (kpi) {
1064
- ceInstance.unregisterFromEvent(toUpperCase(condition.VfDz.XKvc.et) + "___" + kpi, _this);
1063
+ condition.tuth.pyOM.kpi.map(function (kpi) {
1064
+ ceInstance.unregisterFromEvent(toUpperCase(condition.tuth.pyOM.et) + "___" + kpi, _this);
1065
1065
  });
1066
1066
  }, event_time);
1067
- condition.VfDz.XKvc.kpi.map(function (kpi) {
1068
- if (kpi === condition.wYau.VfDz.hqtt) {
1067
+ condition.tuth.pyOM.kpi.map(function (kpi) {
1068
+ if (kpi === condition.NtQG.tuth.EzOS) {
1069
1069
  //unregister the previous event
1070
- ceInstance.unregisterFromEvent(generateKey(precondition.rNjl) + "___" + precondition.VfDz.hqtt, _this);
1071
- ceInstance.registerForEvent(toUpperCase(condition.VfDz.XKvc.et) + "___" + kpi, _this.sDtI);
1070
+ ceInstance.unregisterFromEvent(generateKey(precondition.ssBF) + "___" + precondition.tuth.EzOS, _this);
1071
+ ceInstance.registerForEvent(toUpperCase(condition.tuth.pyOM.et) + "___" + kpi, _this.BsOm);
1072
1072
  } else {
1073
- ceInstance.registerForEvent(toUpperCase(condition.VfDz.XKvc.et) + "___" + kpi, _this.hyIv);
1073
+ ceInstance.registerForEvent(toUpperCase(condition.tuth.pyOM.et) + "___" + kpi, _this.PfgK);
1074
1074
  }
1075
1075
  });
1076
1076
  }
1077
1077
  } else {
1078
- ceInstance.unregisterFromEvent(generateKey(precondition.rNjl) + "___" + precondition.VfDz.hqtt, _this);
1079
- ceInstance.registerForEvent(generateKey(condition.rNjl) + "___" + condition.VfDz.hqtt, _this);
1078
+ ceInstance.unregisterFromEvent(generateKey(precondition.ssBF) + "___" + precondition.tuth.EzOS, _this);
1079
+ ceInstance.registerForEvent(generateKey(condition.ssBF) + "___" + condition.tuth.EzOS, _this);
1080
1080
  }
1081
- _this.MHiS[name] = Date.now();
1081
+ _this.NUWz[name] = Date.now();
1082
1082
  }
1083
1083
  return;
1084
1084
  }
1085
- if ((_window$ApxorRTM2 = window.ApxorRTM) !== null && _window$ApxorRTM2 !== void 0 && _window$ApxorRTM2.isBadgePresent && (_window$ApxorRTM3 = window.ApxorRTM) !== null && _window$ApxorRTM3 !== void 0 && _window$ApxorRTM3.badgesLists.includes(_this.xKIU) && Apxor.getController().isBadgeTriggerSatisfied(_this.xKIU)) {
1086
- _this.lAQm = true;
1087
- _this.HPBH.BXjF = time;
1088
- ceInstance.validate(_this.xKIU, _this.vJCV);
1085
+ if ((_window$ApxorRTM2 = window.ApxorRTM) !== null && _window$ApxorRTM2 !== void 0 && _window$ApxorRTM2.isBadgePresent && (_window$ApxorRTM3 = window.ApxorRTM) !== null && _window$ApxorRTM3 !== void 0 && _window$ApxorRTM3.badgesLists.includes(_this.UOvb) && Apxor.getController().isBadgeTriggerSatisfied(_this.UOvb)) {
1086
+ _this.jddI = true;
1087
+ _this.GppC.IwMM = time;
1088
+ ceInstance.validate(_this.UOvb, _this.Nvar);
1089
1089
  return;
1090
1090
  }
1091
1091
 
1092
1092
  // Validate Condition
1093
- var validationStatus = generateKey(_this.HPBH.rNjl) === type && _this.mBlI(time - _this.HPBH.wYau.BXjF, _this.HPBH.jJSu) && _this.HPBH.VfDz.hqtt === name && _this.dpga(_this.HPBH.VfDz.XKvc, additionalInfo);
1093
+ var validationStatus = generateKey(_this.GppC.ssBF) === type && _this.MOcy(time - _this.GppC.NtQG.IwMM, _this.GppC.XFvh) && _this.GppC.tuth.EzOS === name && _this.WjZY(_this.GppC.tuth.pyOM, additionalInfo);
1094
1094
  if (validationStatus) {
1095
- _this.EdOZ += 1;
1096
- _this.lAQm = _this.cCpn(_this.EdOZ, _this.HPBH.ansI, _this.HPBH.cLqc);
1097
- if (_this.lAQm) {
1098
- _this.HPBH.BXjF = time;
1099
- ceInstance.validate(_this.xKIU, _this.vJCV);
1095
+ _this.bUKF += 1;
1096
+ _this.jddI = _this.yHyw(_this.bUKF, _this.GppC.MWXm, _this.GppC.yTeO);
1097
+ if (_this.jddI) {
1098
+ _this.GppC.IwMM = time;
1099
+ ceInstance.validate(_this.UOvb, _this.Nvar);
1100
1100
  }
1101
1101
  }
1102
1102
  });
1103
- _defineProperty(this, "nCho", function (type, name, time, additionalInfo) {
1103
+ _defineProperty(this, "cseb", function (type, name, time, additionalInfo) {
1104
1104
  var ceInstance = CE.getInstance();
1105
- var validationStatus = generateKey(_this.FcCI.rNjl) === type && _this.mBlI(time, _this.FcCI.jJSu) && _this.FcCI.VfDz.hqtt === name && _this.dpga(_this.FcCI.VfDz.XKvc, additionalInfo);
1105
+ var validationStatus = generateKey(_this.FNCF.ssBF) === type && _this.MOcy(time, _this.FNCF.XFvh) && _this.FNCF.tuth.EzOS === name && _this.WjZY(_this.FNCF.tuth.pyOM, additionalInfo);
1106
1106
  if (validationStatus) {
1107
- _this.EdOZ += 1;
1108
- _this.lAQm = _this.cCpn(_this.EdOZ, _this.FcCI.ansI, _this.FcCI.cLqc);
1109
- if (_this.lAQm) {
1110
- _this.FcCI.BXjF = time;
1111
- ceInstance.validateForTermination(_this.xKIU, _this.vJCV);
1107
+ _this.bUKF += 1;
1108
+ _this.jddI = _this.yHyw(_this.bUKF, _this.FNCF.MWXm, _this.FNCF.yTeO);
1109
+ if (_this.jddI) {
1110
+ _this.FNCF.IwMM = time;
1111
+ ceInstance.validateForTermination(_this.UOvb, _this.Nvar);
1112
1112
  }
1113
1113
  }
1114
1114
  });
1115
- _defineProperty(this, "pNGQ", function (type, name, time, additionalInfo) {
1116
- var precondition = _this.HPBH.wYau;
1117
- return generateKey(precondition.rNjl) === type && precondition.VfDz.hqtt === name && _this.mBlI(time, precondition.jJSu) && _this.dpga(precondition.VfDz.XKvc, additionalInfo);
1115
+ _defineProperty(this, "CNSZ", function (type, name, time, additionalInfo) {
1116
+ var precondition = _this.GppC.NtQG;
1117
+ return generateKey(precondition.ssBF) === type && precondition.tuth.EzOS === name && _this.MOcy(time, precondition.XFvh) && _this.WjZY(precondition.tuth.pyOM, additionalInfo);
1118
1118
  });
1119
- _defineProperty(this, "mBlI", function (time, timeBounds) {
1119
+ _defineProperty(this, "MOcy", function (time, timeBounds) {
1120
1120
  var currentTime = Math.ceil(time);
1121
- return currentTime > timeBounds.xBDg && currentTime < timeBounds.sjKZ;
1121
+ return currentTime > timeBounds.NBtp && currentTime < timeBounds.ZJHd;
1122
1122
  });
1123
- _defineProperty(this, "cCpn", function (current, required, operator) {
1123
+ _defineProperty(this, "yHyw", function (current, required, operator) {
1124
1124
  var checkOld = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
1125
- if (checkOld && _this.HPBH.GWHp) {
1126
- current = current + _this.SIsf;
1125
+ if (checkOld && _this.GppC.nxcI) {
1126
+ current = current + _this.Iiwo;
1127
1127
  }
1128
1128
  switch (operator) {
1129
1129
  case "EQ":
@@ -1140,7 +1140,7 @@
1140
1140
  return false;
1141
1141
  }
1142
1142
  });
1143
- _defineProperty(this, "dpga", function (expected, received) {
1143
+ _defineProperty(this, "WjZY", function (expected, received) {
1144
1144
  var status = true;
1145
1145
  try {
1146
1146
  var _loop = function _loop() {
@@ -1185,14 +1185,14 @@
1185
1185
  } else if (type === "b") {
1186
1186
  loggedValue = !!loggedValue;
1187
1187
  }
1188
- return FrGM(loggedValue, expectedValue, operator);
1188
+ return KMXo(loggedValue, expectedValue, operator);
1189
1189
  }
1190
- // FrGM(loggedValue, expectedValue, operator)
1190
+ // KMXo(loggedValue, expectedValue, operator)
1191
1191
  );
1192
1192
 
1193
1193
  status = status && match;
1194
1194
  } else {
1195
- status = status && FrGM(received[item], expected[item], "EQ");
1195
+ status = status && KMXo(received[item], expected[item], "EQ");
1196
1196
  }
1197
1197
  },
1198
1198
  _ret;
@@ -1211,13 +1211,13 @@
1211
1211
  key: "_displayCampaign",
1212
1212
  value: function _displayCampaign(time) {
1213
1213
  var ceInstance = CE.getInstance();
1214
- this.lAQm = true;
1215
- if (this.lAQm) {
1216
- this.EdOZ += 1;
1217
- this.lAQm = this.cCpn(this.EdOZ, this.HPBH.ansI, this.HPBH.cLqc);
1218
- if (this.lAQm) {
1219
- this.HPBH.BXjF = time;
1220
- ceInstance.validate(this.xKIU, this.vJCV);
1214
+ this.jddI = true;
1215
+ if (this.jddI) {
1216
+ this.bUKF += 1;
1217
+ this.jddI = this.yHyw(this.bUKF, this.GppC.MWXm, this.GppC.yTeO);
1218
+ if (this.jddI) {
1219
+ this.GppC.IwMM = time;
1220
+ ceInstance.validate(this.UOvb, this.Nvar);
1221
1221
  }
1222
1222
  }
1223
1223
  }
@@ -1229,11 +1229,11 @@
1229
1229
  var OverallConfig = /*#__PURE__*/_createClass(function OverallConfig() {
1230
1230
  var _this = this;
1231
1231
  _classCallCheck(this, OverallConfig);
1232
- _defineProperty(this, "SxPK", []);
1232
+ _defineProperty(this, "TOUc", []);
1233
1233
  _defineProperty(this, "_ret_day", {});
1234
- _defineProperty(this, "rPFc", {});
1235
- _defineProperty(this, "nhio", false);
1236
- _defineProperty(this, "ANMQ", false);
1234
+ _defineProperty(this, "BeCd", {});
1235
+ _defineProperty(this, "YsMA", false);
1236
+ _defineProperty(this, "bYxI", false);
1237
1237
  _defineProperty(this, "retainedDaysValidated", true);
1238
1238
  _defineProperty(this, "retainedSessionValidated", true);
1239
1239
  _defineProperty(this, "eventDoneInLT", false);
@@ -1241,11 +1241,11 @@
1241
1241
  _defineProperty(this, "parse", function () {
1242
1242
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1243
1243
  try {
1244
- _this.SxPK = config.overall_cfg.events;
1244
+ _this.TOUc = config.overall_cfg.events;
1245
1245
  _this._ret_day = config.overall_cfg.ret_day;
1246
- _this.rPFc = config.overall_cfg.session;
1247
- _this.nhio = config.overall_cfg.toggleRetDay;
1248
- _this.ANMQ = config.overall_cfg.toggleSession;
1246
+ _this.BeCd = config.overall_cfg.session;
1247
+ _this.YsMA = config.overall_cfg.toggleRetDay;
1248
+ _this.bYxI = config.overall_cfg.toggleSession;
1249
1249
  } catch (error) {
1250
1250
  Logger$7.error(error);
1251
1251
  return false;
@@ -1255,11 +1255,11 @@
1255
1255
  _defineProperty(this, "validate", function () {
1256
1256
  var retainedDays = parseInt(Apxor.getController().getFromStorage(APX_RETAINED_DAYS));
1257
1257
  var retainedSession = parseInt(Apxor.getController().getFromStorage(APX_RETAINED_SESSIONS));
1258
- if (_this.nhio && !isNaN(retainedDays) && !(retainedDays >= _this._ret_day.from && retainedDays <= _this._ret_day.to)) {
1258
+ if (_this.YsMA && !isNaN(retainedDays) && !(retainedDays >= _this._ret_day.from && retainedDays <= _this._ret_day.to)) {
1259
1259
  _this.retainedDaysValidated = false;
1260
1260
  return false;
1261
1261
  }
1262
- if (_this.ANMQ && !isNaN(retainedSession) && !(retainedSession >= _this.rPFc.from && retainedSession <= _this.rPFc.to)) {
1262
+ if (_this.bYxI && !isNaN(retainedSession) && !(retainedSession >= _this.BeCd.from && retainedSession <= _this.BeCd.to)) {
1263
1263
  _this.retainedSessionValidated = false;
1264
1264
  return false;
1265
1265
  }
@@ -1268,8 +1268,8 @@
1268
1268
  var data = Apxor.getController().getFromStorage("_apx_lt_count");
1269
1269
  var siteid = Apxor.getSiteId();
1270
1270
  var LtCountObjDecoded = JSON.parse(new TextDecoder().decode(stringToArrayBuffer(decode(siteid, data))));
1271
- for (var i = 0; i < _this.SxPK.length; i++) {
1272
- var evName = _this.SxPK[i].name.replace("'", "").replace("’", "");
1271
+ for (var i = 0; i < _this.TOUc.length; i++) {
1272
+ var evName = _this.TOUc[i].name.replace("'", "").replace("’", "");
1273
1273
  if (LtCountObjDecoded[evName]) {
1274
1274
  _this.eventDoneInLT = true;
1275
1275
  return false;
@@ -1286,14 +1286,14 @@
1286
1286
  var Attributes = /*#__PURE__*/_createClass(function Attributes() {
1287
1287
  var _this = this;
1288
1288
  _classCallCheck(this, Attributes);
1289
- _defineProperty(this, "dsWR", []);
1290
- _defineProperty(this, "LTNO", []);
1289
+ _defineProperty(this, "sDWS", []);
1290
+ _defineProperty(this, "yMFf", []);
1291
1291
  _defineProperty(this, "parse", function () {
1292
1292
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1293
1293
  try {
1294
- _this.dsWR = config.attributes.user;
1295
- _this.LTNO = config.attributes.session;
1296
- if (!Array.isArray(_this.dsWR) || !Array.isArray(_this.LTNO)) {
1294
+ _this.sDWS = config.attributes.user;
1295
+ _this.yMFf = config.attributes.session;
1296
+ if (!Array.isArray(_this.sDWS) || !Array.isArray(_this.yMFf)) {
1297
1297
  Logger$8.error("No attributes");
1298
1298
  return false;
1299
1299
  }
@@ -1304,9 +1304,9 @@
1304
1304
  return true;
1305
1305
  });
1306
1306
  _defineProperty(this, "validate", function (user, session) {
1307
- return _this.oQgb(user, _this.dsWR) && _this.oQgb(session, _this.LTNO);
1307
+ return _this.Mbis(user, _this.sDWS) && _this.Mbis(session, _this.yMFf);
1308
1308
  });
1309
- _defineProperty(this, "oQgb", function (attributes, expected) {
1309
+ _defineProperty(this, "Mbis", function (attributes, expected) {
1310
1310
  var length = expected.length;
1311
1311
  var status = true;
1312
1312
  try {
@@ -1336,7 +1336,7 @@
1336
1336
  }
1337
1337
  var match = loggedValues.some(function (loggedValue) {
1338
1338
  return values.some(function (configValue) {
1339
- return FrGM(loggedValue, configValue, operator);
1339
+ return KMXo(loggedValue, configValue, operator);
1340
1340
  });
1341
1341
  });
1342
1342
  status = status && match;
@@ -1360,18 +1360,18 @@
1360
1360
  var TimeBasedTermination = /*#__PURE__*/_createClass(function TimeBasedTermination() {
1361
1361
  var _this = this;
1362
1362
  _classCallCheck(this, TimeBasedTermination);
1363
- _defineProperty(this, "qHaI", Apxor.getController());
1363
+ _defineProperty(this, "qniJ", Apxor.getController());
1364
1364
  _defineProperty(this, "type", "");
1365
1365
  _defineProperty(this, "_duration_seconds", 0);
1366
- _defineProperty(this, "wNpm", 1);
1366
+ _defineProperty(this, "eeGv", 1);
1367
1367
  _defineProperty(this, "parse", function (config) {
1368
1368
  try {
1369
1369
  var _config$terminate_inf, _config$terminate_inf2, _config$terminate_inf3;
1370
- _this.MLcB = (_config$terminate_inf = config.terminate_info.time_based) === null || _config$terminate_inf === void 0 ? void 0 : _config$terminate_inf.type;
1370
+ _this.VaVo = (_config$terminate_inf = config.terminate_info.time_based) === null || _config$terminate_inf === void 0 ? void 0 : _config$terminate_inf.type;
1371
1371
  _this._duration_seconds = (_config$terminate_inf2 = config.terminate_info) === null || _config$terminate_inf2 === void 0 ? void 0 : _config$terminate_inf2.time_based.duration_seconds;
1372
- _this.wNpm = (_config$terminate_inf3 = config.terminate_info.time_based) === null || _config$terminate_inf3 === void 0 ? void 0 : _config$terminate_inf3.days;
1373
- if (_this.FrGM(config._id)) {
1374
- _this.qHaI.persistTerminationInfoLocally(config._id);
1372
+ _this.eeGv = (_config$terminate_inf3 = config.terminate_info.time_based) === null || _config$terminate_inf3 === void 0 ? void 0 : _config$terminate_inf3.days;
1373
+ if (_this.KMXo(config._id)) {
1374
+ _this.qniJ.persistTerminationInfoLocally(config._id);
1375
1375
  return false;
1376
1376
  }
1377
1377
  } catch (_unused) {
@@ -1379,16 +1379,16 @@
1379
1379
  }
1380
1380
  return true;
1381
1381
  });
1382
- _defineProperty(this, "FrGM", function (id) {
1382
+ _defineProperty(this, "KMXo", function (id) {
1383
1383
  var _Data$id;
1384
- var Data = JSON.parse(_this.qHaI.getFromStorage(APX_TERMINATION_ID));
1384
+ var Data = JSON.parse(_this.qniJ.getFromStorage(APX_TERMINATION_ID));
1385
1385
  if (!Data[id] || !((_Data$id = Data[id]) !== null && _Data$id !== void 0 && _Data$id.startDate)) return false;
1386
1386
  var startDate = new Date(Data[id].startDate);
1387
1387
  var presentDate = new Date(getDateInMMDDYYYY());
1388
1388
  var diff = parseInt((presentDate - startDate) / (1000 * 60 * 60 * 24), 10);
1389
1389
  var currentTime = _getTime();
1390
- var LHUD = Data[id].LHUD;
1391
- return diff === _this.wNpm && currentTime.hours >= LHUD.hours || diff > _this.wNpm || Data[id].goalAcheived;
1390
+ var gKFX = Data[id].gKFX;
1391
+ return diff === _this.eeGv && currentTime.hours >= gKFX.hours || diff > _this.eeGv || Data[id].goalAcheived;
1392
1392
  });
1393
1393
  });
1394
1394
 
@@ -1397,19 +1397,19 @@
1397
1397
  _classCallCheck(this, TerminationInfo);
1398
1398
  _defineProperty(this, "enable_goal_events", false);
1399
1399
  _defineProperty(this, "attributes", {});
1400
- _defineProperty(this, "mnOu", new Attributes());
1401
- _defineProperty(this, "hHRZ", new TimeBasedTermination());
1400
+ _defineProperty(this, "wTeX", new Attributes());
1401
+ _defineProperty(this, "KAkY", new TimeBasedTermination());
1402
1402
  _defineProperty(this, "parse", function () {
1403
1403
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1404
1404
  try {
1405
1405
  var _config$terminate_inf, _config$terminate_inf2, _config$terminate_inf3;
1406
1406
  _this.enable_time_based = config === null || config === void 0 || (_config$terminate_inf = config.terminate_info) === null || _config$terminate_inf === void 0 ? void 0 : _config$terminate_inf.enable_time_based;
1407
- if (_this.enable_time_based && !_this.hHRZ.parse(config)) {
1407
+ if (_this.enable_time_based && !_this.KAkY.parse(config)) {
1408
1408
  return false;
1409
1409
  }
1410
1410
  _this.enable_goal_events = config === null || config === void 0 || (_config$terminate_inf2 = config.terminate_info) === null || _config$terminate_inf2 === void 0 ? void 0 : _config$terminate_inf2.enable_goal_events;
1411
1411
  _this.enable_attributes = config === null || config === void 0 || (_config$terminate_inf3 = config.terminate_info) === null || _config$terminate_inf3 === void 0 ? void 0 : _config$terminate_inf3.enable_attributes;
1412
- if (_this.enable_attributes && !_this.mnOu.parse(config.terminate_info)) {
1412
+ if (_this.enable_attributes && !_this.wTeX.parse(config.terminate_info)) {
1413
1413
  return false;
1414
1414
  }
1415
1415
  } catch (error) {
@@ -1419,27 +1419,27 @@
1419
1419
  return true;
1420
1420
  });
1421
1421
  _defineProperty(this, "validate", function (user, session) {
1422
- return _this.mnOu.validate(user, session);
1422
+ return _this.wTeX.validate(user, session);
1423
1423
  });
1424
1424
  });
1425
1425
 
1426
1426
  var Binding = /*#__PURE__*/_createClass(function Binding() {
1427
1427
  var _this = this;
1428
1428
  _classCallCheck(this, Binding);
1429
- _defineProperty(this, "zciv", "");
1430
- _defineProperty(this, "DDKo", "");
1431
- _defineProperty(this, "TZPK", "");
1432
- _defineProperty(this, "UqJE", "");
1429
+ _defineProperty(this, "yrGg", "");
1430
+ _defineProperty(this, "ZOHg", "");
1431
+ _defineProperty(this, "Mdxv", "");
1432
+ _defineProperty(this, "Wmoc", "");
1433
1433
  _defineProperty(this, "parse", function () {
1434
1434
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1435
1435
  try {
1436
- _this.zciv = config === null || config === void 0 ? void 0 : config.screen_binding;
1437
- if (!_this.zciv) {
1436
+ _this.yrGg = config === null || config === void 0 ? void 0 : config.screen_binding;
1437
+ if (!_this.yrGg) {
1438
1438
  return true;
1439
1439
  } else {
1440
- _this.DDKo = config === null || config === void 0 ? void 0 : config.binding.url;
1441
- _this.TZPK = config === null || config === void 0 ? void 0 : config.binding["var"];
1442
- _this.UqJE = config === null || config === void 0 ? void 0 : config.binding.operator;
1440
+ _this.ZOHg = config === null || config === void 0 ? void 0 : config.binding.url;
1441
+ _this.Mdxv = config === null || config === void 0 ? void 0 : config.binding["var"];
1442
+ _this.Wmoc = config === null || config === void 0 ? void 0 : config.binding.operator;
1443
1443
  return true;
1444
1444
  }
1445
1445
  } catch (error) {
@@ -1454,11 +1454,11 @@
1454
1454
  * operator :operator can be either "EQ" used for equality comparision or "SW" used for startswith comparision
1455
1455
  */
1456
1456
  _defineProperty(this, "validate", function () {
1457
- var url = _this.DDKo;
1458
- var variable = _this.TZPK;
1459
- var operator = _this.UqJE;
1457
+ var url = _this.ZOHg;
1458
+ var variable = _this.Mdxv;
1459
+ var operator = _this.Wmoc;
1460
1460
  var currentUrl = window.location.href;
1461
- if (!_this.zciv) {
1461
+ if (!_this.yrGg) {
1462
1462
  return true;
1463
1463
  } else {
1464
1464
  if (operator === "EQ") {
@@ -1500,23 +1500,23 @@
1500
1500
  var ConfigItem = /*#__PURE__*/_createClass(function ConfigItem() {
1501
1501
  var _this = this;
1502
1502
  _classCallCheck(this, ConfigItem);
1503
- _defineProperty(this, "pZCC", []);
1504
- _defineProperty(this, "eCJJ", []);
1505
- _defineProperty(this, "xKIU", "");
1506
- _defineProperty(this, "UzYn", new Meta());
1507
- _defineProperty(this, "trWM", new Audience());
1508
- _defineProperty(this, "FXvj", new Validity());
1509
- _defineProperty(this, "rQSF", new Frequency());
1510
- _defineProperty(this, "ZIao", new OverallConfig());
1511
- _defineProperty(this, "TgFO", new TerminationInfo());
1512
- _defineProperty(this, "kpCc", new Binding());
1513
- _defineProperty(this, "wOSL", false);
1514
- _defineProperty(this, "IsFF", []);
1503
+ _defineProperty(this, "lEUi", []);
1504
+ _defineProperty(this, "gdpH", []);
1505
+ _defineProperty(this, "UOvb", "");
1506
+ _defineProperty(this, "ZRcw", new Meta());
1507
+ _defineProperty(this, "jppE", new Audience());
1508
+ _defineProperty(this, "sChz", new Validity());
1509
+ _defineProperty(this, "kJYL", new Frequency());
1510
+ _defineProperty(this, "uipS", new OverallConfig());
1511
+ _defineProperty(this, "UIio", new TerminationInfo());
1512
+ _defineProperty(this, "TDxl", new Binding());
1513
+ _defineProperty(this, "PYFX", false);
1514
+ _defineProperty(this, "xJtu", []);
1515
1515
  _defineProperty(this, "_variant_code", "");
1516
1516
  _defineProperty(this, "parse", function () {
1517
1517
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1518
1518
  try {
1519
- var _this$UzYn$_attr;
1519
+ var _this$ZRcw$_attr;
1520
1520
  // If ID is not present, throw it out
1521
1521
  if (!isDefined(config._id)) {
1522
1522
  Logger$9.error("No Id");
@@ -1530,18 +1530,18 @@
1530
1530
  }
1531
1531
 
1532
1532
  // If META, VALIDITY, FREQUENCY and AUDIENCE is not parsed properly, throw it out
1533
- if (!(_this.UzYn.parse(config) && _this.FXvj.parse(config) && _this.rQSF.parse(config) && _this.trWM.parse(config) && _this.ZIao.parse(config) && _this.TgFO.parse(config) && _this.kpCc.parse(config))) {
1533
+ if (!(_this.ZRcw.parse(config) && _this.sChz.parse(config) && _this.kJYL.parse(config) && _this.jppE.parse(config) && _this.uipS.parse(config) && _this.UIio.parse(config) && _this.TDxl.parse(config))) {
1534
1534
  return false;
1535
1535
  }
1536
- _this._variant_code = _this.UzYn._isExperiment || _this.UzYn._only_context ? (_this$UzYn$_attr = _this.UzYn._attr) === null || _this$UzYn$_attr === void 0 ? void 0 : _this$UzYn$_attr[APX_VARIANT_CODE] : "TG";
1536
+ _this._variant_code = _this.ZRcw._isExperiment || _this.ZRcw._only_context ? (_this$ZRcw$_attr = _this.ZRcw._attr) === null || _this$ZRcw$_attr === void 0 ? void 0 : _this$ZRcw$_attr[APX_VARIANT_CODE] : "TG";
1537
1537
  // If there are no conditions, throw it out
1538
1538
  if (!isDefined(config.conditions) || !Array.isArray(config.conditions)) {
1539
1539
  Logger$9.error("No valid conditions", config.conditions);
1540
1540
  return false;
1541
1541
  }
1542
- _this.xKIU = config._id;
1543
- _this.wOSL = isDefined(config.sequence_enabled) ? config.sequence_enabled : false;
1544
- if (_this.wOSL) {
1542
+ _this.UOvb = config._id;
1543
+ _this.PYFX = isDefined(config.sequence_enabled) ? config.sequence_enabled : false;
1544
+ if (_this.PYFX) {
1545
1545
  // iff respectSequence is true, Sort the Conditions by their sequence order
1546
1546
  // We need to sort, if server sends them in orderless manner
1547
1547
  config.conditions.sort(function (prev, current) {
@@ -1554,20 +1554,20 @@
1554
1554
  var length = conditions.length;
1555
1555
  var no_context_enabled = config === null || config === void 0 ? void 0 : config.no_context_enabled;
1556
1556
  if (length === 0 && no_context_enabled) {
1557
- _this.evpT();
1557
+ _this.llet();
1558
1558
  }
1559
1559
  var _loop = function _loop() {
1560
- _this.IsFF = [];
1560
+ _this.xJtu = [];
1561
1561
  var condition = conditions[index];
1562
1562
  if (condition.type === "didn't") {
1563
- var HPBH$details;
1563
+ var GppC$details;
1564
1564
  var obj = {
1565
1565
  trigger_key: condition.trigger.details.name,
1566
- no_kpi_array: condition === null || condition === void 0 || (HPBH$details = condition.details) === null || HPBH$details === void 0 || (HPBH$details = HPBH$details.additional_info) === null || HPBH$details === void 0 ? void 0 : HPBH$details.nkpi,
1566
+ no_kpi_array: condition === null || condition === void 0 || (GppC$details = condition.details) === null || GppC$details === void 0 || (GppC$details = GppC$details.additional_info) === null || GppC$details === void 0 ? void 0 : GppC$details.nkpi,
1567
1567
  condition_id: condition === null || condition === void 0 ? void 0 : condition._id,
1568
1568
  time_bounds: condition.time_bounds.upper
1569
1569
  };
1570
- _this.IsFF = [].concat(_toConsumableArray(_this.IsFF), [obj]);
1570
+ _this.xJtu = [].concat(_toConsumableArray(_this.xJtu), [obj]);
1571
1571
  //this will be the key
1572
1572
  //when event occur check this array and then then check the time
1573
1573
  //check the time diffrence
@@ -1576,16 +1576,16 @@
1576
1576
  }
1577
1577
 
1578
1578
  var conditionValidator = new ConditionValidator();
1579
- if (conditionValidator.initialize(condition, _this.xKIU, index, _this.wOSL, _this.IsFF)) {
1580
- _this.pZCC.push(conditionValidator);
1579
+ if (conditionValidator.initialize(condition, _this.UOvb, index, _this.PYFX, _this.xJtu)) {
1580
+ _this.lEUi.push(conditionValidator);
1581
1581
  var max_retries = (condition === null || condition === void 0 ? void 0 : condition.timeout) / (condition === null || condition === void 0 ? void 0 : condition.findinterval);
1582
1582
  var frame_id = (condition === null || condition === void 0 ? void 0 : condition.frameid) || "";
1583
1583
  var url = condition === null || condition === void 0 ? void 0 : condition.url;
1584
1584
  if (window.location.href === url) {
1585
1585
  if (condition.event_type === "view_visibility") {
1586
1586
  if (_findTargetElement(condition.view_id, frame_id, condition === null || condition === void 0 ? void 0 : condition.enable_retry, condition === null || condition === void 0 ? void 0 : condition.findinterval, max_retries) === true) {
1587
- //this.GRBk();
1588
- _this.evpT(true);
1587
+ //this.wxSy();
1588
+ _this.llet(true);
1589
1589
  }
1590
1590
  }
1591
1591
  }
@@ -1595,8 +1595,8 @@
1595
1595
  if (window.location.href === url) {
1596
1596
  if (condition.event_type === "view_visibility") {
1597
1597
  if (_findTargetElement(condition.view_id, frame_id, condition === null || condition === void 0 ? void 0 : condition.enable_retry, condition === null || condition === void 0 ? void 0 : condition.findinterval, max_retries) === true) {
1598
- //this.GRBk();
1599
- _this.evpT(true);
1598
+ //this.wxSy();
1599
+ _this.llet(true);
1600
1600
  }
1601
1601
  }
1602
1602
  }
@@ -1606,114 +1606,114 @@
1606
1606
  for (var index = 0; index < length; index++) {
1607
1607
  _loop();
1608
1608
  }
1609
- if (_this.TgFO.enable_goal_events) {
1609
+ if (_this.UIio.enable_goal_events) {
1610
1610
  var goal_events = config.terminate_info.goal_events.events;
1611
1611
  var goaleventslength = goal_events.length;
1612
1612
  for (var i = 0; i < goaleventslength; i++) {
1613
1613
  var conditionValidator = new ConditionValidator();
1614
- if (conditionValidator.initialize(goal_events[i], _this.xKIU, i, true, [], "termination")) {
1615
- _this.eCJJ.push(conditionValidator);
1614
+ if (conditionValidator.initialize(goal_events[i], _this.UOvb, i, true, [], "termination")) {
1615
+ _this.gdpH.push(conditionValidator);
1616
1616
  }
1617
1617
  }
1618
1618
  }
1619
- return _this.pZCC.length > 0;
1619
+ return _this.lEUi.length > 0;
1620
1620
  } catch (error) {
1621
1621
  Logger$9.error(error);
1622
1622
  return false;
1623
1623
  }
1624
1624
  });
1625
- _defineProperty(this, "xOwj", function (index) {
1625
+ _defineProperty(this, "DOOS", function (index) {
1626
1626
  if (index < 0) {
1627
1627
  return;
1628
1628
  }
1629
- if (_this.wOSL) {
1630
- var conditionValidator = _this.pZCC[index];
1631
- if (isDefined(conditionValidator) && conditionValidator.lAQm) {
1629
+ if (_this.PYFX) {
1630
+ var conditionValidator = _this.lEUi[index];
1631
+ if (isDefined(conditionValidator) && conditionValidator.jddI) {
1632
1632
  // Check if previous validator is satisfied
1633
- var prevValidator = _this.pZCC[index - 1];
1634
- if (isDefined(prevValidator) && !prevValidator.lAQm) {
1633
+ var prevValidator = _this.lEUi[index - 1];
1634
+ if (isDefined(prevValidator) && !prevValidator.jddI) {
1635
1635
  // TODO: If current index is satisfied before previous one, do something
1636
1636
  // either unregister all conditions or remove this item from ConfigLookup
1637
1637
  return;
1638
1638
  }
1639
- var nextValidator = _this.pZCC[index + 1];
1639
+ var nextValidator = _this.lEUi[index + 1];
1640
1640
  if (!isDefined(nextValidator)) {
1641
1641
  // It means this is the last condition
1642
1642
  // Validate all conditions
1643
- _this.evpT();
1643
+ _this.llet();
1644
1644
  } else {
1645
- nextValidator.GRBk();
1645
+ nextValidator.wxSy();
1646
1646
  }
1647
1647
  }
1648
1648
  } else {
1649
1649
  // Validate all conditions
1650
- _this.evpT();
1650
+ _this.llet();
1651
1651
  }
1652
1652
  });
1653
- _defineProperty(this, "YTOO", function (index) {
1653
+ _defineProperty(this, "AbUp", function (index) {
1654
1654
  if (index < 0) {
1655
1655
  return;
1656
1656
  }
1657
- _this.cClV();
1657
+ _this.xxnf();
1658
1658
  });
1659
- _defineProperty(this, "evpT", function () {
1659
+ _defineProperty(this, "llet", function () {
1660
1660
  var _window$ApxorRTM, _window$ApxorRTM2;
1661
1661
  var view_visibility = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
1662
1662
  // Check If Audience, Validity is satisfied or not
1663
1663
  var userAttributes = Apxor.getController().getUserAttributes();
1664
1664
  var sessionAttributes = Apxor.getController().getSessionAttributes();
1665
- if (!((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.isBadgePresent && (_window$ApxorRTM2 = window.ApxorRTM) !== null && _window$ApxorRTM2 !== void 0 && _window$ApxorRTM2.badgesLists.includes(_this.xKIU) && Apxor.getController().isBadgeTriggerSatisfied(_this.xKIU))) {
1665
+ if (!((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.isBadgePresent && (_window$ApxorRTM2 = window.ApxorRTM) !== null && _window$ApxorRTM2 !== void 0 && _window$ApxorRTM2.badgesLists.includes(_this.UOvb) && Apxor.getController().isBadgeTriggerSatisfied(_this.UOvb))) {
1666
1666
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_trigger_satisfied", {
1667
- apx_nudge_type: _this.UzYn.MLcB === "SURVEY" ? "survey" : "campaign",
1668
- apx_nudge_id: _this.xKIU,
1669
- apx_nudge_name: _this.UzYn.hqtt,
1670
- apx_variant_code: _this.UzYn._isExperiment || _this.UzYn._only_context ? _this.UzYn._attr[APX_VARIANT_CODE] : "TG"
1667
+ apx_nudge_type: _this.ZRcw.VaVo === "SURVEY" ? "survey" : "campaign",
1668
+ apx_nudge_id: _this.UOvb,
1669
+ apx_nudge_name: _this.ZRcw.EzOS,
1670
+ apx_variant_code: _this.ZRcw._isExperiment || _this.ZRcw._only_context ? _this.ZRcw._attr[APX_VARIANT_CODE] : "TG"
1671
1671
  });
1672
1672
  }
1673
- if (!_this.FXvj.validate() || !_this.trWM.validate(userAttributes, sessionAttributes) || !_this.ZIao.validate() || !_this.kpCc.validate()) {
1674
- if (!_this.ZIao.retainedDaysValidated) {
1675
- _this.QyOa("Retained day criteria not met");
1673
+ if (!_this.sChz.validate() || !_this.jppE.validate(userAttributes, sessionAttributes) || !_this.uipS.validate() || !_this.TDxl.validate()) {
1674
+ if (!_this.uipS.retainedDaysValidated) {
1675
+ _this.Jhva("Retained day criteria not met");
1676
1676
  return;
1677
1677
  }
1678
- if (!_this.ZIao.retainedSessionValidated) {
1679
- _this.QyOa("User session criteria not met");
1678
+ if (!_this.uipS.retainedSessionValidated) {
1679
+ _this.Jhva("User session criteria not met");
1680
1680
  return;
1681
1681
  }
1682
- if (_this.ZIao.eventDoneInLT) {
1683
- _this.QyOa("Event done in life time");
1682
+ if (_this.uipS.eventDoneInLT) {
1683
+ _this.Jhva("Event done in life time");
1684
1684
  return;
1685
1685
  }
1686
- if (!_this.trWM.userAttributesValidated) {
1687
- _this.QyOa("User property filter not met");
1686
+ if (!_this.jppE.userAttributesValidated) {
1687
+ _this.Jhva("User property filter not met");
1688
1688
  return;
1689
1689
  }
1690
- if (!_this.trWM.sessionAttributeValidated) {
1691
- _this.QyOa("Session property filter not met");
1690
+ if (!_this.jppE.sessionAttributeValidated) {
1691
+ _this.Jhva("Session property filter not met");
1692
1692
  return;
1693
1693
  }
1694
- if (_this.FXvj._not_in_specified_time) {
1695
- _this.QyOa("Time limits check failed");
1694
+ if (_this.sChz._not_in_specified_time) {
1695
+ _this.Jhva("Time limits check failed");
1696
1696
  return;
1697
1697
  }
1698
- if (_this.FXvj._not_yet_active) {
1699
- _this.QyOa("not in the scheduled time");
1698
+ if (_this.sChz._not_yet_active) {
1699
+ _this.Jhva("not in the scheduled time");
1700
1700
  return;
1701
1701
  }
1702
- if (_this.FXvj._nudge_expired) {
1703
- _this.QyOa("nudge expired");
1702
+ if (_this.sChz._nudge_expired) {
1703
+ _this.Jhva("nudge expired");
1704
1704
  return;
1705
1705
  }
1706
1706
  return;
1707
1707
  }
1708
- var length = _this.pZCC.length;
1708
+ var length = _this.lEUi.length;
1709
1709
  var isSatisfied = length < 1;
1710
1710
  var combineOperator = "";
1711
1711
  if (length === 0) {
1712
1712
  isSatisfied = true;
1713
1713
  }
1714
1714
  for (var index = 0; index < length; index++) {
1715
- var validator = _this.pZCC[index];
1716
- var currentResult = validator.lAQm;
1715
+ var validator = _this.lEUi[index];
1716
+ var currentResult = validator.jddI;
1717
1717
  if (combineOperator.trim() === "") {
1718
1718
  isSatisfied = currentResult;
1719
1719
  } else {
@@ -1726,7 +1726,7 @@
1726
1726
  break;
1727
1727
  }
1728
1728
  }
1729
- combineOperator = validator.NcmX;
1729
+ combineOperator = validator.TlGR;
1730
1730
  }
1731
1731
  if (view_visibility === true) {
1732
1732
  isSatisfied = true;
@@ -1734,10 +1734,10 @@
1734
1734
  if (isSatisfied) {
1735
1735
  console.debug("onCondition satisfied");
1736
1736
  // Check if count reached it's maximum
1737
- if (!_this.rQSF.fhhD(_this.xKIU)) {
1738
- console.warn("Maximum limit reached", _this.xKIU);
1737
+ if (!_this.kJYL.xWvr(_this.UOvb)) {
1738
+ console.warn("Maximum limit reached", _this.UOvb);
1739
1739
  if (Apxor.getController().isTestDevice()) {
1740
- feedBackMessagePopUpCE("Maximum limit reached for campaign name ".concat(_this.UzYn.hqtt));
1740
+ feedBackMessagePopUpCE("Maximum limit reached for campaign name ".concat(_this.ZRcw.EzOS));
1741
1741
  var closeButton = document.getElementById("close-button");
1742
1742
  var dismissCallback = function dismissCallback() {
1743
1743
  var modal_popup_container = document.getElementById("apx-container");
@@ -1751,36 +1751,36 @@
1751
1751
 
1752
1752
  //logging event for view not found for test device
1753
1753
 
1754
- console.log("Dispatching event", _this.UzYn.MLcB);
1754
+ console.log("Dispatching event", _this.ZRcw.VaVo);
1755
1755
 
1756
- //if (this.UzYn._only_context === true) {
1756
+ //if (this.ZRcw._only_context === true) {
1757
1757
  Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({
1758
- apx_nudge_type: _this.UzYn.MLcB === "SURVEY" ? "survey" : "campaign",
1759
- apx_nudge_id: _this.xKIU,
1760
- apx_nudge_name: _this.UzYn.hqtt,
1761
- apx_variant_code: _this.UzYn._isExperiment || _this.UzYn._only_context ? _this.UzYn._attr[APX_VARIANT_CODE] : "TG"
1762
- }, _this.UzYn._attr), {}, {
1763
- message_name: _this.UzYn.hqtt,
1764
- id: _this.xKIU
1758
+ apx_nudge_type: _this.ZRcw.VaVo === "SURVEY" ? "survey" : "campaign",
1759
+ apx_nudge_id: _this.UOvb,
1760
+ apx_nudge_name: _this.ZRcw.EzOS,
1761
+ apx_variant_code: _this.ZRcw._isExperiment || _this.ZRcw._only_context ? _this.ZRcw._attr[APX_VARIANT_CODE] : "TG"
1762
+ }, _this.ZRcw._attr), {}, {
1763
+ message_name: _this.ZRcw.EzOS,
1764
+ id: _this.UOvb
1765
1765
  }));
1766
1766
  //}
1767
1767
  // Emit event
1768
- Apxor.getController().dispatchEvent(_this.UzYn.MLcB, {
1769
- name: _this.UzYn.MLcB,
1768
+ Apxor.getController().dispatchEvent(_this.ZRcw.VaVo, {
1769
+ name: _this.ZRcw.VaVo,
1770
1770
  additional_info: {
1771
- uuid: _this.xKIU,
1772
- name: _this.UzYn.hqtt
1771
+ uuid: _this.UOvb,
1772
+ name: _this.ZRcw.EzOS
1773
1773
  }
1774
1774
  });
1775
1775
  }
1776
1776
  });
1777
- _defineProperty(this, "cClV", function () {
1778
- var length = _this.eCJJ.length;
1777
+ _defineProperty(this, "xxnf", function () {
1778
+ var length = _this.gdpH.length;
1779
1779
  var isSatisfied = length < 1;
1780
1780
  var combineOperator = "";
1781
1781
  for (var index = 0; index < length; index++) {
1782
- var validator = _this.eCJJ[index];
1783
- var currentResult = validator.lAQm;
1782
+ var validator = _this.gdpH[index];
1783
+ var currentResult = validator.jddI;
1784
1784
  if (combineOperator.trim() === "") {
1785
1785
  isSatisfied = currentResult;
1786
1786
  } else {
@@ -1793,23 +1793,23 @@
1793
1793
  break;
1794
1794
  }
1795
1795
  }
1796
- combineOperator = validator.cTHv;
1796
+ combineOperator = validator.HAaq;
1797
1797
  }
1798
1798
  if (isSatisfied) {
1799
- console.log("Dispatching event", _this.UzYn.MLcB);
1800
- Apxor.getController().persistTerminationInfoLocally(_this.xKIU);
1801
- if (_this.UzYn._only_context === true) {
1802
- Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.UzYn._attr), {}, {
1803
- message_name: _this.UzYn.hqtt,
1804
- id: _this.xKIU
1799
+ console.log("Dispatching event", _this.ZRcw.VaVo);
1800
+ Apxor.getController().persistTerminationInfoLocally(_this.UOvb);
1801
+ if (_this.ZRcw._only_context === true) {
1802
+ Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.ZRcw._attr), {}, {
1803
+ message_name: _this.ZRcw.EzOS,
1804
+ id: _this.UOvb
1805
1805
  }));
1806
1806
  }
1807
1807
  // Emit event
1808
- Apxor.getController().dispatchEvent(_this.UzYn.MLcB, {
1809
- name: _this.UzYn.MLcB,
1808
+ Apxor.getController().dispatchEvent(_this.ZRcw.VaVo, {
1809
+ name: _this.ZRcw.VaVo,
1810
1810
  additional_info: {
1811
- uuid: _this.xKIU,
1812
- name: _this.UzYn.hqtt
1811
+ uuid: _this.UOvb,
1812
+ name: _this.ZRcw.EzOS
1813
1813
  }
1814
1814
  });
1815
1815
  }
@@ -1817,24 +1817,24 @@
1817
1817
  _defineProperty(this, "validateForTerminationAttributes", function () {
1818
1818
  var userAttributes = Apxor.getController().getUserAttributes();
1819
1819
  var sessionAttributes = Apxor.getController().getSessionAttributes();
1820
- return _this.TgFO.validate(userAttributes, sessionAttributes);
1820
+ return _this.UIio.validate(userAttributes, sessionAttributes);
1821
1821
  });
1822
- _defineProperty(this, "PrTa", function () {
1823
- _this.rQSF.PrTa();
1822
+ _defineProperty(this, "KQWg", function () {
1823
+ _this.kJYL.KQWg();
1824
1824
  });
1825
1825
  _defineProperty(this, "getFrequencyCount", function () {
1826
- return _this.rQSF.getFrequencyCount();
1826
+ return _this.kJYL.getFrequencyCount();
1827
1827
  });
1828
- _defineProperty(this, "TDWH", function () {
1829
- return _this.rQSF.hYCk();
1828
+ _defineProperty(this, "DTqR", function () {
1829
+ return _this.kJYL.ffxG();
1830
1830
  });
1831
- _defineProperty(this, "QyOa", function (reason) {
1832
- var _this$UzYn$_attr2;
1831
+ _defineProperty(this, "Jhva", function (reason) {
1832
+ var _this$ZRcw$_attr2;
1833
1833
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1834
- apx_nudge_type: _this.UzYn.MLcB === "SURVEY" ? "survey" : "campaign",
1835
- apx_nudge_id: _this.xKIU,
1836
- apx_nudge_name: _this.UzYn.hqtt,
1837
- apx_variant_code: _this.UzYn._isExperiment || _this.UzYn._only_context ? (_this$UzYn$_attr2 = _this.UzYn._attr) === null || _this$UzYn$_attr2 === void 0 ? void 0 : _this$UzYn$_attr2[APX_VARIANT_CODE] : "TG",
1834
+ apx_nudge_type: _this.ZRcw.VaVo === "SURVEY" ? "survey" : "campaign",
1835
+ apx_nudge_id: _this.UOvb,
1836
+ apx_nudge_name: _this.ZRcw.EzOS,
1837
+ apx_variant_code: _this.ZRcw._isExperiment || _this.ZRcw._only_context ? (_this$ZRcw$_attr2 = _this.ZRcw._attr) === null || _this$ZRcw$_attr2 === void 0 ? void 0 : _this$ZRcw$_attr2[APX_VARIANT_CODE] : "TG",
1838
1838
  apx_failure_type: "warn",
1839
1839
  apx_reason: reason
1840
1840
  });
@@ -1844,7 +1844,7 @@
1844
1844
  var ConfigLookup = /*#__PURE__*/_createClass(function ConfigLookup() {
1845
1845
  var _this = this;
1846
1846
  _classCallCheck(this, ConfigLookup);
1847
- _defineProperty(this, "rDWk", {});
1847
+ _defineProperty(this, "dlip", {});
1848
1848
  _defineProperty(this, "parse", function () {
1849
1849
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
1850
1850
  configs: []
@@ -1867,7 +1867,7 @@
1867
1867
  var configId = _config._id;
1868
1868
  var configItem = new ConfigItem();
1869
1869
  if (configItem.parse(_config)) {
1870
- _this.rDWk[configId] = configItem;
1870
+ _this.dlip[configId] = configItem;
1871
1871
  } else {
1872
1872
  console.warn("Failed to parse cfg", configId);
1873
1873
  }
@@ -1875,51 +1875,51 @@
1875
1875
  }
1876
1876
  });
1877
1877
  _defineProperty(this, "validate", function (id, index) {
1878
- if (_this.rDWk[id]) {
1879
- var configItem = _this.rDWk[id];
1880
- configItem.xOwj(index);
1878
+ if (_this.dlip[id]) {
1879
+ var configItem = _this.dlip[id];
1880
+ configItem.DOOS(index);
1881
1881
  }
1882
1882
  });
1883
1883
  _defineProperty(this, "getVariantCode", function (id) {
1884
- if (_this.rDWk[id]) {
1885
- var configItem = _this.rDWk[id];
1884
+ if (_this.dlip[id]) {
1885
+ var configItem = _this.dlip[id];
1886
1886
  return configItem._variant_code;
1887
1887
  }
1888
1888
  return "";
1889
1889
  });
1890
1890
  _defineProperty(this, "validateForTermination", function (id, index) {
1891
- if (_this.rDWk[id]) {
1892
- var configItem = _this.rDWk[id];
1893
- configItem.YTOO(index);
1891
+ if (_this.dlip[id]) {
1892
+ var configItem = _this.dlip[id];
1893
+ configItem.AbUp(index);
1894
1894
  }
1895
1895
  });
1896
1896
  _defineProperty(this, "validateForTerminationAttributes", function (id) {
1897
- if (_this.rDWk[id]) {
1898
- var configItem = _this.rDWk[id];
1897
+ if (_this.dlip[id]) {
1898
+ var configItem = _this.dlip[id];
1899
1899
  return configItem.validateForTerminationAttributes();
1900
1900
  }
1901
1901
  return false;
1902
1902
  });
1903
- _defineProperty(this, "PrTa", function (id) {
1904
- var campiagnConfig = _this.rDWk[id];
1905
- campiagnConfig.PrTa();
1903
+ _defineProperty(this, "KQWg", function (id) {
1904
+ var campiagnConfig = _this.dlip[id];
1905
+ campiagnConfig.KQWg();
1906
1906
  });
1907
1907
  _defineProperty(this, "getFrequencyCount", function (id) {
1908
- var campiagnConfig = _this.rDWk[id];
1908
+ var campiagnConfig = _this.dlip[id];
1909
1909
  if (campiagnConfig != undefined) return campiagnConfig.getFrequencyCount();
1910
1910
  });
1911
1911
  _defineProperty(this, "resetFrequencyCounts", function () {
1912
- var configs = _this.rDWk;
1912
+ var configs = _this.dlip;
1913
1913
  for (var configId in configs) {
1914
- configs[configId].TDWH();
1914
+ configs[configId].DTqR();
1915
1915
  }
1916
1916
  });
1917
- _defineProperty(this, "zmqm", function (campaignId) {
1917
+ _defineProperty(this, "bVJz", function (campaignId) {
1918
1918
  try {
1919
- if (_this.rDWk) {
1920
- var configItem = _this.rDWk[campaignId];
1921
- if (configItem && configItem.UzYn) {
1922
- return configItem.UzYn;
1919
+ if (_this.dlip) {
1920
+ var configItem = _this.dlip[campaignId];
1921
+ if (configItem && configItem.ZRcw) {
1922
+ return configItem.ZRcw;
1923
1923
  }
1924
1924
  }
1925
1925
  } catch (e) {
@@ -1935,42 +1935,42 @@
1935
1935
  var EventsListener = /*#__PURE__*/_createClass(function EventsListener() {
1936
1936
  var _this = this;
1937
1937
  _classCallCheck(this, EventsListener);
1938
- _defineProperty(this, "xUEh", {});
1939
- _defineProperty(this, "asOE", []);
1940
- _defineProperty(this, "CQYb", false);
1938
+ _defineProperty(this, "goSo", {});
1939
+ _defineProperty(this, "Gxpk", []);
1940
+ _defineProperty(this, "MEaQ", false);
1941
1941
  _defineProperty(this, "initialize", function () {
1942
1942
  var controller = Apxor.getController();
1943
1943
  controller.registerForEvent(APP_EVENT, function (event) {
1944
- return _this.Xijx(event, "AE");
1944
+ return _this.vrud(event, "AE");
1945
1945
  });
1946
1946
  controller.registerForEvent(CLIENT_EVENT, function (event) {
1947
- return _this.Xijx(event, "CE");
1947
+ return _this.vrud(event, "CE");
1948
1948
  });
1949
1949
  });
1950
- _defineProperty(this, "QENl", function () {
1950
+ _defineProperty(this, "MMWW", function () {
1951
1951
  // Clear Buffer
1952
- for (var item in _this.asOE) {
1953
- _this.hpBl(item.event, item.key, item.type);
1952
+ for (var item in _this.Gxpk) {
1953
+ _this.QdLk(item.event, item.key, item.type);
1954
1954
  }
1955
- _this.CQYb = true;
1955
+ _this.MEaQ = true;
1956
1956
  });
1957
- _defineProperty(this, "Cbqw", function (event, callback) {
1957
+ _defineProperty(this, "vVxZ", function (event, callback) {
1958
1958
  if (!isFunction(callback)) {
1959
1959
  return;
1960
1960
  }
1961
1961
  var listeners;
1962
- if (_this.xUEh[event]) {
1963
- listeners = _this.xUEh[event];
1962
+ if (_this.goSo[event]) {
1963
+ listeners = _this.goSo[event];
1964
1964
  } else {
1965
1965
  listeners = [];
1966
1966
  }
1967
1967
  listeners.push(callback);
1968
- _this.xUEh[event] = listeners;
1969
- Logger$a.debug("Listeners list: ", _this.xUEh);
1968
+ _this.goSo[event] = listeners;
1969
+ Logger$a.debug("Listeners list: ", _this.goSo);
1970
1970
  });
1971
1971
  _defineProperty(this, "unregisterFromEvent", function (event, callback) {
1972
- if (_this.xUEh[event]) {
1973
- var listeners = _this.xUEh[event];
1972
+ if (_this.goSo[event]) {
1973
+ var listeners = _this.goSo[event];
1974
1974
  var updatedListeners = [];
1975
1975
  for (var index = 0; index < listeners.length; index++) {
1976
1976
  var listener = listeners[index];
@@ -1978,25 +1978,25 @@
1978
1978
  updatedListeners.push(listener);
1979
1979
  }
1980
1980
  }
1981
- _this.xUEh[event] = updatedListeners;
1981
+ _this.goSo[event] = updatedListeners;
1982
1982
  }
1983
1983
  });
1984
- _defineProperty(this, "Xijx", function (event) {
1984
+ _defineProperty(this, "vrud", function (event) {
1985
1985
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "AE";
1986
1986
  var key = type + "___" + event.name;
1987
- _this.hpBl(event, key, type);
1987
+ _this.QdLk(event, key, type);
1988
1988
  });
1989
- _defineProperty(this, "hpBl", function (event, key, type) {
1990
- if (!_this.CQYb) {
1991
- _this.asOE.push({
1989
+ _defineProperty(this, "QdLk", function (event, key, type) {
1990
+ if (!_this.MEaQ) {
1991
+ _this.Gxpk.push({
1992
1992
  event: event,
1993
1993
  key: key,
1994
1994
  type: type
1995
1995
  });
1996
1996
  } else {
1997
- Logger$a.debug("Notifying listeners for event: " + event + ", " + key, _this.xUEh);
1998
- if (_this.xUEh[key]) {
1999
- var listeners = _this.xUEh[key];
1997
+ Logger$a.debug("Notifying listeners for event: " + event + ", " + key, _this.goSo);
1998
+ if (_this.goSo[key]) {
1999
+ var listeners = _this.goSo[key];
2000
2000
  var time = Apxor.getController().getSDKRunningTimeInSec();
2001
2001
  for (var index = 0; index < listeners.length; index++) {
2002
2002
  var listener = listeners[index];
@@ -2012,17 +2012,17 @@
2012
2012
  function CE() {
2013
2013
  var _this = this;
2014
2014
  _classCallCheck(this, CE);
2015
- _defineProperty(this, "CjwR", false);
2016
- _defineProperty(this, "GcQU", null);
2017
- _defineProperty(this, "zyPd", getDateInDDMMYYYY());
2018
- _defineProperty(this, "ZcbS", new EventsListener());
2019
- _defineProperty(this, "XlUq", Apxor.getSiteId());
2015
+ _defineProperty(this, "rGsi", false);
2016
+ _defineProperty(this, "nFaY", null);
2017
+ _defineProperty(this, "eTtX", getDateInDDMMYYYY());
2018
+ _defineProperty(this, "lLUW", new EventsListener());
2019
+ _defineProperty(this, "ZFVe", Apxor.getSiteId());
2020
2020
  _defineProperty(this, "_qeState", {});
2021
2021
  _defineProperty(this, "getQeState", function () {
2022
2022
  try {
2023
2023
  var data = Apxor.getController().getFromStorage(QE_STATE);
2024
2024
  if (data) {
2025
- return JSON.parse(decode(_this.XlUq, data));
2025
+ return JSON.parse(decode(_this.ZFVe, data));
2026
2026
  } else {
2027
2027
  _this._qeState = {};
2028
2028
  return _this.setQeState();
@@ -2051,10 +2051,10 @@
2051
2051
  return _this._qeState;
2052
2052
  });
2053
2053
  _defineProperty(this, "initialize", function () {
2054
- if (!_this.CjwR) {
2055
- _this.CjwR = true;
2056
- _this.GcQU = new ConfigLookup();
2057
- _this.ZcbS.initialize();
2054
+ if (!_this.rGsi) {
2055
+ _this.rGsi = true;
2056
+ _this.nFaY = new ConfigLookup();
2057
+ _this.lLUW.initialize();
2058
2058
  _this._qeState = _this.getQeState();
2059
2059
  Logger$b.info("QE Initialized..");
2060
2060
  }
@@ -2065,12 +2065,12 @@
2065
2065
  * @param config
2066
2066
  */
2067
2067
  _defineProperty(this, "parse", function (config) {
2068
- if (!_this.Ctkq()) {
2068
+ if (!_this.ehwg()) {
2069
2069
  Logger$b.warn("Must call init first. Unable to proceed");
2070
2070
  return;
2071
2071
  }
2072
- _this.GcQU.parse(config);
2073
- _this.ZcbS.QENl();
2072
+ _this.nFaY.parse(config);
2073
+ _this.lLUW.MMWW();
2074
2074
  });
2075
2075
  /**
2076
2076
  * Validates all conditions for given config ID
@@ -2079,22 +2079,22 @@
2079
2079
  * @param index
2080
2080
  */
2081
2081
  _defineProperty(this, "validate", function (id, index) {
2082
- if (!_this.Ctkq()) {
2082
+ if (!_this.ehwg()) {
2083
2083
  return;
2084
2084
  }
2085
- _this.GcQU.validate(id, index);
2085
+ _this.nFaY.validate(id, index);
2086
2086
  });
2087
2087
  _defineProperty(this, "getVariantCode", function (id) {
2088
- return _this.GcQU.getVariantCode(id);
2088
+ return _this.nFaY.getVariantCode(id);
2089
2089
  });
2090
2090
  _defineProperty(this, "validateForTermination", function (id, index) {
2091
- if (!_this.Ctkq()) {
2091
+ if (!_this.ehwg()) {
2092
2092
  return;
2093
2093
  }
2094
- _this.GcQU.validateForTermination(id, index);
2094
+ _this.nFaY.validateForTermination(id, index);
2095
2095
  });
2096
2096
  _defineProperty(this, "validateForTerminationAttributes", function (user, session) {
2097
- return _this.GcQU.validateForTerminationAttributes(user, session);
2097
+ return _this.nFaY.validateForTerminationAttributes(user, session);
2098
2098
  });
2099
2099
  _defineProperty(this, "updateCount", function (id) {
2100
2100
  try {
@@ -2103,25 +2103,25 @@
2103
2103
  }
2104
2104
  _this.incrementFrequencies(id);
2105
2105
  _this.setQeState(id);
2106
- _this.GcQU.PrTa(id);
2106
+ _this.nFaY.KQWg(id);
2107
2107
  } catch (e) {
2108
2108
  console.log("Could not update the count config:".concat(e));
2109
2109
  }
2110
2110
  });
2111
2111
  _defineProperty(this, "resetFrequencyCounts", function () {
2112
- _this.GcQU.resetFrequencyCounts();
2112
+ _this.nFaY.resetFrequencyCounts();
2113
2113
  });
2114
2114
  _defineProperty(this, "getFrequencyCount", function (id) {
2115
- return _this.GcQU.getFrequencyCount(id);
2115
+ return _this.nFaY.getFrequencyCount(id);
2116
2116
  });
2117
2117
  _defineProperty(this, "registerForEvent", function (event, callback) {
2118
- _this.ZcbS.Cbqw(event, callback);
2118
+ _this.lLUW.vVxZ(event, callback);
2119
2119
  });
2120
2120
  _defineProperty(this, "unregisterFromEvent", function (event, callback) {
2121
- _this.ZcbS.unregisterFromEvent(event, callback);
2121
+ _this.lLUW.unregisterFromEvent(event, callback);
2122
2122
  });
2123
2123
  _defineProperty(this, "notifyEventListener", function (event) {
2124
- _this.ZcbS.Xijx(event);
2124
+ _this.lLUW.vrud(event);
2125
2125
  });
2126
2126
  /**
2127
2127
  * Fetches the config from Server
@@ -2134,14 +2134,14 @@
2134
2134
  _defineProperty(this, "fetch", function (type, validateUrl, apiUrl, callback) {
2135
2135
  Apxor.getController().fetchConfiguration(type, validateUrl, apiUrl, callback);
2136
2136
  });
2137
- _defineProperty(this, "Ctkq", function () {
2138
- return _this.CjwR;
2137
+ _defineProperty(this, "ehwg", function () {
2138
+ return _this.rGsi;
2139
2139
  });
2140
2140
  _defineProperty(this, "getCampaignMetaFromQueryEngine", function (campaignId) {
2141
- return _this.GcQU.zmqm(campaignId);
2141
+ return _this.nFaY.bVJz(campaignId);
2142
2142
  });
2143
- _defineProperty(this, "DdpW", function () {
2144
- return _this.zyPd;
2143
+ _defineProperty(this, "dlqc", function () {
2144
+ return _this.eTtX;
2145
2145
  });
2146
2146
  if (!CE.instance) {
2147
2147
  CE.instance = this;
@@ -2165,7 +2165,7 @@
2165
2165
  OVERALL: 0,
2166
2166
  DATES: {}
2167
2167
  };
2168
- if (this.zyPd) this._qeState[id].DATES[this.zyPd] = 0;
2168
+ if (this.eTtX) this._qeState[id].DATES[this.eTtX] = 0;
2169
2169
  this.setQeState(id);
2170
2170
  }
2171
2171
  } catch (e) {
@@ -2184,12 +2184,12 @@
2184
2184
 
2185
2185
  // Increment the DATES count for this particular date by 1. If the date changes reset.
2186
2186
  var currentDate = getDateInDDMMYYYY();
2187
- if (currentDate !== this.zyPd || !(configFrequency.DATES && configFrequency.DATES[currentDate])) {
2188
- this.zyPd = currentDate;
2187
+ if (currentDate !== this.eTtX || !(configFrequency.DATES && configFrequency.DATES[currentDate])) {
2188
+ this.eTtX = currentDate;
2189
2189
  configFrequency.DATES = {};
2190
- configFrequency.DATES[this.zyPd] = 0;
2190
+ configFrequency.DATES[this.eTtX] = 0;
2191
2191
  }
2192
- configFrequency.DATES[this.zyPd] = configFrequency.DATES[this.zyPd] + 1;
2192
+ configFrequency.DATES[this.eTtX] = configFrequency.DATES[this.eTtX] + 1;
2193
2193
  }
2194
2194
  }], [{
2195
2195
  key: "getInstance",