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