apxor-qe 1.5.1 → 1.6.0

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.
@@ -207,7 +207,7 @@
207
207
  var toUpperCase = function toUpperCase(key) {
208
208
  return key.toUpperCase();
209
209
  };
210
- var Pflq = function Pflq(actual, expected, operator) {
210
+ var zJVe = function zJVe(actual, expected, operator) {
211
211
  switch (operator) {
212
212
  case "EQ":
213
213
  return actual === expected;
@@ -268,18 +268,18 @@
268
268
  var Audience = /*#__PURE__*/_createClass(function Audience() {
269
269
  var _this = this;
270
270
  _classCallCheck(this, Audience);
271
- _defineProperty(this, "Lecg", "ALL");
272
- _defineProperty(this, "KWLx", []);
273
- _defineProperty(this, "YkGb", []);
271
+ _defineProperty(this, "FQLi", "ALL");
272
+ _defineProperty(this, "PrKM", []);
273
+ _defineProperty(this, "vvVn", []);
274
274
  _defineProperty(this, "userAttributesValidated", true);
275
275
  _defineProperty(this, "sessionAttributeValidated", true);
276
276
  _defineProperty(this, "parse", function () {
277
277
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
278
278
  try {
279
- _this.Lecg = config.audience.audience_type;
280
- _this.KWLx = config.audience.attributes.user;
281
- _this.YkGb = config.audience.attributes.session;
282
- if (!Array.isArray(_this.KWLx) || !Array.isArray(_this.YkGb)) {
279
+ _this.FQLi = config.audience.audience_type;
280
+ _this.PrKM = config.audience.attributes.user;
281
+ _this.vvVn = config.audience.attributes.session;
282
+ if (!Array.isArray(_this.PrKM) || !Array.isArray(_this.vvVn)) {
283
283
  Logger.error("No attributes");
284
284
  return false;
285
285
  }
@@ -291,11 +291,11 @@
291
291
  });
292
292
  _defineProperty(this, "validate", function (user, session) {
293
293
  var status = true;
294
- if (_this.Lecg === "FTU") {
294
+ if (_this.FQLi === "FTU") {
295
295
  status = Apxor.getController().getSessionInfo().is_first_session;
296
296
  }
297
- var userAttributesCompare = _this.hTqd(user, _this.KWLx);
298
- var sessionAttributesCompare = _this.hTqd(session, _this.YkGb);
297
+ var userAttributesCompare = _this.MTJF(user, _this.PrKM);
298
+ var sessionAttributesCompare = _this.MTJF(session, _this.vvVn);
299
299
  if (!userAttributesCompare) {
300
300
  _this.userAttributesValidated = false;
301
301
  }
@@ -304,7 +304,7 @@
304
304
  }
305
305
  return status && userAttributesCompare && sessionAttributesCompare;
306
306
  });
307
- _defineProperty(this, "hTqd", function (attributes, expected) {
307
+ _defineProperty(this, "MTJF", function (attributes, expected) {
308
308
  var length = expected.length;
309
309
  var status = true;
310
310
  try {
@@ -330,6 +330,8 @@
330
330
  return true;
331
331
  case "false":
332
332
  return false;
333
+ default:
334
+ return value;
333
335
  }
334
336
  }
335
337
  });
@@ -350,7 +352,7 @@
350
352
  } else if (type === "b") {
351
353
  loggedValue = !!loggedValue;
352
354
  }
353
- return Pflq(loggedValue, configValue, operator);
355
+ return zJVe(loggedValue, configValue, operator);
354
356
  });
355
357
  });
356
358
  status = status && match;
@@ -372,37 +374,37 @@
372
374
  var Frequency = /*#__PURE__*/_createClass(function Frequency() {
373
375
  var _this = this;
374
376
  _classCallCheck(this, Frequency);
375
- _defineProperty(this, "eeAf", 0);
376
- _defineProperty(this, "lEEo", 0);
377
- _defineProperty(this, "xdhp", "SESSION");
378
- _defineProperty(this, "TIcR", 0);
379
- _defineProperty(this, "kcoq", 0);
380
- _defineProperty(this, "dtUE", 0);
377
+ _defineProperty(this, "xHSD", 0);
378
+ _defineProperty(this, "hKvz", 0);
379
+ _defineProperty(this, "cDOC", "SESSION");
380
+ _defineProperty(this, "efHR", 0);
381
+ _defineProperty(this, "QRcg", 0);
382
+ _defineProperty(this, "ahkX", 0);
381
383
  _defineProperty(this, "parse", function () {
382
384
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
383
385
  try {
384
- _this.eeAf = config.frequency.count;
385
- if (_this.eeAf === -1) {
386
- _this.eeAf = 1000;
387
- }
388
- _this.dtUE = _this.eeAf;
389
- _this.lEEo = config.frequency.time_interval;
390
- _this.xdhp = config.frequency.validity;
391
- _this.kcoq = config.frequency.ses_lmt;
386
+ _this.xHSD = config.frequency.count;
387
+ if (_this.xHSD === -1) {
388
+ _this.xHSD = 1000;
389
+ }
390
+ _this.ahkX = _this.xHSD;
391
+ _this.hKvz = config.frequency.time_interval;
392
+ _this.cDOC = config.frequency.validity;
393
+ _this.QRcg = config.frequency.ses_lmt;
392
394
  _this._dayCount = config.frequency.day_lmt;
393
395
  // let data = Apxor.getController().getFromStorage(QE_STATE);
394
396
  // let qe_state = JSON.parse(decode(Apxor.getSiteId(), data));
395
397
  var qe_state = CE.getInstance().getQeState();
396
398
  if (!isDefined(qe_state) || !isDefined(qe_state[config._id])) return true;
397
- if (_this.xdhp === "SESSION") {
398
- _this.eeAf = parseInt(_this.eeAf) - parseInt(qe_state[config._id]["SESSION"]);
399
- if (_this.eeAf <= 0) {
399
+ if (_this.cDOC === "SESSION") {
400
+ _this.xHSD = parseInt(_this.xHSD) - parseInt(qe_state[config._id]["SESSION"]);
401
+ if (_this.xHSD <= 0) {
400
402
  console.warn("Max count limit reached for session:" + config._id);
401
403
  return false;
402
404
  }
403
- } else if (_this.xdhp === "OVERALL") {
404
- _this.eeAf = parseInt(_this.eeAf) - parseInt(qe_state[config._id]["OVERALL"]);
405
- if (_this.eeAf <= 0) {
405
+ } else if (_this.cDOC === "OVERALL") {
406
+ _this.xHSD = parseInt(_this.xHSD) - parseInt(qe_state[config._id]["OVERALL"]);
407
+ if (_this.xHSD <= 0) {
406
408
  console.warn("Max count limit reached for overall:" + config._id);
407
409
  return false;
408
410
  }
@@ -416,28 +418,28 @@
416
418
  }
417
419
  return true;
418
420
  });
419
- _defineProperty(this, "ikdS", function () {
420
- _this.eeAf = _this.eeAf - 1;
421
+ _defineProperty(this, "fcGL", function () {
422
+ _this.xHSD = _this.xHSD - 1;
421
423
  });
422
424
  _defineProperty(this, "getFrequencyCount", function () {
423
- return _this.eeAf;
425
+ return _this.xHSD;
424
426
  });
425
- _defineProperty(this, "MdUm", function () {
426
- if (_this.xdhp === "SESSION") {
427
- _this.eeAf = _this.dtUE;
427
+ _defineProperty(this, "bUYG", function () {
428
+ if (_this.cDOC === "SESSION") {
429
+ _this.xHSD = _this.ahkX;
428
430
  Logger$1.info("Campaign Limit reset");
429
431
  }
430
432
  });
431
433
  /**
432
- * @function iOMM
434
+ * @function KeXl
433
435
  * @description Validates if the campaign count is with in the limits set in the config.
434
436
  * @param {string} Config id
435
437
  * @returns {boolean} true - If the Campaign limits are not reached
436
438
  * false - Otherwise
437
439
  */
438
- _defineProperty(this, "iOMM", function (id) {
440
+ _defineProperty(this, "KeXl", function (id) {
439
441
  try {
440
- if (_this.eeAf <= 0) {
442
+ if (_this.xHSD <= 0) {
441
443
  return false;
442
444
  }
443
445
 
@@ -448,8 +450,8 @@
448
450
  if (!isDefined(qe_state) || !isDefined(qe_state[id])) return true;
449
451
 
450
452
  //If the config has a session count limit set
451
- if (_this.kcoq !== 0) {
452
- var sessionCountInConfig = parseInt(_this.kcoq);
453
+ if (_this.QRcg !== 0) {
454
+ var sessionCountInConfig = parseInt(_this.QRcg);
453
455
  var thisSessionCount = parseInt(qe_state[id]["SESSION"]);
454
456
  if (sessionCountInConfig - thisSessionCount <= 0) {
455
457
  return false;
@@ -476,14 +478,14 @@
476
478
  var Meta = /*#__PURE__*/_createClass(function Meta() {
477
479
  var _this = this;
478
480
  _classCallCheck(this, Meta);
479
- _defineProperty(this, "figp", "");
480
- _defineProperty(this, "Lecg", "");
481
+ _defineProperty(this, "oMsP", "");
482
+ _defineProperty(this, "FQLi", "");
481
483
  _defineProperty(this, "parse", function () {
482
484
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
483
485
  try {
484
486
  var _config$meta, _config$meta2;
485
- _this.figp = config.meta.name;
486
- _this.Lecg = config.meta.type;
487
+ _this.oMsP = config.meta.name;
488
+ _this.FQLi = config.meta.type;
487
489
  _this._only_context = config.meta.only_context;
488
490
  _this._attr = ((_config$meta = config.meta) === null || _config$meta === void 0 ? void 0 : _config$meta.attr) || {};
489
491
  _this._isExperiment = (_config$meta2 = config.meta) === null || _config$meta2 === void 0 ? void 0 : _config$meta2.isExperiment;
@@ -499,11 +501,11 @@
499
501
  var Validity = /*#__PURE__*/_createClass(function Validity() {
500
502
  var _this = this;
501
503
  _classCallCheck(this, Validity);
502
- _defineProperty(this, "qbZE", -1);
503
- _defineProperty(this, "RbKz", -1);
504
- _defineProperty(this, "tgyZ", -1);
505
- _defineProperty(this, "cWdN", -1);
506
- _defineProperty(this, "cidg", false);
504
+ _defineProperty(this, "WQuL", -1);
505
+ _defineProperty(this, "nesV", -1);
506
+ _defineProperty(this, "iBRX", -1);
507
+ _defineProperty(this, "DrYp", -1);
508
+ _defineProperty(this, "aquB", false);
507
509
  _defineProperty(this, "_nudge_expired", false);
508
510
  _defineProperty(this, "_not_yet_active", false);
509
511
  _defineProperty(this, "parse", function () {
@@ -513,17 +515,17 @@
513
515
  Logger$2.error("Not valid dates");
514
516
  return false;
515
517
  }
516
- _this.qbZE = Date.parse(config.validity.start_date);
517
- _this.RbKz = Date.parse(config.validity.end_date);
518
+ _this.WQuL = Date.parse(config.validity.start_date);
519
+ _this.nesV = Date.parse(config.validity.end_date);
518
520
  if (isDefined(config.time_limits_in_day)) {
519
- _this.cidg = config.time_limits_in_day;
520
- if (_this.cidg && isDefined(config.time_limits)) {
521
+ _this.aquB = config.time_limits_in_day;
522
+ if (_this.aquB && isDefined(config.time_limits)) {
521
523
  var currentDate = new Date().toISOString().split("T")[0];
522
- _this.tgyZ = Date.parse(currentDate + "T" + config.time_limits.start_time + ".000Z");
523
- _this.cWdN = Date.parse(currentDate + "T" + config.time_limits.end_time + ".000Z");
524
+ _this.iBRX = Date.parse(currentDate + "T" + config.time_limits.start_time + ".000Z");
525
+ _this.DrYp = Date.parse(currentDate + "T" + config.time_limits.end_time + ".000Z");
524
526
 
525
527
  // If invalid format is passed, return false
526
- if (isNaN(_this.tgyZ) || isNaN(_this.cWdN)) {
528
+ if (isNaN(_this.iBRX) || isNaN(_this.DrYp)) {
527
529
  Logger$2.error("Not valid times");
528
530
  return false;
529
531
  }
@@ -537,11 +539,11 @@
537
539
  });
538
540
  _defineProperty(this, "validate", function () {
539
541
  var currentTime = Date.now();
540
- if (currentTime > _this.qbZE && currentTime < _this.RbKz) {
541
- return !_this.cidg || currentTime >= _this.tgyZ && currentTime <= _this.cWdN;
542
- } else if (currentTime < _this.qbZE) {
542
+ if (currentTime > _this.WQuL && currentTime < _this.nesV) {
543
+ return !_this.aquB || currentTime >= _this.iBRX && currentTime <= _this.DrYp;
544
+ } else if (currentTime < _this.WQuL) {
543
545
  _this._not_yet_active = true;
544
- } else if (currentTime > _this.RbKz) {
546
+ } else if (currentTime > _this.nesV) {
545
547
  _this._nudge_expired = true;
546
548
  }
547
549
  return false;
@@ -551,13 +553,13 @@
551
553
  var Details = /*#__PURE__*/_createClass(function Details() {
552
554
  var _this = this;
553
555
  _classCallCheck(this, Details);
554
- _defineProperty(this, "figp", "");
555
- _defineProperty(this, "rXDy", {});
556
+ _defineProperty(this, "oMsP", "");
557
+ _defineProperty(this, "dkks", {});
556
558
  _defineProperty(this, "parse", function () {
557
559
  var details = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
558
560
  try {
559
- _this.figp = details.name;
560
- _this.rXDy = details.additional_info;
561
+ _this.oMsP = details.name;
562
+ _this.dkks = details.additional_info;
561
563
  } catch (error) {
562
564
  return false;
563
565
  }
@@ -568,14 +570,14 @@
568
570
  var Timebounds = /*#__PURE__*/_createClass(function Timebounds() {
569
571
  var _this = this;
570
572
  _classCallCheck(this, Timebounds);
571
- _defineProperty(this, "serE", 0);
572
- _defineProperty(this, "DOnR", 0);
573
+ _defineProperty(this, "Awql", 0);
574
+ _defineProperty(this, "AYIU", 0);
573
575
  _defineProperty(this, "parse", function () {
574
576
  var timeBounds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
575
577
  try {
576
- _this.serE = Number(timeBounds.lower);
577
- _this.DOnR = Number(timeBounds.upper);
578
- if (isNaN(_this.serE) || isNaN(_this.DOnR)) {
578
+ _this.Awql = Number(timeBounds.lower);
579
+ _this.AYIU = Number(timeBounds.upper);
580
+ if (isNaN(_this.Awql) || isNaN(_this.AYIU)) {
579
581
  return false;
580
582
  }
581
583
  } catch (error) {
@@ -588,17 +590,17 @@
588
590
  var PreCondition = /*#__PURE__*/_createClass(function PreCondition() {
589
591
  var _this = this;
590
592
  _classCallCheck(this, PreCondition);
591
- _defineProperty(this, "wxRT", 0);
592
- _defineProperty(this, "tlgv", "");
593
- _defineProperty(this, "kimo", "");
594
- _defineProperty(this, "xCDb", new Details());
595
- _defineProperty(this, "uvCn", new Timebounds());
593
+ _defineProperty(this, "zyyu", 0);
594
+ _defineProperty(this, "NQWX", "");
595
+ _defineProperty(this, "adGH", "");
596
+ _defineProperty(this, "upqd", new Details());
597
+ _defineProperty(this, "NkDv", new Timebounds());
596
598
  _defineProperty(this, "parse", function () {
597
599
  var precondition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
598
600
  try {
599
- _this.tlgv = precondition.event_type;
600
- _this.kimo = precondition.activity;
601
- return _this.xCDb.parse(precondition.details) && _this.uvCn.parse(precondition.time_bounds);
601
+ _this.NQWX = precondition.event_type;
602
+ _this.adGH = precondition.activity;
603
+ return _this.upqd.parse(precondition.details) && _this.NkDv.parse(precondition.time_bounds);
602
604
  } catch (error) {
603
605
  return false;
604
606
  }
@@ -609,29 +611,29 @@
609
611
  var Condition = /*#__PURE__*/_createClass(function Condition() {
610
612
  var _this = this;
611
613
  _classCallCheck(this, Condition);
612
- _defineProperty(this, "wxRT", 0);
613
- _defineProperty(this, "eAoS", -1);
614
- _defineProperty(this, "eeAf", 0);
615
- _defineProperty(this, "FOfl", "");
616
- _defineProperty(this, "kimo", "");
617
- _defineProperty(this, "tlgv", "");
618
- _defineProperty(this, "uvCn", new Timebounds());
619
- _defineProperty(this, "xCDb", new Details());
620
- _defineProperty(this, "woYX", new PreCondition());
621
- _defineProperty(this, "zzXl", "AND");
622
- _defineProperty(this, "Ziyx", false);
623
- _defineProperty(this, "Lecg", void 0);
614
+ _defineProperty(this, "zyyu", 0);
615
+ _defineProperty(this, "wiTa", -1);
616
+ _defineProperty(this, "xHSD", 0);
617
+ _defineProperty(this, "hNtx", "");
618
+ _defineProperty(this, "adGH", "");
619
+ _defineProperty(this, "NQWX", "");
620
+ _defineProperty(this, "NkDv", new Timebounds());
621
+ _defineProperty(this, "upqd", new Details());
622
+ _defineProperty(this, "JUGy", new PreCondition());
623
+ _defineProperty(this, "SaTl", "AND");
624
+ _defineProperty(this, "RWTK", false);
625
+ _defineProperty(this, "FQLi", void 0);
624
626
  _defineProperty(this, "parse", function () {
625
627
  var condition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
626
628
  try {
627
- _this.eAoS = condition.sequence;
628
- _this.eeAf = condition.count_config.count;
629
- _this.FOfl = condition.count_config.operator;
630
- _this.kimo = condition.activity;
631
- _this.tlgv = condition.event_type;
632
- _this.zzXl = condition.combine_operator;
633
- _this.Lecg = condition.type;
634
- return _this.xCDb.parse(condition.details) && _this.woYX.parse(condition.trigger) && _this.uvCn.parse(condition.time_bounds);
629
+ _this.wiTa = condition.sequence;
630
+ _this.xHSD = condition.count_config.count;
631
+ _this.hNtx = condition.count_config.operator;
632
+ _this.adGH = condition.activity;
633
+ _this.NQWX = condition.event_type;
634
+ _this.SaTl = condition.combine_operator;
635
+ _this.FQLi = condition.type;
636
+ return _this.upqd.parse(condition.details) && _this.JUGy.parse(condition.trigger) && _this.NkDv.parse(condition.time_bounds);
635
637
  } catch (error) {
636
638
  Logger$3.error(error);
637
639
  return false;
@@ -643,19 +645,19 @@
643
645
  var GoalEvent = /*#__PURE__*/_createClass(function GoalEvent() {
644
646
  var _this = this;
645
647
  _classCallCheck(this, GoalEvent);
646
- _defineProperty(this, "eeAf", 0);
647
- _defineProperty(this, "FOfl", "");
648
- _defineProperty(this, "tlgv", "");
649
- _defineProperty(this, "uvCn", new Timebounds());
650
- _defineProperty(this, "xCDb", new Details());
651
- _defineProperty(this, "zzXl", "AND");
648
+ _defineProperty(this, "xHSD", 0);
649
+ _defineProperty(this, "hNtx", "");
650
+ _defineProperty(this, "NQWX", "");
651
+ _defineProperty(this, "NkDv", new Timebounds());
652
+ _defineProperty(this, "upqd", new Details());
653
+ _defineProperty(this, "SaTl", "AND");
652
654
  _defineProperty(this, "parse", function (data) {
653
655
  try {
654
- _this.eeAf = data.count_config.count;
655
- _this.FOfl = data.count_config.operator;
656
- _this.tlgv = data.event_type;
657
- _this.zzXl = data.combine_operator;
658
- return _this.xCDb.parse(data.details) && _this.uvCn.parse(data.time_bounds);
656
+ _this.xHSD = data.count_config.count;
657
+ _this.hNtx = data.count_config.operator;
658
+ _this.NQWX = data.event_type;
659
+ _this.SaTl = data.combine_operator;
660
+ return _this.upqd.parse(data.details) && _this.NkDv.parse(data.time_bounds);
659
661
  } catch (error) {
660
662
  Logger$4.error(error);
661
663
  return false;
@@ -669,21 +671,21 @@
669
671
  function ConditionValidator() {
670
672
  var _this = this;
671
673
  _classCallCheck(this, ConditionValidator);
672
- _defineProperty(this, "Purf", 0);
673
- _defineProperty(this, "jUXZ", "");
674
- _defineProperty(this, "UHEM", new Condition());
675
- _defineProperty(this, "VHgA", new GoalEvent());
676
- _defineProperty(this, "dwoA", false);
677
- _defineProperty(this, "KWyt", false);
678
- _defineProperty(this, "OOsw", 0);
679
- _defineProperty(this, "zzXl", "AND");
680
- _defineProperty(this, "bXqj", "OR");
681
- _defineProperty(this, "aJVI", -1);
682
- _defineProperty(this, "moyq", []);
683
- _defineProperty(this, "FJhx", {});
684
- _defineProperty(this, "bNNf", false);
674
+ _defineProperty(this, "qHqZ", 0);
675
+ _defineProperty(this, "HaKf", "");
676
+ _defineProperty(this, "zaHz", new Condition());
677
+ _defineProperty(this, "NeXy", new GoalEvent());
678
+ _defineProperty(this, "vlIP", false);
679
+ _defineProperty(this, "qTuv", false);
680
+ _defineProperty(this, "qtnm", 0);
681
+ _defineProperty(this, "SaTl", "AND");
682
+ _defineProperty(this, "iFER", "OR");
683
+ _defineProperty(this, "inbh", -1);
684
+ _defineProperty(this, "ityk", []);
685
+ _defineProperty(this, "zrSw", {});
686
+ _defineProperty(this, "OeeL", false);
685
687
  /**
686
- * If respectSequence is true, don't auto-PaJS to events except for the condition whose index is 0
688
+ * If respectSequence is true, don't auto-WNgJ to events except for the condition whose index is 0
687
689
  *
688
690
  * @param condition
689
691
  * @param type
@@ -699,191 +701,191 @@
699
701
  var respectSequence = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
700
702
  var noKpiArray = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
701
703
  var flag = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : "";
702
- _this.jUXZ = id;
703
- _this.OOsw = index;
704
- _this.moyq = noKpiArray;
704
+ _this.HaKf = id;
705
+ _this.qtnm = index;
706
+ _this.ityk = noKpiArray;
705
707
  if (flag !== "termination" || flag === "") {
706
- var result = _this.UHEM.parse(condition);
708
+ var result = _this.zaHz.parse(condition);
707
709
  if (result) {
708
- _this.zzXl = _this.UHEM.zzXl;
710
+ _this.SaTl = _this.zaHz.SaTl;
709
711
 
710
712
  // FIXME: Why this code is written? Don't see any usecase
711
- if (_this.UHEM.Ziyx) {
712
- var eventName = _this.UHEM.xCDb.figp;
713
+ if (_this.zaHz.RWTK) {
714
+ var eventName = _this.zaHz.upqd.oMsP;
713
715
  if (eventName === "APX_PAGE_OPENED") {
714
- eventName = _this.UHEM.xCDb.rXDy["navigation_id"];
715
- eventName = isDefined(eventName) ? eventName : _this.UHEM.xCDb.figp;
716
+ eventName = _this.zaHz.upqd.dkks["navigation_id"];
717
+ eventName = isDefined(eventName) ? eventName : _this.zaHz.upqd.oMsP;
716
718
  }
717
- _this.aJVI = Apxor.getController().getEventCount(eventName);
718
- var count = _this.UHEM.eeAf;
719
- var operator = _this.UHEM.FOfl;
720
- _this.KWyt = _this.ZQVH(_this.aJVI - 1, count, operator, false);
721
- _this.dwoA = _this.KWyt;
722
- // If the condition is already satisfied and if it is page view, no need to PaJS
719
+ _this.inbh = Apxor.getController().getEventCount(eventName);
720
+ var count = _this.zaHz.xHSD;
721
+ var operator = _this.zaHz.hNtx;
722
+ _this.qTuv = _this.vOLn(_this.inbh - 1, count, operator, false);
723
+ _this.vlIP = _this.qTuv;
724
+ // If the condition is already satisfied and if it is page view, no need to WNgJ
723
725
  // This only applies for NAVIGATION_EVENTS
724
- if (_this.KWyt && _this.UHEM.xCDb.figp === "APX_PAGE_OPENED") {
726
+ if (_this.qTuv && _this.zaHz.upqd.oMsP === "APX_PAGE_OPENED") {
725
727
  return true;
726
728
  }
727
729
  }
728
730
  if (!respectSequence || index === 0) {
729
- _this.PaJS();
731
+ _this.WNgJ();
730
732
  }
731
733
  return true;
732
734
  }
733
735
  } else {
734
- var _result = _this.VHgA.parse(condition);
735
- _this.bXqj = _this.VHgA.zzXl;
736
- _this.gUva();
736
+ var _result = _this.NeXy.parse(condition);
737
+ _this.iFER = _this.NeXy.SaTl;
738
+ _this.EHwr();
737
739
  return true;
738
740
  }
739
741
  return false;
740
742
  });
741
- _defineProperty(this, "PaJS", function () {
743
+ _defineProperty(this, "WNgJ", function () {
742
744
  var _window$ApxorRTM;
743
- var condition = _this.UHEM;
744
- var precondition = condition.woYX;
745
+ var condition = _this.zaHz;
746
+ var precondition = condition.JUGy;
745
747
  var ceInstance = CE.getInstance();
746
- if (precondition.tlgv === "app_start") {
747
- _this.dwoA = true;
748
- ceInstance.registerForEvent(generateKey(condition.tlgv) + "___" + condition.xCDb.figp, _this.YgWO);
748
+ if (precondition.NQWX === "app_start") {
749
+ _this.vlIP = true;
750
+ ceInstance.registerForEvent(generateKey(condition.NQWX) + "___" + condition.upqd.oMsP, _this.KgGJ);
749
751
  } else {
750
- ceInstance.registerForEvent(generateKey(condition.tlgv) + "___" + precondition.xCDb.figp, _this.YgWO);
752
+ ceInstance.registerForEvent(generateKey(condition.NQWX) + "___" + precondition.upqd.oMsP, _this.KgGJ);
751
753
  }
752
- if ((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.badgesLists.includes(_this.jUXZ)) {
753
- ceInstance.registerForEvent(generateKey(condition.tlgv) + "___" + "apxor-badge-container-".concat("-".concat(_this.jUXZ).replaceAll(" ", "").replace(/[^\w\s]/gi, "")), _this.YgWO);
754
+ if ((_window$ApxorRTM = window.ApxorRTM) !== null && _window$ApxorRTM !== void 0 && _window$ApxorRTM.badgesLists.includes(_this.HaKf)) {
755
+ ceInstance.registerForEvent(generateKey(condition.NQWX) + "___" + "apxor-badge-container-".concat("-".concat(_this.HaKf).replaceAll(" ", "").replace(/[^\w\s]/gi, "")), _this.KgGJ);
754
756
  }
755
757
  });
756
- _defineProperty(this, "gUva", function () {
757
- var condition = _this.VHgA;
758
+ _defineProperty(this, "EHwr", function () {
759
+ var condition = _this.NeXy;
758
760
  var ceInstance = CE.getInstance();
759
- _this.dwoA = true;
760
- ceInstance.registerForEvent(generateKey(condition.tlgv) + "___" + condition.xCDb.figp, _this.cQYJ);
761
+ _this.vlIP = true;
762
+ ceInstance.registerForEvent(generateKey(condition.NQWX) + "___" + condition.upqd.oMsP, _this.JdIY);
761
763
  });
762
- _defineProperty(this, "LcXc", function (type, name, time, additionalInfo) {
763
- var _this$UHEM;
764
+ _defineProperty(this, "ZJDs", function (type, name, time, additionalInfo) {
765
+ var _this$zaHz;
764
766
  var eventTime = Date.now();
765
- var time_differnce = (eventTime - _this.FJhx[name]) / 1000;
766
- var time_fromConfig = ((_this$UHEM = _this.UHEM) === null || _this$UHEM === void 0 || (_this$UHEM = _this$UHEM.xCDb) === null || _this$UHEM === void 0 || (_this$UHEM = _this$UHEM.rXDy) === null || _this$UHEM === void 0 ? void 0 : _this$UHEM.time) / 1000;
767
+ var time_differnce = (eventTime - _this.zrSw[name]) / 1000;
768
+ var time_fromConfig = ((_this$zaHz = _this.zaHz) === null || _this$zaHz === void 0 || (_this$zaHz = _this$zaHz.upqd) === null || _this$zaHz === void 0 || (_this$zaHz = _this$zaHz.dkks) === null || _this$zaHz === void 0 ? void 0 : _this$zaHz.time) / 1000;
767
769
  if (time_fromConfig > time_differnce) {
768
770
  _this._displayCampaign(time);
769
771
  }
770
772
  });
771
- _defineProperty(this, "gLck", function (type, name, time, additionalInfo) {
773
+ _defineProperty(this, "oBOr", function (type, name, time, additionalInfo) {
772
774
  var _this$_condition2, _this$_condition3;
773
- _this.bNNf = true;
775
+ _this.OeeL = true;
774
776
  var currentTime = Date.now();
775
- var eventName = (_this$_condition2 = _this.UHEM) === null || _this$_condition2 === void 0 || (_this$_condition2 = _this$_condition2.woYX) === null || _this$_condition2 === void 0 ? void 0 : _this$_condition2.xCDb.figp;
776
- var eventTime = _this.FJhx[eventName];
777
+ var eventName = (_this$_condition2 = _this.zaHz) === null || _this$_condition2 === void 0 || (_this$_condition2 = _this$_condition2.JUGy) === null || _this$_condition2 === void 0 ? void 0 : _this$_condition2.upqd.oMsP;
778
+ var eventTime = _this.zrSw[eventName];
777
779
  var time_differnce = (currentTime - eventTime) / 1000;
778
- var time_fromConfig = (_this$_condition3 = _this.UHEM) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.xCDb) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.rXDy) === null || _this$_condition3 === void 0 ? void 0 : _this$_condition3.time;
780
+ var time_fromConfig = (_this$_condition3 = _this.zaHz) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.upqd) === null || _this$_condition3 === void 0 || (_this$_condition3 = _this$_condition3.dkks) === null || _this$_condition3 === void 0 ? void 0 : _this$_condition3.time;
779
781
  time_fromConfig = time_fromConfig / 1000;
780
782
  if (time_fromConfig > time_differnce) {
781
783
  _this._displayCampaign(time);
782
784
  }
783
785
  //unregister the event
784
786
  });
785
- _defineProperty(this, "YgWO", function (type, name, time, additionalInfo) {
787
+ _defineProperty(this, "KgGJ", function (type, name, time, additionalInfo) {
786
788
  var _window$ApxorRTM2, _window$ApxorRTM3;
787
789
  var ceInstance = CE.getInstance();
788
- if (!_this.dwoA) {
790
+ if (!_this.vlIP) {
789
791
  // Validate Precondition
790
- _this.dwoA = _this.uXGd(type, name, time, additionalInfo);
791
- if (_this.dwoA) {
792
- var condition = _this.UHEM;
793
- var precondition = condition.woYX;
794
- precondition.wxRT = time;
792
+ _this.vlIP = _this.fCmr(type, name, time, additionalInfo);
793
+ if (_this.vlIP) {
794
+ var condition = _this.zaHz;
795
+ var precondition = condition.JUGy;
796
+ precondition.zyyu = time;
795
797
  //events will be registred by its type activity event_type: "activity_time"
796
- if ((condition === null || condition === void 0 ? void 0 : condition.tlgv) === "activity_time") {
797
- var UHEM$xCDb, UHEM$_details2, UHEM$_details3;
798
- var event_time = condition === null || condition === void 0 || (UHEM$xCDb = condition.xCDb) === null || UHEM$xCDb === void 0 || (UHEM$xCDb = UHEM$xCDb.rXDy) === null || UHEM$xCDb === void 0 ? void 0 : UHEM$xCDb.time;
799
- if ((condition === null || condition === void 0 || (UHEM$_details2 = condition.xCDb) === null || UHEM$_details2 === void 0 || (UHEM$_details2 = UHEM$_details2.rXDy) === null || UHEM$_details2 === void 0 ? void 0 : UHEM$_details2.nkpi.length) > 0) {
798
+ if ((condition === null || condition === void 0 ? void 0 : condition.NQWX) === "activity_time") {
799
+ var zaHz$upqd, zaHz$_details2, zaHz$_details3;
800
+ var event_time = condition === null || condition === void 0 || (zaHz$upqd = condition.upqd) === null || zaHz$upqd === void 0 || (zaHz$upqd = zaHz$upqd.dkks) === null || zaHz$upqd === void 0 ? void 0 : zaHz$upqd.time;
801
+ if ((condition === null || condition === void 0 || (zaHz$_details2 = condition.upqd) === null || zaHz$_details2 === void 0 || (zaHz$_details2 = zaHz$_details2.dkks) === null || zaHz$_details2 === void 0 ? void 0 : zaHz$_details2.nkpi.length) > 0) {
800
802
  setTimeout(function () {
801
- if (!_this.bNNf) {
802
- _this.KWyt = true;
803
- if (_this.KWyt) {
804
- _this.Purf += 1;
805
- _this.KWyt = _this.ZQVH(_this.Purf, _this.UHEM.eeAf, _this.UHEM.FOfl);
806
- if (_this.KWyt) {
807
- _this.UHEM.wxRT = time;
808
- ceInstance.validate(_this.jUXZ, _this.OOsw);
803
+ if (!_this.OeeL) {
804
+ _this.qTuv = true;
805
+ if (_this.qTuv) {
806
+ _this.qHqZ += 1;
807
+ _this.qTuv = _this.vOLn(_this.qHqZ, _this.zaHz.xHSD, _this.zaHz.hNtx);
808
+ if (_this.qTuv) {
809
+ _this.zaHz.zyyu = time;
810
+ ceInstance.validate(_this.HaKf, _this.qtnm);
809
811
  }
810
812
  }
811
813
  }
812
- condition.xCDb.rXDy.nkpi.map(function (nokpi) {
813
- ceInstance.unregisterFromEvent(toUpperCase(condition.xCDb.rXDy.et) + "___" + nokpi, _this);
814
+ condition.upqd.dkks.nkpi.map(function (nokpi) {
815
+ ceInstance.unregisterFromEvent(toUpperCase(condition.upqd.dkks.et) + "___" + nokpi, _this);
814
816
  });
815
817
  }, event_time);
816
- condition.xCDb.rXDy.nkpi.map(function (nokpi) {
817
- ceInstance.registerForEvent(toUpperCase(condition.xCDb.rXDy.et) + "___" + nokpi, _this.gLck);
818
+ condition.upqd.dkks.nkpi.map(function (nokpi) {
819
+ ceInstance.registerForEvent(toUpperCase(condition.upqd.dkks.et) + "___" + nokpi, _this.oBOr);
818
820
  });
819
821
  }
820
822
  //it is for unregistering the events did case after completing the time imit
821
- if ((condition === null || condition === void 0 || (UHEM$_details3 = condition.xCDb) === null || UHEM$_details3 === void 0 || (UHEM$_details3 = UHEM$_details3.rXDy) === null || UHEM$_details3 === void 0 ? void 0 : UHEM$_details3.kpi.length) > 0) {
823
+ if ((condition === null || condition === void 0 || (zaHz$_details3 = condition.upqd) === null || zaHz$_details3 === void 0 || (zaHz$_details3 = zaHz$_details3.dkks) === null || zaHz$_details3 === void 0 ? void 0 : zaHz$_details3.kpi.length) > 0) {
822
824
  setTimeout(function () {
823
- condition.xCDb.rXDy.kpi.map(function (kpi) {
824
- ceInstance.unregisterFromEvent(toUpperCase(condition.xCDb.rXDy.et) + "___" + kpi, _this);
825
+ condition.upqd.dkks.kpi.map(function (kpi) {
826
+ ceInstance.unregisterFromEvent(toUpperCase(condition.upqd.dkks.et) + "___" + kpi, _this);
825
827
  });
826
828
  }, event_time);
827
- condition.xCDb.rXDy.kpi.map(function (kpi) {
828
- if (kpi === condition.woYX.xCDb.figp) {
829
+ condition.upqd.dkks.kpi.map(function (kpi) {
830
+ if (kpi === condition.JUGy.upqd.oMsP) {
829
831
  //unregister the previous event
830
- ceInstance.unregisterFromEvent(generateKey(precondition.tlgv) + "___" + precondition.xCDb.figp, _this);
831
- ceInstance.registerForEvent(toUpperCase(condition.xCDb.rXDy.et) + "___" + kpi, _this.LcXc);
832
+ ceInstance.unregisterFromEvent(generateKey(precondition.NQWX) + "___" + precondition.upqd.oMsP, _this);
833
+ ceInstance.registerForEvent(toUpperCase(condition.upqd.dkks.et) + "___" + kpi, _this.ZJDs);
832
834
  } else {
833
- ceInstance.registerForEvent(toUpperCase(condition.xCDb.rXDy.et) + "___" + kpi, _this.gLck);
835
+ ceInstance.registerForEvent(toUpperCase(condition.upqd.dkks.et) + "___" + kpi, _this.oBOr);
834
836
  }
835
837
  });
836
838
  }
837
839
  } else {
838
- ceInstance.unregisterFromEvent(generateKey(precondition.tlgv) + "___" + precondition.xCDb.figp, _this);
839
- ceInstance.registerForEvent(generateKey(condition.tlgv) + "___" + condition.xCDb.figp, _this);
840
+ ceInstance.unregisterFromEvent(generateKey(precondition.NQWX) + "___" + precondition.upqd.oMsP, _this);
841
+ ceInstance.registerForEvent(generateKey(condition.NQWX) + "___" + condition.upqd.oMsP, _this);
840
842
  }
841
- _this.FJhx[name] = Date.now();
843
+ _this.zrSw[name] = Date.now();
842
844
  }
843
845
  return;
844
846
  }
845
- 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.jUXZ) && Apxor.getController().isBadgeTriggerSatisfied(_this.jUXZ)) {
846
- _this.KWyt = true;
847
- _this.UHEM.wxRT = time;
848
- ceInstance.validate(_this.jUXZ, _this.OOsw);
847
+ 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.HaKf) && Apxor.getController().isBadgeTriggerSatisfied(_this.HaKf)) {
848
+ _this.qTuv = true;
849
+ _this.zaHz.zyyu = time;
850
+ ceInstance.validate(_this.HaKf, _this.qtnm);
849
851
  return;
850
852
  }
851
853
 
852
854
  // Validate Condition
853
- var validationStatus = generateKey(_this.UHEM.tlgv) === type && _this.tBEr(time - _this.UHEM.woYX.wxRT, _this.UHEM.uvCn) && _this.UHEM.xCDb.figp === name && _this.BSUO(_this.UHEM.xCDb.rXDy, additionalInfo);
855
+ var validationStatus = generateKey(_this.zaHz.NQWX) === type && _this.Aqjf(time - _this.zaHz.JUGy.zyyu, _this.zaHz.NkDv) && _this.zaHz.upqd.oMsP === name && _this.hyAp(_this.zaHz.upqd.dkks, additionalInfo);
854
856
  if (validationStatus) {
855
- _this.Purf += 1;
856
- _this.KWyt = _this.ZQVH(_this.Purf, _this.UHEM.eeAf, _this.UHEM.FOfl);
857
- if (_this.KWyt) {
858
- _this.UHEM.wxRT = time;
859
- ceInstance.validate(_this.jUXZ, _this.OOsw);
857
+ _this.qHqZ += 1;
858
+ _this.qTuv = _this.vOLn(_this.qHqZ, _this.zaHz.xHSD, _this.zaHz.hNtx);
859
+ if (_this.qTuv) {
860
+ _this.zaHz.zyyu = time;
861
+ ceInstance.validate(_this.HaKf, _this.qtnm);
860
862
  }
861
863
  }
862
864
  });
863
- _defineProperty(this, "cQYJ", function (type, name, time, additionalInfo) {
865
+ _defineProperty(this, "JdIY", function (type, name, time, additionalInfo) {
864
866
  var ceInstance = CE.getInstance();
865
- var validationStatus = generateKey(_this.VHgA.tlgv) === type && _this.tBEr(time, _this.VHgA.uvCn) && _this.VHgA.xCDb.figp === name && _this.BSUO(_this.VHgA.xCDb.rXDy, additionalInfo);
867
+ var validationStatus = generateKey(_this.NeXy.NQWX) === type && _this.Aqjf(time, _this.NeXy.NkDv) && _this.NeXy.upqd.oMsP === name && _this.hyAp(_this.NeXy.upqd.dkks, additionalInfo);
866
868
  if (validationStatus) {
867
- _this.Purf += 1;
868
- _this.KWyt = _this.ZQVH(_this.Purf, _this.VHgA.eeAf, _this.VHgA.FOfl);
869
- if (_this.KWyt) {
870
- _this.VHgA.wxRT = time;
871
- ceInstance.validateForTermination(_this.jUXZ, _this.OOsw);
869
+ _this.qHqZ += 1;
870
+ _this.qTuv = _this.vOLn(_this.qHqZ, _this.NeXy.xHSD, _this.NeXy.hNtx);
871
+ if (_this.qTuv) {
872
+ _this.NeXy.zyyu = time;
873
+ ceInstance.validateForTermination(_this.HaKf, _this.qtnm);
872
874
  }
873
875
  }
874
876
  });
875
- _defineProperty(this, "uXGd", function (type, name, time, additionalInfo) {
876
- var precondition = _this.UHEM.woYX;
877
- return generateKey(precondition.tlgv) === type && precondition.xCDb.figp === name && _this.tBEr(time, precondition.uvCn) && _this.BSUO(precondition.xCDb.rXDy, additionalInfo);
877
+ _defineProperty(this, "fCmr", function (type, name, time, additionalInfo) {
878
+ var precondition = _this.zaHz.JUGy;
879
+ return generateKey(precondition.NQWX) === type && precondition.upqd.oMsP === name && _this.Aqjf(time, precondition.NkDv) && _this.hyAp(precondition.upqd.dkks, additionalInfo);
878
880
  });
879
- _defineProperty(this, "tBEr", function (time, timeBounds) {
881
+ _defineProperty(this, "Aqjf", function (time, timeBounds) {
880
882
  var currentTime = Math.ceil(time);
881
- return currentTime > timeBounds.serE && currentTime < timeBounds.DOnR;
883
+ return currentTime > timeBounds.Awql && currentTime < timeBounds.AYIU;
882
884
  });
883
- _defineProperty(this, "ZQVH", function (current, required, operator) {
885
+ _defineProperty(this, "vOLn", function (current, required, operator) {
884
886
  var checkOld = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
885
- if (checkOld && _this.UHEM.Ziyx) {
886
- current = current + _this.aJVI;
887
+ if (checkOld && _this.zaHz.RWTK) {
888
+ current = current + _this.inbh;
887
889
  }
888
890
  switch (operator) {
889
891
  case "EQ":
@@ -900,11 +902,11 @@
900
902
  return false;
901
903
  }
902
904
  });
903
- _defineProperty(this, "BSUO", function (expected, received) {
905
+ _defineProperty(this, "hyAp", function (expected, received) {
904
906
  var status = true;
905
907
  try {
906
908
  var _loop = function _loop() {
907
- if (!received[item] || status === false) {
909
+ if (status === false) {
908
910
  return {
909
911
  v: false
910
912
  };
@@ -917,6 +919,17 @@
917
919
  expectedValue = expected[item].val;
918
920
  } else if (type === "l" || type === "f") {
919
921
  expectedValue = parseFloat(expected[item].val);
922
+ } else if (type === "b") {
923
+ switch (expected[item].val) {
924
+ case "true":
925
+ expectedValue = true;
926
+ break;
927
+ case "false":
928
+ expectedValue = false;
929
+ break;
930
+ default:
931
+ expectedValue = expected[item].val;
932
+ }
920
933
  }
921
934
  var loggedValues = [];
922
935
  if (Array.isArray(received[item])) {
@@ -925,11 +938,23 @@
925
938
  loggedValues = [received[item]];
926
939
  }
927
940
  var match = loggedValues.some(function (loggedValue) {
928
- return Pflq(loggedValue, expectedValue, operator);
929
- });
941
+ if (type === "s") {
942
+ loggedValue = "".concat(loggedValue);
943
+ } else if (type === "l") {
944
+ loggedValue = parseInt(loggedValue);
945
+ } else if (type === "f") {
946
+ loggedValue = parseFloat(loggedValue);
947
+ } else if (type === "b") {
948
+ loggedValue = !!loggedValue;
949
+ }
950
+ return zJVe(loggedValue, expectedValue, operator);
951
+ }
952
+ // zJVe(loggedValue, expectedValue, operator)
953
+ );
954
+
930
955
  status = status && match;
931
956
  } else {
932
- status = status && Pflq(received[item], expected[item], "EQ");
957
+ status = status && zJVe(received[item], expected[item], "EQ");
933
958
  }
934
959
  },
935
960
  _ret;
@@ -948,13 +973,13 @@
948
973
  key: "_displayCampaign",
949
974
  value: function _displayCampaign(time) {
950
975
  var ceInstance = CE.getInstance();
951
- this.KWyt = true;
952
- if (this.KWyt) {
953
- this.Purf += 1;
954
- this.KWyt = this.ZQVH(this.Purf, this.UHEM.eeAf, this.UHEM.FOfl);
955
- if (this.KWyt) {
956
- this.UHEM.wxRT = time;
957
- ceInstance.validate(this.jUXZ, this.OOsw);
976
+ this.qTuv = true;
977
+ if (this.qTuv) {
978
+ this.qHqZ += 1;
979
+ this.qTuv = this.vOLn(this.qHqZ, this.zaHz.xHSD, this.zaHz.hNtx);
980
+ if (this.qTuv) {
981
+ this.zaHz.zyyu = time;
982
+ ceInstance.validate(this.HaKf, this.qtnm);
958
983
  }
959
984
  }
960
985
  }
@@ -972,11 +997,11 @@
972
997
  var OverallConfig = /*#__PURE__*/_createClass(function OverallConfig() {
973
998
  var _this = this;
974
999
  _classCallCheck(this, OverallConfig);
975
- _defineProperty(this, "zlRP", []);
1000
+ _defineProperty(this, "FMqv", []);
976
1001
  _defineProperty(this, "_ret_day", {});
977
- _defineProperty(this, "UUEf", {});
978
- _defineProperty(this, "jxTr", false);
979
- _defineProperty(this, "kPcF", false);
1002
+ _defineProperty(this, "gFsE", {});
1003
+ _defineProperty(this, "gBeH", false);
1004
+ _defineProperty(this, "sPne", false);
980
1005
  _defineProperty(this, "retainedDaysValidated", true);
981
1006
  _defineProperty(this, "retainedSessionValidated", true);
982
1007
  _defineProperty(this, "eventDoneInLT", false);
@@ -984,11 +1009,11 @@
984
1009
  _defineProperty(this, "parse", function () {
985
1010
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
986
1011
  try {
987
- _this.zlRP = config.overall_cfg.events;
1012
+ _this.FMqv = config.overall_cfg.events;
988
1013
  _this._ret_day = config.overall_cfg.ret_day;
989
- _this.UUEf = config.overall_cfg.session;
990
- _this.jxTr = config.overall_cfg.toggleRetDay;
991
- _this.kPcF = config.overall_cfg.toggleSession;
1014
+ _this.gFsE = config.overall_cfg.session;
1015
+ _this.gBeH = config.overall_cfg.toggleRetDay;
1016
+ _this.sPne = config.overall_cfg.toggleSession;
992
1017
  } catch (error) {
993
1018
  Logger$6.error(error);
994
1019
  return false;
@@ -998,11 +1023,11 @@
998
1023
  _defineProperty(this, "validate", function () {
999
1024
  var retainedDays = parseInt(Apxor.getController().getFromStorage(APX_RETAINED_DAYS));
1000
1025
  var retainedSession = parseInt(Apxor.getController().getFromStorage(APX_RETAINED_SESSIONS));
1001
- if (_this.jxTr && !isNaN(retainedDays) && !(retainedDays >= _this._ret_day.from && retainedDays <= _this._ret_day.to)) {
1026
+ if (_this.gBeH && !isNaN(retainedDays) && !(retainedDays >= _this._ret_day.from && retainedDays <= _this._ret_day.to)) {
1002
1027
  _this.retainedDaysValidated = false;
1003
1028
  return false;
1004
1029
  }
1005
- if (_this.kPcF && !isNaN(retainedSession) && !(retainedSession >= _this.UUEf.from && retainedSession <= _this.UUEf.to)) {
1030
+ if (_this.sPne && !isNaN(retainedSession) && !(retainedSession >= _this.gFsE.from && retainedSession <= _this.gFsE.to)) {
1006
1031
  _this.retainedSessionValidated = false;
1007
1032
  return false;
1008
1033
  }
@@ -1011,8 +1036,8 @@
1011
1036
  var data = Apxor.getController().getFromStorage("_apx_lt_count");
1012
1037
  var siteid = Apxor.getSiteId();
1013
1038
  var LtCountObjDecoded = JSON.parse(new TextDecoder().decode(stringToArrayBuffer(decode(siteid, data))));
1014
- for (var i = 0; i < _this.zlRP.length; i++) {
1015
- var evName = _this.zlRP[i].name.replace("'", "").replace("’", "");
1039
+ for (var i = 0; i < _this.FMqv.length; i++) {
1040
+ var evName = _this.FMqv[i].name.replace("'", "").replace("’", "");
1016
1041
  if (LtCountObjDecoded[evName]) {
1017
1042
  _this.eventDoneInLT = true;
1018
1043
  return false;
@@ -1029,14 +1054,14 @@
1029
1054
  var Attributes = /*#__PURE__*/_createClass(function Attributes() {
1030
1055
  var _this = this;
1031
1056
  _classCallCheck(this, Attributes);
1032
- _defineProperty(this, "KWLx", []);
1033
- _defineProperty(this, "YkGb", []);
1057
+ _defineProperty(this, "PrKM", []);
1058
+ _defineProperty(this, "vvVn", []);
1034
1059
  _defineProperty(this, "parse", function () {
1035
1060
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1036
1061
  try {
1037
- _this.KWLx = config.attributes.user;
1038
- _this.YkGb = config.attributes.session;
1039
- if (!Array.isArray(_this.KWLx) || !Array.isArray(_this.YkGb)) {
1062
+ _this.PrKM = config.attributes.user;
1063
+ _this.vvVn = config.attributes.session;
1064
+ if (!Array.isArray(_this.PrKM) || !Array.isArray(_this.vvVn)) {
1040
1065
  Logger$7.error("No attributes");
1041
1066
  return false;
1042
1067
  }
@@ -1047,9 +1072,9 @@
1047
1072
  return true;
1048
1073
  });
1049
1074
  _defineProperty(this, "validate", function (user, session) {
1050
- return _this.hTqd(user, _this.KWLx) && _this.hTqd(session, _this.YkGb);
1075
+ return _this.MTJF(user, _this.PrKM) && _this.MTJF(session, _this.vvVn);
1051
1076
  });
1052
- _defineProperty(this, "hTqd", function (attributes, expected) {
1077
+ _defineProperty(this, "MTJF", function (attributes, expected) {
1053
1078
  var length = expected.length;
1054
1079
  var status = true;
1055
1080
  try {
@@ -1079,7 +1104,7 @@
1079
1104
  }
1080
1105
  var match = loggedValues.some(function (loggedValue) {
1081
1106
  return values.some(function (configValue) {
1082
- return Pflq(loggedValue, configValue, operator);
1107
+ return zJVe(loggedValue, configValue, operator);
1083
1108
  });
1084
1109
  });
1085
1110
  status = status && match;
@@ -1103,18 +1128,18 @@
1103
1128
  var TimeBasedTermination = /*#__PURE__*/_createClass(function TimeBasedTermination() {
1104
1129
  var _this = this;
1105
1130
  _classCallCheck(this, TimeBasedTermination);
1106
- _defineProperty(this, "sKMB", Apxor.getController());
1131
+ _defineProperty(this, "LUcN", Apxor.getController());
1107
1132
  _defineProperty(this, "type", "");
1108
1133
  _defineProperty(this, "_duration_seconds", 0);
1109
- _defineProperty(this, "EUqu", 1);
1134
+ _defineProperty(this, "XBmy", 1);
1110
1135
  _defineProperty(this, "parse", function (config) {
1111
1136
  try {
1112
1137
  var _config$terminate_inf, _config$terminate_inf2, _config$terminate_inf3;
1113
- _this.Lecg = (_config$terminate_inf = config.terminate_info.time_based) === null || _config$terminate_inf === void 0 ? void 0 : _config$terminate_inf.type;
1138
+ _this.FQLi = (_config$terminate_inf = config.terminate_info.time_based) === null || _config$terminate_inf === void 0 ? void 0 : _config$terminate_inf.type;
1114
1139
  _this._duration_seconds = (_config$terminate_inf2 = config.terminate_info) === null || _config$terminate_inf2 === void 0 ? void 0 : _config$terminate_inf2.time_based.duration_seconds;
1115
- _this.EUqu = (_config$terminate_inf3 = config.terminate_info.time_based) === null || _config$terminate_inf3 === void 0 ? void 0 : _config$terminate_inf3.days;
1116
- if (_this.Pflq(config._id)) {
1117
- _this.sKMB.persistTerminationInfoLocally(config._id);
1140
+ _this.XBmy = (_config$terminate_inf3 = config.terminate_info.time_based) === null || _config$terminate_inf3 === void 0 ? void 0 : _config$terminate_inf3.days;
1141
+ if (_this.zJVe(config._id)) {
1142
+ _this.LUcN.persistTerminationInfoLocally(config._id);
1118
1143
  return false;
1119
1144
  }
1120
1145
  } catch (_unused) {
@@ -1122,16 +1147,16 @@
1122
1147
  }
1123
1148
  return true;
1124
1149
  });
1125
- _defineProperty(this, "Pflq", function (id) {
1150
+ _defineProperty(this, "zJVe", function (id) {
1126
1151
  var _Data$id;
1127
- var Data = JSON.parse(_this.sKMB.getFromStorage(APX_TERMINATION_ID));
1152
+ var Data = JSON.parse(_this.LUcN.getFromStorage(APX_TERMINATION_ID));
1128
1153
  if (!Data[id] || !((_Data$id = Data[id]) !== null && _Data$id !== void 0 && _Data$id.startDate)) return false;
1129
1154
  var startDate = new Date(Data[id].startDate);
1130
1155
  var presentDate = new Date(getDateInMMDDYYYY());
1131
1156
  var diff = parseInt((presentDate - startDate) / (1000 * 60 * 60 * 24), 10);
1132
1157
  var currentTime = _getTime();
1133
- var tgyZ = Data[id].tgyZ;
1134
- return diff === _this.EUqu && currentTime.hours >= tgyZ.hours || diff > _this.EUqu || Data[id].goalAcheived;
1158
+ var iBRX = Data[id].iBRX;
1159
+ return diff === _this.XBmy && currentTime.hours >= iBRX.hours || diff > _this.XBmy || Data[id].goalAcheived;
1135
1160
  });
1136
1161
  });
1137
1162
 
@@ -1140,19 +1165,19 @@
1140
1165
  _classCallCheck(this, TerminationInfo);
1141
1166
  _defineProperty(this, "enable_goal_events", false);
1142
1167
  _defineProperty(this, "attributes", {});
1143
- _defineProperty(this, "GeVn", new Attributes());
1144
- _defineProperty(this, "YOHg", new TimeBasedTermination());
1168
+ _defineProperty(this, "YcaG", new Attributes());
1169
+ _defineProperty(this, "iyKG", new TimeBasedTermination());
1145
1170
  _defineProperty(this, "parse", function () {
1146
1171
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1147
1172
  try {
1148
1173
  var _config$terminate_inf, _config$terminate_inf2, _config$terminate_inf3;
1149
1174
  _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;
1150
- if (_this.enable_time_based && !_this.YOHg.parse(config)) {
1175
+ if (_this.enable_time_based && !_this.iyKG.parse(config)) {
1151
1176
  return false;
1152
1177
  }
1153
1178
  _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;
1154
1179
  _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;
1155
- if (_this.enable_attributes && !_this.GeVn.parse(config.terminate_info)) {
1180
+ if (_this.enable_attributes && !_this.YcaG.parse(config.terminate_info)) {
1156
1181
  return false;
1157
1182
  }
1158
1183
  } catch (error) {
@@ -1162,7 +1187,7 @@
1162
1187
  return true;
1163
1188
  });
1164
1189
  _defineProperty(this, "validate", function (user, session) {
1165
- return _this.GeVn.validate(user, session);
1190
+ return _this.YcaG.validate(user, session);
1166
1191
  });
1167
1192
  });
1168
1193
 
@@ -1170,22 +1195,22 @@
1170
1195
  var ConfigItem = /*#__PURE__*/_createClass(function ConfigItem() {
1171
1196
  var _this = this;
1172
1197
  _classCallCheck(this, ConfigItem);
1173
- _defineProperty(this, "CVRh", []);
1174
- _defineProperty(this, "AHwj", []);
1175
- _defineProperty(this, "jUXZ", "");
1176
- _defineProperty(this, "ByBE", new Meta());
1177
- _defineProperty(this, "bgGW", new Audience());
1178
- _defineProperty(this, "xdhp", new Validity());
1179
- _defineProperty(this, "AIgt", new Frequency());
1180
- _defineProperty(this, "IQFR", new OverallConfig());
1181
- _defineProperty(this, "fgQe", new TerminationInfo());
1182
- _defineProperty(this, "DAMl", false);
1183
- _defineProperty(this, "iODJ", []);
1198
+ _defineProperty(this, "dWwf", []);
1199
+ _defineProperty(this, "OhKQ", []);
1200
+ _defineProperty(this, "HaKf", "");
1201
+ _defineProperty(this, "tEDn", new Meta());
1202
+ _defineProperty(this, "XfZa", new Audience());
1203
+ _defineProperty(this, "cDOC", new Validity());
1204
+ _defineProperty(this, "UQKk", new Frequency());
1205
+ _defineProperty(this, "pRSj", new OverallConfig());
1206
+ _defineProperty(this, "aeXK", new TerminationInfo());
1207
+ _defineProperty(this, "OOUd", false);
1208
+ _defineProperty(this, "FMFC", []);
1184
1209
  _defineProperty(this, "_variant_code", "");
1185
1210
  _defineProperty(this, "parse", function () {
1186
1211
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1187
1212
  try {
1188
- var _this$ByBE$_attr;
1213
+ var _this$tEDn$_attr;
1189
1214
  // If ID is not present, throw it out
1190
1215
  if (!isDefined(config._id)) {
1191
1216
  Logger$8.error("No Id");
@@ -1199,18 +1224,18 @@
1199
1224
  }
1200
1225
 
1201
1226
  // If META, VALIDITY, FREQUENCY and AUDIENCE is not parsed properly, throw it out
1202
- if (!(_this.ByBE.parse(config) && _this.xdhp.parse(config) && _this.AIgt.parse(config) && _this.bgGW.parse(config) && _this.IQFR.parse(config) && _this.fgQe.parse(config))) {
1227
+ if (!(_this.tEDn.parse(config) && _this.cDOC.parse(config) && _this.UQKk.parse(config) && _this.XfZa.parse(config) && _this.pRSj.parse(config) && _this.aeXK.parse(config))) {
1203
1228
  return false;
1204
1229
  }
1205
- _this._variant_code = _this.ByBE._isExperiment || _this.ByBE._only_context ? (_this$ByBE$_attr = _this.ByBE._attr) === null || _this$ByBE$_attr === void 0 ? void 0 : _this$ByBE$_attr[APX_VARIANT_CODE] : "TG";
1230
+ _this._variant_code = _this.tEDn._isExperiment || _this.tEDn._only_context ? (_this$tEDn$_attr = _this.tEDn._attr) === null || _this$tEDn$_attr === void 0 ? void 0 : _this$tEDn$_attr[APX_VARIANT_CODE] : "TG";
1206
1231
  // If there are no conditions, throw it out
1207
1232
  if (!isDefined(config.conditions) || !Array.isArray(config.conditions)) {
1208
1233
  Logger$8.error("No valid conditions", config.conditions);
1209
1234
  return false;
1210
1235
  }
1211
- _this.jUXZ = config._id;
1212
- _this.DAMl = isDefined(config.sequence_enabled) ? config.sequence_enabled : false;
1213
- if (_this.DAMl) {
1236
+ _this.HaKf = config._id;
1237
+ _this.OOUd = isDefined(config.sequence_enabled) ? config.sequence_enabled : false;
1238
+ if (_this.OOUd) {
1214
1239
  // iff respectSequence is true, Sort the Conditions by their sequence order
1215
1240
  // We need to sort, if server sends them in orderless manner
1216
1241
  config.conditions.sort(function (prev, current) {
@@ -1222,17 +1247,17 @@
1222
1247
  var conditions = config.conditions;
1223
1248
  var length = conditions.length;
1224
1249
  for (var index = 0; index < length; index++) {
1225
- _this.iODJ = [];
1250
+ _this.FMFC = [];
1226
1251
  var condition = conditions[index];
1227
1252
  if (condition.type === "didn't") {
1228
- var UHEM$details;
1253
+ var zaHz$details;
1229
1254
  var obj = {
1230
1255
  trigger_key: condition.trigger.details.name,
1231
- no_kpi_array: condition === null || condition === void 0 || (UHEM$details = condition.details) === null || UHEM$details === void 0 || (UHEM$details = UHEM$details.additional_info) === null || UHEM$details === void 0 ? void 0 : UHEM$details.nkpi,
1256
+ no_kpi_array: condition === null || condition === void 0 || (zaHz$details = condition.details) === null || zaHz$details === void 0 || (zaHz$details = zaHz$details.additional_info) === null || zaHz$details === void 0 ? void 0 : zaHz$details.nkpi,
1232
1257
  condition_id: condition === null || condition === void 0 ? void 0 : condition._id,
1233
1258
  time_bounds: condition.time_bounds.upper
1234
1259
  };
1235
- _this.iODJ = [].concat(_toConsumableArray(_this.iODJ), [obj]);
1260
+ _this.FMFC = [].concat(_toConsumableArray(_this.FMFC), [obj]);
1236
1261
  //this will be the key
1237
1262
  //when event occur check this array and then then check the time
1238
1263
  //check the time diffrence
@@ -1241,143 +1266,143 @@
1241
1266
  }
1242
1267
 
1243
1268
  var conditionValidator = new ConditionValidator();
1244
- if (conditionValidator.initialize(condition, _this.jUXZ, index, _this.DAMl, _this.iODJ)) {
1245
- _this.CVRh.push(conditionValidator);
1269
+ if (conditionValidator.initialize(condition, _this.HaKf, index, _this.OOUd, _this.FMFC)) {
1270
+ _this.dWwf.push(conditionValidator);
1246
1271
  }
1247
1272
  }
1248
- if (_this.fgQe.enable_goal_events) {
1273
+ if (_this.aeXK.enable_goal_events) {
1249
1274
  var goal_events = config.terminate_info.goal_events.events;
1250
1275
  var goaleventslength = goal_events.length;
1251
1276
  for (var i = 0; i < goaleventslength; i++) {
1252
1277
  var _conditionValidator = new ConditionValidator();
1253
- if (_conditionValidator.initialize(goal_events[i], _this.jUXZ, i, true, [], "termination")) {
1254
- _this.AHwj.push(_conditionValidator);
1278
+ if (_conditionValidator.initialize(goal_events[i], _this.HaKf, i, true, [], "termination")) {
1279
+ _this.OhKQ.push(_conditionValidator);
1255
1280
  }
1256
1281
  }
1257
1282
  }
1258
- return _this.CVRh.length > 0;
1283
+ return _this.dWwf.length > 0;
1259
1284
  } catch (error) {
1260
1285
  Logger$8.error(error);
1261
1286
  return false;
1262
1287
  }
1263
1288
  });
1264
- _defineProperty(this, "uhJX", function (index) {
1289
+ _defineProperty(this, "QIaF", function (index) {
1265
1290
  if (index < 0) {
1266
1291
  return;
1267
1292
  }
1268
- if (_this.DAMl) {
1269
- var conditionValidator = _this.CVRh[index];
1270
- if (isDefined(conditionValidator) && conditionValidator.KWyt) {
1293
+ if (_this.OOUd) {
1294
+ var conditionValidator = _this.dWwf[index];
1295
+ if (isDefined(conditionValidator) && conditionValidator.qTuv) {
1271
1296
  // Check if previous validator is satisfied
1272
- var prevValidator = _this.CVRh[index - 1];
1273
- if (isDefined(prevValidator) && !prevValidator.KWyt) {
1297
+ var prevValidator = _this.dWwf[index - 1];
1298
+ if (isDefined(prevValidator) && !prevValidator.qTuv) {
1274
1299
  // TODO: If current index is satisfied before previous one, do something
1275
1300
  // either unregister all conditions or remove this item from ConfigLookup
1276
1301
  return;
1277
1302
  }
1278
- var nextValidator = _this.CVRh[index + 1];
1303
+ var nextValidator = _this.dWwf[index + 1];
1279
1304
  if (!isDefined(nextValidator)) {
1280
1305
  // It means this is the last condition
1281
1306
  // Validate all conditions
1282
- _this.CdpR();
1307
+ _this.qZQl();
1283
1308
  } else {
1284
- nextValidator.PaJS();
1309
+ nextValidator.WNgJ();
1285
1310
  }
1286
1311
  }
1287
1312
  } else {
1288
1313
  // Validate all conditions
1289
- _this.CdpR();
1314
+ _this.qZQl();
1290
1315
  }
1291
1316
  });
1292
- _defineProperty(this, "gtHb", function (index) {
1317
+ _defineProperty(this, "rRdK", function (index) {
1293
1318
  if (index < 0) {
1294
1319
  return;
1295
1320
  }
1296
- _this.MQhs();
1321
+ _this.sGUk();
1297
1322
  });
1298
- _defineProperty(this, "CdpR", function () {
1323
+ _defineProperty(this, "qZQl", function () {
1299
1324
  // Check If Audience, Validity is satisfied or not
1300
1325
  var userAttributes = Apxor.getController().getUserAttributes();
1301
1326
  var sessionAttributes = Apxor.getController().getSessionAttributes();
1302
- if (!_this.xdhp.validate() || !_this.bgGW.validate(userAttributes, sessionAttributes) || !_this.IQFR.validate()) {
1303
- if (!_this.IQFR.retainedDaysValidated) {
1327
+ if (!_this.cDOC.validate() || !_this.XfZa.validate(userAttributes, sessionAttributes) || !_this.pRSj.validate()) {
1328
+ if (!_this.pRSj.retainedDaysValidated) {
1304
1329
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1305
- apx_nudge_type: _this.ByBE.Lecg === "SURVEY" ? "survey" : "campaign",
1306
- apx_nudge_id: _this.jUXZ,
1307
- apx_nudge_name: _this.ByBE.figp,
1308
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG",
1330
+ apx_nudge_type: _this.tEDn.FQLi === "SURVEY" ? "survey" : "campaign",
1331
+ apx_nudge_id: _this.HaKf,
1332
+ apx_nudge_name: _this.tEDn.oMsP,
1333
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG",
1309
1334
  apx_failure_type: "warn",
1310
1335
  apx_reason: "Retained day criteria not met"
1311
1336
  });
1312
1337
  }
1313
- if (!_this.IQFR.retainedSessionValidated) {
1338
+ if (!_this.pRSj.retainedSessionValidated) {
1314
1339
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1315
- apx_nudge_type: _this.ByBE.Lecg === "SURVEY" ? "survey" : "campaign",
1316
- apx_nudge_id: _this.jUXZ,
1317
- apx_nudge_name: _this.ByBE.figp,
1318
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG",
1340
+ apx_nudge_type: _this.tEDn.FQLi === "SURVEY" ? "survey" : "campaign",
1341
+ apx_nudge_id: _this.HaKf,
1342
+ apx_nudge_name: _this.tEDn.oMsP,
1343
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG",
1319
1344
  apx_failure_type: "warn",
1320
1345
  apx_reason: "User session criteria not met"
1321
1346
  });
1322
1347
  }
1323
- if (_this.IQFR.eventDoneInLT) {
1348
+ if (_this.pRSj.eventDoneInLT) {
1324
1349
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1325
- apx_nudge_type: _this.ByBE.Lecg === "SURVEY" ? "survey" : "campaign",
1326
- apx_nudge_id: _this.jUXZ,
1327
- apx_nudge_name: _this.ByBE.figp,
1328
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG",
1350
+ apx_nudge_type: _this.tEDn.FQLi === "SURVEY" ? "survey" : "campaign",
1351
+ apx_nudge_id: _this.HaKf,
1352
+ apx_nudge_name: _this.tEDn.oMsP,
1353
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG",
1329
1354
  apx_failure_type: "warn",
1330
1355
  apx_reason: "Event done in life time"
1331
1356
  });
1332
1357
  }
1333
- if (!_this.bgGW.userAttributesValidated) {
1358
+ if (!_this.XfZa.userAttributesValidated) {
1334
1359
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1335
- apx_nudge_type: _this.ByBE.Lecg === "SURVEY" ? "survey" : "campaign",
1336
- apx_nudge_id: _this.jUXZ,
1337
- apx_nudge_name: _this.ByBE.figp,
1338
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG",
1360
+ apx_nudge_type: _this.tEDn.FQLi === "SURVEY" ? "survey" : "campaign",
1361
+ apx_nudge_id: _this.HaKf,
1362
+ apx_nudge_name: _this.tEDn.oMsP,
1363
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG",
1339
1364
  apx_failure_type: "warn",
1340
1365
  apx_reason: "User property filter not met"
1341
1366
  });
1342
1367
  }
1343
- if (!_this.bgGW.sessionAttributeValidated) {
1368
+ if (!_this.XfZa.sessionAttributeValidated) {
1344
1369
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1345
- apx_nudge_type: _this.ByBE.Lecg === "SURVEY" ? "survey" : "campaign",
1346
- apx_nudge_id: _this.jUXZ,
1347
- apx_nudge_name: _this.ByBE.figp,
1348
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG",
1370
+ apx_nudge_type: _this.tEDn.FQLi === "SURVEY" ? "survey" : "campaign",
1371
+ apx_nudge_id: _this.HaKf,
1372
+ apx_nudge_name: _this.tEDn.oMsP,
1373
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG",
1349
1374
  apx_failure_type: "warn",
1350
1375
  apx_reason: "Session property filter not met"
1351
1376
  });
1352
1377
  }
1353
- if (_this.xdhp._not_yet_active) {
1378
+ if (_this.cDOC._not_yet_active) {
1354
1379
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1355
- apx_nudge_type: _this.ByBE.Lecg === "SURVEY" ? "survey" : "campaign",
1356
- apx_nudge_id: _this.jUXZ,
1357
- apx_nudge_name: _this.ByBE.figp,
1358
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG",
1380
+ apx_nudge_type: _this.tEDn.FQLi === "SURVEY" ? "survey" : "campaign",
1381
+ apx_nudge_id: _this.HaKf,
1382
+ apx_nudge_name: _this.tEDn.oMsP,
1383
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG",
1359
1384
  apx_failure_type: "warn",
1360
1385
  apx_reason: "nudge not yet active"
1361
1386
  });
1362
1387
  }
1363
- if (_this.xdhp._nudge_expired) {
1388
+ if (_this.cDOC._nudge_expired) {
1364
1389
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1365
- apx_nudge_type: _this.ByBE.Lecg === "SURVEY" ? "survey" : "campaign",
1366
- apx_nudge_id: _this.jUXZ,
1367
- apx_nudge_name: _this.ByBE.figp,
1368
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG",
1390
+ apx_nudge_type: _this.tEDn.FQLi === "SURVEY" ? "survey" : "campaign",
1391
+ apx_nudge_id: _this.HaKf,
1392
+ apx_nudge_name: _this.tEDn.oMsP,
1393
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG",
1369
1394
  apx_failure_type: "warn",
1370
1395
  apx_reason: "nudge expired"
1371
1396
  });
1372
1397
  }
1373
1398
  return;
1374
1399
  }
1375
- var length = _this.CVRh.length;
1400
+ var length = _this.dWwf.length;
1376
1401
  var isSatisfied = length < 1;
1377
1402
  var combineOperator = "";
1378
1403
  for (var index = 0; index < length; index++) {
1379
- var validator = _this.CVRh[index];
1380
- var currentResult = validator.KWyt;
1404
+ var validator = _this.dWwf[index];
1405
+ var currentResult = validator.qTuv;
1381
1406
  if (combineOperator.trim() === "") {
1382
1407
  isSatisfied = currentResult;
1383
1408
  } else {
@@ -1390,20 +1415,20 @@
1390
1415
  break;
1391
1416
  }
1392
1417
  }
1393
- combineOperator = validator.zzXl;
1418
+ combineOperator = validator.SaTl;
1394
1419
  }
1395
1420
  if (isSatisfied) {
1396
1421
  var _window$ApxorRTM, _window$ApxorRTM2;
1397
1422
  console.debug("onCondition satisfied");
1398
1423
  // Check if count reached it's maximum
1399
- if (!_this.AIgt.iOMM(_this.jUXZ)) {
1400
- console.warn("Maximum limit reached", _this.jUXZ);
1424
+ if (!_this.UQKk.KeXl(_this.HaKf)) {
1425
+ console.warn("Maximum limit reached", _this.HaKf);
1401
1426
  //logging event for view not found for test device
1402
1427
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_non_eligible_user", {
1403
1428
  apx_nudge_type: "campaign",
1404
- apx_nudge_id: _this.jUXZ,
1405
- apx_nudge_name: _this.ByBE.figp,
1406
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG",
1429
+ apx_nudge_id: _this.HaKf,
1430
+ apx_nudge_name: _this.tEDn.oMsP,
1431
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG",
1407
1432
  apx_failure_type: "warn",
1408
1433
  apx_reason: "Campaign limit reached"
1409
1434
  });
@@ -1411,38 +1436,38 @@
1411
1436
  }
1412
1437
 
1413
1438
  //logging event for view not found for test device
1414
- 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.jUXZ) && Apxor.getController().isBadgeTriggerSatisfied(_this.jUXZ))) {
1439
+ 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.HaKf) && Apxor.getController().isBadgeTriggerSatisfied(_this.HaKf))) {
1415
1440
  Apxor === null || Apxor === void 0 || Apxor.logEvent("apx_trigger_satisfied", {
1416
- apx_nudge_type: _this.ByBE.Lecg === "SURVEY" ? "survey" : "campaign",
1417
- apx_nudge_id: _this.jUXZ,
1418
- apx_nudge_name: _this.ByBE.figp,
1419
- apx_variant_code: _this.ByBE._isExperiment || _this.ByBE._only_context ? _this.ByBE._attr[APX_VARIANT_CODE] : "TG"
1441
+ apx_nudge_type: _this.tEDn.FQLi === "SURVEY" ? "survey" : "campaign",
1442
+ apx_nudge_id: _this.HaKf,
1443
+ apx_nudge_name: _this.tEDn.oMsP,
1444
+ apx_variant_code: _this.tEDn._isExperiment || _this.tEDn._only_context ? _this.tEDn._attr[APX_VARIANT_CODE] : "TG"
1420
1445
  });
1421
1446
  }
1422
- console.log("Dispatching event", _this.ByBE.Lecg);
1423
- if (_this.ByBE._only_context === true) {
1424
- Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.ByBE._attr), {}, {
1425
- message_name: _this.ByBE.figp,
1426
- id: _this.jUXZ
1447
+ console.log("Dispatching event", _this.tEDn.FQLi);
1448
+ if (_this.tEDn._only_context === true) {
1449
+ Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.tEDn._attr), {}, {
1450
+ message_name: _this.tEDn.oMsP,
1451
+ id: _this.HaKf
1427
1452
  }));
1428
1453
  }
1429
1454
  // Emit event
1430
- Apxor.getController().dispatchEvent(_this.ByBE.Lecg, {
1431
- name: _this.ByBE.Lecg,
1455
+ Apxor.getController().dispatchEvent(_this.tEDn.FQLi, {
1456
+ name: _this.tEDn.FQLi,
1432
1457
  additional_info: {
1433
- uuid: _this.jUXZ,
1434
- name: _this.ByBE.figp
1458
+ uuid: _this.HaKf,
1459
+ name: _this.tEDn.oMsP
1435
1460
  }
1436
1461
  });
1437
1462
  }
1438
1463
  });
1439
- _defineProperty(this, "MQhs", function () {
1440
- var length = _this.AHwj.length;
1464
+ _defineProperty(this, "sGUk", function () {
1465
+ var length = _this.OhKQ.length;
1441
1466
  var isSatisfied = length < 1;
1442
1467
  var combineOperator = "";
1443
1468
  for (var index = 0; index < length; index++) {
1444
- var validator = _this.AHwj[index];
1445
- var currentResult = validator.KWyt;
1469
+ var validator = _this.OhKQ[index];
1470
+ var currentResult = validator.qTuv;
1446
1471
  if (combineOperator.trim() === "") {
1447
1472
  isSatisfied = currentResult;
1448
1473
  } else {
@@ -1455,23 +1480,23 @@
1455
1480
  break;
1456
1481
  }
1457
1482
  }
1458
- combineOperator = validator.bXqj;
1483
+ combineOperator = validator.iFER;
1459
1484
  }
1460
1485
  if (isSatisfied) {
1461
- console.log("Dispatching event", _this.ByBE.Lecg);
1462
- Apxor.getController().persistTerminationInfoLocally(_this.jUXZ);
1463
- if (_this.ByBE._only_context === true) {
1464
- Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.ByBE._attr), {}, {
1465
- message_name: _this.ByBE.figp,
1466
- id: _this.jUXZ
1486
+ console.log("Dispatching event", _this.tEDn.FQLi);
1487
+ Apxor.getController().persistTerminationInfoLocally(_this.HaKf);
1488
+ if (_this.tEDn._only_context === true) {
1489
+ Apxor.logEvent(APX_CONTEXT_EVALUATED, _objectSpread2(_objectSpread2({}, _this.tEDn._attr), {}, {
1490
+ message_name: _this.tEDn.oMsP,
1491
+ id: _this.HaKf
1467
1492
  }));
1468
1493
  }
1469
1494
  // Emit event
1470
- Apxor.getController().dispatchEvent(_this.ByBE.Lecg, {
1471
- name: _this.ByBE.Lecg,
1495
+ Apxor.getController().dispatchEvent(_this.tEDn.FQLi, {
1496
+ name: _this.tEDn.FQLi,
1472
1497
  additional_info: {
1473
- uuid: _this.jUXZ,
1474
- name: _this.ByBE.figp
1498
+ uuid: _this.HaKf,
1499
+ name: _this.tEDn.oMsP
1475
1500
  }
1476
1501
  });
1477
1502
  }
@@ -1479,23 +1504,23 @@
1479
1504
  _defineProperty(this, "validateForTerminationAttributes", function () {
1480
1505
  var userAttributes = Apxor.getController().getUserAttributes();
1481
1506
  var sessionAttributes = Apxor.getController().getSessionAttributes();
1482
- return _this.fgQe.validate(userAttributes, sessionAttributes);
1507
+ return _this.aeXK.validate(userAttributes, sessionAttributes);
1483
1508
  });
1484
- _defineProperty(this, "ikdS", function () {
1485
- _this.AIgt.ikdS();
1509
+ _defineProperty(this, "fcGL", function () {
1510
+ _this.UQKk.fcGL();
1486
1511
  });
1487
1512
  _defineProperty(this, "getFrequencyCount", function () {
1488
- return _this.AIgt.getFrequencyCount();
1513
+ return _this.UQKk.getFrequencyCount();
1489
1514
  });
1490
- _defineProperty(this, "trLO", function () {
1491
- return _this.AIgt.MdUm();
1515
+ _defineProperty(this, "MRHT", function () {
1516
+ return _this.UQKk.bUYG();
1492
1517
  });
1493
1518
  });
1494
1519
 
1495
1520
  var ConfigLookup = /*#__PURE__*/_createClass(function ConfigLookup() {
1496
1521
  var _this = this;
1497
1522
  _classCallCheck(this, ConfigLookup);
1498
- _defineProperty(this, "XDsl", {});
1523
+ _defineProperty(this, "FbaP", {});
1499
1524
  _defineProperty(this, "parse", function () {
1500
1525
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
1501
1526
  configs: []
@@ -1518,7 +1543,7 @@
1518
1543
  var configId = _config._id;
1519
1544
  var configItem = new ConfigItem();
1520
1545
  if (configItem.parse(_config)) {
1521
- _this.XDsl[configId] = configItem;
1546
+ _this.FbaP[configId] = configItem;
1522
1547
  } else {
1523
1548
  console.warn("Failed to parse cfg", configId);
1524
1549
  }
@@ -1526,51 +1551,51 @@
1526
1551
  }
1527
1552
  });
1528
1553
  _defineProperty(this, "validate", function (id, index) {
1529
- if (_this.XDsl[id]) {
1530
- var configItem = _this.XDsl[id];
1531
- configItem.uhJX(index);
1554
+ if (_this.FbaP[id]) {
1555
+ var configItem = _this.FbaP[id];
1556
+ configItem.QIaF(index);
1532
1557
  }
1533
1558
  });
1534
1559
  _defineProperty(this, "getVariantCode", function (id) {
1535
- if (_this.XDsl[id]) {
1536
- var configItem = _this.XDsl[id];
1560
+ if (_this.FbaP[id]) {
1561
+ var configItem = _this.FbaP[id];
1537
1562
  return configItem._variant_code;
1538
1563
  }
1539
1564
  return "";
1540
1565
  });
1541
1566
  _defineProperty(this, "validateForTermination", function (id, index) {
1542
- if (_this.XDsl[id]) {
1543
- var configItem = _this.XDsl[id];
1544
- configItem.gtHb(index);
1567
+ if (_this.FbaP[id]) {
1568
+ var configItem = _this.FbaP[id];
1569
+ configItem.rRdK(index);
1545
1570
  }
1546
1571
  });
1547
1572
  _defineProperty(this, "validateForTerminationAttributes", function (id) {
1548
- if (_this.XDsl[id]) {
1549
- var configItem = _this.XDsl[id];
1573
+ if (_this.FbaP[id]) {
1574
+ var configItem = _this.FbaP[id];
1550
1575
  return configItem.validateForTerminationAttributes();
1551
1576
  }
1552
1577
  return false;
1553
1578
  });
1554
- _defineProperty(this, "ikdS", function (id) {
1555
- var campiagnConfig = _this.XDsl[id];
1556
- campiagnConfig.ikdS();
1579
+ _defineProperty(this, "fcGL", function (id) {
1580
+ var campiagnConfig = _this.FbaP[id];
1581
+ campiagnConfig.fcGL();
1557
1582
  });
1558
1583
  _defineProperty(this, "getFrequencyCount", function (id) {
1559
- var campiagnConfig = _this.XDsl[id];
1584
+ var campiagnConfig = _this.FbaP[id];
1560
1585
  return campiagnConfig.getFrequencyCount();
1561
1586
  });
1562
1587
  _defineProperty(this, "resetFrequencyCounts", function () {
1563
- var configs = _this.XDsl;
1588
+ var configs = _this.FbaP;
1564
1589
  for (var configId in configs) {
1565
- configs[configId].trLO();
1590
+ configs[configId].MRHT();
1566
1591
  }
1567
1592
  });
1568
- _defineProperty(this, "jMAH", function (campaignId) {
1593
+ _defineProperty(this, "BrVD", function (campaignId) {
1569
1594
  try {
1570
- if (_this.XDsl) {
1571
- var configItem = _this.XDsl[campaignId];
1572
- if (configItem && configItem.ByBE) {
1573
- return configItem.ByBE;
1595
+ if (_this.FbaP) {
1596
+ var configItem = _this.FbaP[campaignId];
1597
+ if (configItem && configItem.tEDn) {
1598
+ return configItem.tEDn;
1574
1599
  }
1575
1600
  }
1576
1601
  } catch (e) {
@@ -1586,42 +1611,42 @@
1586
1611
  var EventsListener = /*#__PURE__*/_createClass(function EventsListener() {
1587
1612
  var _this = this;
1588
1613
  _classCallCheck(this, EventsListener);
1589
- _defineProperty(this, "rnqO", {});
1590
- _defineProperty(this, "jgKf", []);
1591
- _defineProperty(this, "isEr", false);
1614
+ _defineProperty(this, "oTRj", {});
1615
+ _defineProperty(this, "LSjS", []);
1616
+ _defineProperty(this, "pfJM", false);
1592
1617
  _defineProperty(this, "initialize", function () {
1593
1618
  var controller = Apxor.getController();
1594
1619
  controller.registerForEvent(APP_EVENT, function (event) {
1595
- return _this.OmRD(event, "AE");
1620
+ return _this.SbMk(event, "AE");
1596
1621
  });
1597
1622
  controller.registerForEvent(CLIENT_EVENT, function (event) {
1598
- return _this.OmRD(event, "CE");
1623
+ return _this.SbMk(event, "CE");
1599
1624
  });
1600
1625
  });
1601
- _defineProperty(this, "uHZe", function () {
1626
+ _defineProperty(this, "NABs", function () {
1602
1627
  // Clear Buffer
1603
- for (var item in _this.jgKf) {
1604
- _this.gOcO(item.event, item.key, item.type);
1628
+ for (var item in _this.LSjS) {
1629
+ _this.NCWL(item.event, item.key, item.type);
1605
1630
  }
1606
- _this.isEr = true;
1631
+ _this.pfJM = true;
1607
1632
  });
1608
- _defineProperty(this, "dgAX", function (event, callback) {
1633
+ _defineProperty(this, "BusP", function (event, callback) {
1609
1634
  if (!isFunction(callback)) {
1610
1635
  return;
1611
1636
  }
1612
1637
  var listeners;
1613
- if (_this.rnqO[event]) {
1614
- listeners = _this.rnqO[event];
1638
+ if (_this.oTRj[event]) {
1639
+ listeners = _this.oTRj[event];
1615
1640
  } else {
1616
1641
  listeners = [];
1617
1642
  }
1618
1643
  listeners.push(callback);
1619
- _this.rnqO[event] = listeners;
1620
- Logger$9.debug("Listeners list: ", _this.rnqO);
1644
+ _this.oTRj[event] = listeners;
1645
+ Logger$9.debug("Listeners list: ", _this.oTRj);
1621
1646
  });
1622
1647
  _defineProperty(this, "unregisterFromEvent", function (event, callback) {
1623
- if (_this.rnqO[event]) {
1624
- var listeners = _this.rnqO[event];
1648
+ if (_this.oTRj[event]) {
1649
+ var listeners = _this.oTRj[event];
1625
1650
  var updatedListeners = [];
1626
1651
  for (var index = 0; index < listeners.length; index++) {
1627
1652
  var listener = listeners[index];
@@ -1629,25 +1654,25 @@
1629
1654
  updatedListeners.push(listener);
1630
1655
  }
1631
1656
  }
1632
- _this.rnqO[event] = updatedListeners;
1657
+ _this.oTRj[event] = updatedListeners;
1633
1658
  }
1634
1659
  });
1635
- _defineProperty(this, "OmRD", function (event) {
1660
+ _defineProperty(this, "SbMk", function (event) {
1636
1661
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "AE";
1637
1662
  var key = type + "___" + event.name;
1638
- _this.gOcO(event, key, type);
1663
+ _this.NCWL(event, key, type);
1639
1664
  });
1640
- _defineProperty(this, "gOcO", function (event, key, type) {
1641
- if (!_this.isEr) {
1642
- _this.jgKf.push({
1665
+ _defineProperty(this, "NCWL", function (event, key, type) {
1666
+ if (!_this.pfJM) {
1667
+ _this.LSjS.push({
1643
1668
  event: event,
1644
1669
  key: key,
1645
1670
  type: type
1646
1671
  });
1647
1672
  } else {
1648
- Logger$9.debug("Notifying listeners for event: " + event + ", " + key, _this.rnqO);
1649
- if (_this.rnqO[key]) {
1650
- var listeners = _this.rnqO[key];
1673
+ Logger$9.debug("Notifying listeners for event: " + event + ", " + key, _this.oTRj);
1674
+ if (_this.oTRj[key]) {
1675
+ var listeners = _this.oTRj[key];
1651
1676
  var time = Apxor.getController().getSDKRunningTimeInSec();
1652
1677
  for (var index = 0; index < listeners.length; index++) {
1653
1678
  var listener = listeners[index];
@@ -1663,17 +1688,17 @@
1663
1688
  function CE() {
1664
1689
  var _this = this;
1665
1690
  _classCallCheck(this, CE);
1666
- _defineProperty(this, "qwnH", false);
1667
- _defineProperty(this, "MWAY", null);
1668
- _defineProperty(this, "dOSQ", getDateInDDMMYYYY());
1669
- _defineProperty(this, "aXRJ", new EventsListener());
1670
- _defineProperty(this, "yjQV", Apxor.getSiteId());
1691
+ _defineProperty(this, "rstJ", false);
1692
+ _defineProperty(this, "OuiB", null);
1693
+ _defineProperty(this, "PyGg", getDateInDDMMYYYY());
1694
+ _defineProperty(this, "qhQM", new EventsListener());
1695
+ _defineProperty(this, "hZaK", Apxor.getSiteId());
1671
1696
  _defineProperty(this, "_qeState", {});
1672
1697
  _defineProperty(this, "getQeState", function () {
1673
1698
  try {
1674
1699
  var data = Apxor.getController().getFromStorage(QE_STATE);
1675
1700
  if (data) {
1676
- return JSON.parse(decode(_this.yjQV, data));
1701
+ return JSON.parse(decode(_this.hZaK, data));
1677
1702
  } else {
1678
1703
  _this._qeState = {};
1679
1704
  return _this.setQeState();
@@ -1702,10 +1727,10 @@
1702
1727
  return _this._qeState;
1703
1728
  });
1704
1729
  _defineProperty(this, "initialize", function () {
1705
- if (!_this.qwnH) {
1706
- _this.qwnH = true;
1707
- _this.MWAY = new ConfigLookup();
1708
- _this.aXRJ.initialize();
1730
+ if (!_this.rstJ) {
1731
+ _this.rstJ = true;
1732
+ _this.OuiB = new ConfigLookup();
1733
+ _this.qhQM.initialize();
1709
1734
  _this._qeState = _this.getQeState();
1710
1735
  Logger$a.info("QE Initialized..");
1711
1736
  }
@@ -1716,12 +1741,12 @@
1716
1741
  * @param config
1717
1742
  */
1718
1743
  _defineProperty(this, "parse", function (config) {
1719
- if (!_this.lGLs()) {
1744
+ if (!_this.QLjA()) {
1720
1745
  Logger$a.warn("Must call init first. Unable to proceed");
1721
1746
  return;
1722
1747
  }
1723
- _this.MWAY.parse(config);
1724
- _this.aXRJ.uHZe();
1748
+ _this.OuiB.parse(config);
1749
+ _this.qhQM.NABs();
1725
1750
  });
1726
1751
  /**
1727
1752
  * Validates all conditions for given config ID
@@ -1730,22 +1755,22 @@
1730
1755
  * @param index
1731
1756
  */
1732
1757
  _defineProperty(this, "validate", function (id, index) {
1733
- if (!_this.lGLs()) {
1758
+ if (!_this.QLjA()) {
1734
1759
  return;
1735
1760
  }
1736
- _this.MWAY.validate(id, index);
1761
+ _this.OuiB.validate(id, index);
1737
1762
  });
1738
1763
  _defineProperty(this, "getVariantCode", function (id) {
1739
- return _this.MWAY.getVariantCode(id);
1764
+ return _this.OuiB.getVariantCode(id);
1740
1765
  });
1741
1766
  _defineProperty(this, "validateForTermination", function (id, index) {
1742
- if (!_this.lGLs()) {
1767
+ if (!_this.QLjA()) {
1743
1768
  return;
1744
1769
  }
1745
- _this.MWAY.validateForTermination(id, index);
1770
+ _this.OuiB.validateForTermination(id, index);
1746
1771
  });
1747
1772
  _defineProperty(this, "validateForTerminationAttributes", function (user, session) {
1748
- return _this.MWAY.validateForTerminationAttributes(user, session);
1773
+ return _this.OuiB.validateForTerminationAttributes(user, session);
1749
1774
  });
1750
1775
  _defineProperty(this, "updateCount", function (id) {
1751
1776
  try {
@@ -1754,25 +1779,25 @@
1754
1779
  }
1755
1780
  _this.incrementFrequencies(id);
1756
1781
  _this.setQeState(id);
1757
- _this.MWAY.ikdS(id);
1782
+ _this.OuiB.fcGL(id);
1758
1783
  } catch (e) {
1759
1784
  console.log("Could not update the count config:".concat(e));
1760
1785
  }
1761
1786
  });
1762
1787
  _defineProperty(this, "resetFrequencyCounts", function () {
1763
- _this.MWAY.resetFrequencyCounts();
1788
+ _this.OuiB.resetFrequencyCounts();
1764
1789
  });
1765
1790
  _defineProperty(this, "getFrequencyCount", function (id) {
1766
- return _this.MWAY.getFrequencyCount(id);
1791
+ return _this.OuiB.getFrequencyCount(id);
1767
1792
  });
1768
1793
  _defineProperty(this, "registerForEvent", function (event, callback) {
1769
- _this.aXRJ.dgAX(event, callback);
1794
+ _this.qhQM.BusP(event, callback);
1770
1795
  });
1771
1796
  _defineProperty(this, "unregisterFromEvent", function (event, callback) {
1772
- _this.aXRJ.unregisterFromEvent(event, callback);
1797
+ _this.qhQM.unregisterFromEvent(event, callback);
1773
1798
  });
1774
1799
  _defineProperty(this, "notifyEventListener", function (event) {
1775
- _this.aXRJ.OmRD(event);
1800
+ _this.qhQM.SbMk(event);
1776
1801
  });
1777
1802
  /**
1778
1803
  * Fetches the config from Server
@@ -1785,14 +1810,14 @@
1785
1810
  _defineProperty(this, "fetch", function (type, validateUrl, apiUrl, callback) {
1786
1811
  Apxor.getController().fetchConfiguration(type, validateUrl, apiUrl, callback);
1787
1812
  });
1788
- _defineProperty(this, "lGLs", function () {
1789
- return _this.qwnH;
1813
+ _defineProperty(this, "QLjA", function () {
1814
+ return _this.rstJ;
1790
1815
  });
1791
1816
  _defineProperty(this, "getCampaignMetaFromQueryEngine", function (campaignId) {
1792
- return _this.MWAY.jMAH(campaignId);
1817
+ return _this.OuiB.BrVD(campaignId);
1793
1818
  });
1794
- _defineProperty(this, "hUQY", function () {
1795
- return _this.dOSQ;
1819
+ _defineProperty(this, "tmiN", function () {
1820
+ return _this.PyGg;
1796
1821
  });
1797
1822
  if (!CE.instance) {
1798
1823
  CE.instance = this;
@@ -1816,7 +1841,7 @@
1816
1841
  OVERALL: 0,
1817
1842
  DATES: {}
1818
1843
  };
1819
- if (this.dOSQ) this._qeState[id].DATES[this.dOSQ] = 0;
1844
+ if (this.PyGg) this._qeState[id].DATES[this.PyGg] = 0;
1820
1845
  this.setQeState(id);
1821
1846
  }
1822
1847
  } catch (e) {
@@ -1835,12 +1860,12 @@
1835
1860
 
1836
1861
  // Increment the DATES count for this particular date by 1. If the date changes reset.
1837
1862
  var currentDate = getDateInDDMMYYYY();
1838
- if (currentDate !== this.dOSQ || !(configFrequency.DATES && configFrequency.DATES[currentDate])) {
1839
- this.dOSQ = currentDate;
1863
+ if (currentDate !== this.PyGg || !(configFrequency.DATES && configFrequency.DATES[currentDate])) {
1864
+ this.PyGg = currentDate;
1840
1865
  configFrequency.DATES = {};
1841
- configFrequency.DATES[this.dOSQ] = 0;
1866
+ configFrequency.DATES[this.PyGg] = 0;
1842
1867
  }
1843
- configFrequency.DATES[this.dOSQ] = configFrequency.DATES[this.dOSQ] + 1;
1868
+ configFrequency.DATES[this.PyGg] = configFrequency.DATES[this.PyGg] + 1;
1844
1869
  }
1845
1870
  }], [{
1846
1871
  key: "getInstance",
@@ -1859,7 +1884,7 @@
1859
1884
 
1860
1885
  /* eslint-disable no-empty */
1861
1886
 
1862
- window.ceVersion = 151;
1887
+ window.ceVersion = 160;
1863
1888
  try {
1864
1889
  if (exports !== undefined || exports !== null) {
1865
1890
  exports["default"] = CE;