indigitall-web-sdk 4.2.11 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/Indigitall.js CHANGED
@@ -17,14 +17,14 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /* eslint-disable require-jsdoc */
18
18
  /* eslint-disable max-len */
19
19
  // Common Classes
20
- var Channel = require('indigitall-web-core').Core.Models.Channel;
21
20
  var _require$Core$Utils = require('indigitall-web-core').Core.Utils,
22
21
  Log = _require$Core$Utils.Log,
23
22
  LogLevel = _require$Core$Utils.LogLevel,
24
- CommonUtils = _require$Core$Utils.CommonUtils;
23
+ CommonUtils = _require$Core$Utils.CommonUtils,
24
+ ErrorUtils = _require$Core$Utils.ErrorUtils;
25
+ var Repository = require('indigitall-web-core').Core.Repository;
25
26
  var pkg = require('../package.json');
26
- // const push = require('indigitall-web-notification').Push;
27
- // const {IndigitallPush} = require('indigitall-web-notification').Push;
27
+ var Channel = require('indigitall-web-core').Core.Models.Channel;
28
28
  // eslint-disable-next-line no-unused-vars
29
29
  var TAG = '[IND]Indigitall: ';
30
30
  /**
@@ -139,24 +139,100 @@ var Indigitall = /*#__PURE__*/function () {
139
139
  }
140
140
  }, {
141
141
  key: "inAppTopicList",
142
- value: function inAppTopicList(pushTopics, success, error) {
143
- _indigitallWebInapp["default"].topicsList(function (inAppTopics) {
144
- if (CommonUtils.isFunction(success)) {
145
- if (pushTopics != null) {
146
- success(inAppTopics.concat(pushTopics));
147
- } else {
148
- success(inAppTopics);
142
+ value: function () {
143
+ var _inAppTopicList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(pushTopics, success, error) {
144
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
145
+ while (1) switch (_context4.prev = _context4.next) {
146
+ case 0:
147
+ if (!new Repository().isInAppEnabled()) {
148
+ _context4.next = 4;
149
+ break;
150
+ }
151
+ _indigitallWebInapp["default"].topicsList( /*#__PURE__*/function () {
152
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(inAppTopics) {
153
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
154
+ while (1) switch (_context2.prev = _context2.next) {
155
+ case 0:
156
+ if (!(pushTopics != null)) {
157
+ _context2.next = 8;
158
+ break;
159
+ }
160
+ _context2.next = 3;
161
+ return new Repository().setTopicList(pushTopics);
162
+ case 3:
163
+ _context2.next = 5;
164
+ return new Repository().setInAppTopicList(inAppTopics);
165
+ case 5:
166
+ if (CommonUtils.isFunction(success)) success(inAppTopics.concat(pushTopics));
167
+ _context2.next = 11;
168
+ break;
169
+ case 8:
170
+ _context2.next = 10;
171
+ return new Repository().setInAppTopicList(inAppTopics);
172
+ case 10:
173
+ if (CommonUtils.isFunction(success)) success(inAppTopics);
174
+ case 11:
175
+ case "end":
176
+ return _context2.stop();
177
+ }
178
+ }, _callee2);
179
+ }));
180
+ return function (_x5) {
181
+ return _ref.apply(this, arguments);
182
+ };
183
+ }(), /*#__PURE__*/function () {
184
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(onError) {
185
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
186
+ while (1) switch (_context3.prev = _context3.next) {
187
+ case 0:
188
+ if (!(pushTopics != null)) {
189
+ _context3.next = 6;
190
+ break;
191
+ }
192
+ _context3.next = 3;
193
+ return new Repository().setTopicList(pushTopics);
194
+ case 3:
195
+ if (CommonUtils.isFunction(success)) success(pushTopics);
196
+ _context3.next = 7;
197
+ break;
198
+ case 6:
199
+ if (CommonUtils.isFunction(error)) error(onError);
200
+ case 7:
201
+ case "end":
202
+ return _context3.stop();
203
+ }
204
+ }, _callee3);
205
+ }));
206
+ return function (_x6) {
207
+ return _ref2.apply(this, arguments);
208
+ };
209
+ }());
210
+ _context4.next = 11;
211
+ break;
212
+ case 4:
213
+ if (!(pushTopics != null)) {
214
+ _context4.next = 10;
215
+ break;
216
+ }
217
+ _context4.next = 7;
218
+ return new Repository().setTopicList(pushTopics);
219
+ case 7:
220
+ if (CommonUtils.isFunction(success)) success(pushTopics);
221
+ _context4.next = 11;
222
+ break;
223
+ case 10:
224
+ if (CommonUtils.isFunction(error)) error(ErrorUtils.showError(null, null, 'Internal error bad topic list'));
225
+ case 11:
226
+ case "end":
227
+ return _context4.stop();
149
228
  }
150
- }
151
- }, function (onError) {
152
- if (pushTopics != null) {
153
- if (CommonUtils.isFunction(success)) success(pushTopics);
154
- } else {
155
- if (CommonUtils.isFunction(error)) error(onError);
156
- }
157
- });
158
- }
159
-
229
+ }, _callee4);
230
+ }));
231
+ function inAppTopicList(_x2, _x3, _x4) {
232
+ return _inAppTopicList.apply(this, arguments);
233
+ }
234
+ return inAppTopicList;
235
+ }()
160
236
  /**
161
237
  * Subscribe new Topics
162
238
  *
@@ -165,49 +241,72 @@ var Indigitall = /*#__PURE__*/function () {
165
241
  * @param {Object} topicsCodes List of topic codes
166
242
  * @param {Function} success A callback function when is success
167
243
  * @param {Function} error A callback function when is error
168
- * @return {Boolean} Returns true
169
244
  */
170
245
  }, {
171
246
  key: "topicsSubscribe",
172
247
  value: function topicsSubscribe(topicsCodes, success, error) {
173
248
  var _this2 = this;
174
- return _indigitallWebNotification["default"].topicsSubscribe(topicsCodes, function (topics) {
175
- _this2.inAppTopicsSubscribe(topicsCodes, topics, success, error);
176
- }, function (pushError) {
177
- var log = new Log(TAG);
178
- log.w(pushError).writeLog();
179
- _this2.inAppTopicsSubscribe(topicsCodes, null, success, error);
180
- });
249
+ if (new Repository().isInAppEnabled()) {
250
+ _indigitallWebInapp["default"].topicsSubscribe(topicsCodes, function (inAppTopics) {
251
+ _this2.pushTopicsSubscribe(topicsCodes, inAppTopics, success, error);
252
+ }, /*#__PURE__*/function () {
253
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(onError) {
254
+ var log;
255
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
256
+ while (1) switch (_context5.prev = _context5.next) {
257
+ case 0:
258
+ log = new Log(TAG);
259
+ log.w(onError).writeLog();
260
+ _this2.pushTopicsSubscribe(topicsCodes, null, success, error);
261
+ case 3:
262
+ case "end":
263
+ return _context5.stop();
264
+ }
265
+ }, _callee5);
266
+ }));
267
+ return function (_x7) {
268
+ return _ref3.apply(this, arguments);
269
+ };
270
+ }());
271
+ } else {
272
+ this.pushTopicsSubscribe(topicsCodes, null, success, error);
273
+ }
181
274
  }
182
275
  }, {
183
- key: "inAppTopicsSubscribe",
184
- value: function inAppTopicsSubscribe(topicsCodes, pushTopics, success, error) {
185
- _indigitallWebInapp["default"].topicsSubscribe(topicsCodes, function (inAppTopics) {
186
- if (CommonUtils.isFunction(success)) {
187
- var newTopics = [];
188
- for (var i = 0; i < inAppTopics.length; i++) {
189
- newTopics.push({
190
- code: inAppTopics[i],
191
- name: inAppTopics[i],
192
- visible: true,
193
- subscribe: true,
194
- parentCode: '',
195
- channel: Channel.INAPP
196
- });
197
- }
198
- if (pushTopics != null) {
199
- success(pushTopics.concat(newTopics));
200
- } else {
201
- success(inAppTopics);
202
- }
203
- }
204
- }, function (onError) {
205
- if (pushTopics != null) {
206
- if (CommonUtils.isFunction(success)) success(pushTopics);
207
- } else {
208
- if (CommonUtils.isFunction(error)) error(onError);
209
- }
210
- });
276
+ key: "pushTopicsSubscribe",
277
+ value: function pushTopicsSubscribe(topicsCodes, inAppTopics, success, error) {
278
+ var _this3 = this;
279
+ _indigitallWebNotification["default"].topicsSubscribe(topicsCodes, /*#__PURE__*/function () {
280
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(pushTopics) {
281
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
282
+ while (1) switch (_context6.prev = _context6.next) {
283
+ case 0:
284
+ _this3.topicActionOnSuccess(inAppTopics, pushTopics, success);
285
+ case 1:
286
+ case "end":
287
+ return _context6.stop();
288
+ }
289
+ }, _callee6);
290
+ }));
291
+ return function (_x8) {
292
+ return _ref4.apply(this, arguments);
293
+ };
294
+ }(), /*#__PURE__*/function () {
295
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(onError) {
296
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
297
+ while (1) switch (_context7.prev = _context7.next) {
298
+ case 0:
299
+ _this3.topicActionOnError(inAppTopics, onError, success, error);
300
+ case 1:
301
+ case "end":
302
+ return _context7.stop();
303
+ }
304
+ }, _callee7);
305
+ }));
306
+ return function (_x9) {
307
+ return _ref5.apply(this, arguments);
308
+ };
309
+ }());
211
310
  }
212
311
 
213
312
  /**
@@ -222,49 +321,153 @@ var Indigitall = /*#__PURE__*/function () {
222
321
  */
223
322
  }, {
224
323
  key: "topicsUnsubscribe",
225
- value: function topicsUnsubscribe(topicsCodes, success, error) {
226
- var _this3 = this;
227
- return _indigitallWebNotification["default"].topicsUnsubscribe(topicsCodes, function (topics) {
228
- _this3.inAppTopicsUnsubscribe(topicsCodes, topics, success, error);
229
- }, function (pushError) {
230
- var log = new Log(TAG);
231
- log.w(pushError).writeLog();
232
- _this3.inAppTopicsUnsubscribe(topicsCodes, null, success, error);
233
- });
234
- }
324
+ value: function () {
325
+ var _topicsUnsubscribe = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(topicsCodes, success, error) {
326
+ var _this4 = this;
327
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
328
+ while (1) switch (_context9.prev = _context9.next) {
329
+ case 0:
330
+ if (new Repository().isInAppEnabled()) {
331
+ _indigitallWebInapp["default"].topicsUnsubscribe(topicsCodes, function (inAppTopics) {
332
+ _this4.pushTopicsUnsubscribe(topicsCodes, inAppTopics, success, error);
333
+ }, /*#__PURE__*/function () {
334
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(onError) {
335
+ var log;
336
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
337
+ while (1) switch (_context8.prev = _context8.next) {
338
+ case 0:
339
+ log = new Log(TAG);
340
+ log.w(onError).writeLog();
341
+ _this4.pushTopicsUnsubscribe(topicsCodes, null, success, error);
342
+ case 3:
343
+ case "end":
344
+ return _context8.stop();
345
+ }
346
+ }, _callee8);
347
+ }));
348
+ return function (_x13) {
349
+ return _ref6.apply(this, arguments);
350
+ };
351
+ }());
352
+ } else {
353
+ this.pushTopicsUnsubscribe(topicsCodes, null, success, error);
354
+ }
355
+ case 1:
356
+ case "end":
357
+ return _context9.stop();
358
+ }
359
+ }, _callee9, this);
360
+ }));
361
+ function topicsUnsubscribe(_x10, _x11, _x12) {
362
+ return _topicsUnsubscribe.apply(this, arguments);
363
+ }
364
+ return topicsUnsubscribe;
365
+ }()
235
366
  }, {
236
- key: "inAppTopicsUnsubscribe",
237
- value: function inAppTopicsUnsubscribe(topicsCodes, pushTopics, success, error) {
238
- _indigitallWebInapp["default"].topicsUnsubscribe(topicsCodes, function (inAppTopics) {
239
- if (CommonUtils.isFunction(success)) {
240
- var newTopics = [];
241
- if (inAppTopics.length > 0) {
242
- for (var i = 0; i < inAppTopics.length; i++) {
243
- newTopics.push({
244
- code: inAppTopics[i],
245
- name: inAppTopics[i],
246
- visible: true,
247
- subscribe: true,
248
- parentCode: '',
249
- channel: Channel.INAPP
250
- });
367
+ key: "pushTopicsUnsubscribe",
368
+ value: function pushTopicsUnsubscribe(topicsCodes, inAppTopics, success, error) {
369
+ var _this5 = this;
370
+ _indigitallWebNotification["default"].topicsUnsubscribe(topicsCodes, /*#__PURE__*/function () {
371
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(pushTopics) {
372
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
373
+ while (1) switch (_context10.prev = _context10.next) {
374
+ case 0:
375
+ _this5.topicActionOnSuccess(inAppTopics, pushTopics, success);
376
+ case 1:
377
+ case "end":
378
+ return _context10.stop();
251
379
  }
380
+ }, _callee10);
381
+ }));
382
+ return function (_x14) {
383
+ return _ref7.apply(this, arguments);
384
+ };
385
+ }(), /*#__PURE__*/function () {
386
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(onError) {
387
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
388
+ while (1) switch (_context11.prev = _context11.next) {
389
+ case 0:
390
+ _this5.topicActionOnError(inAppTopics, onError, success, error);
391
+ case 1:
392
+ case "end":
393
+ return _context11.stop();
394
+ }
395
+ }, _callee11);
396
+ }));
397
+ return function (_x15) {
398
+ return _ref8.apply(this, arguments);
399
+ };
400
+ }());
401
+ }
402
+ }, {
403
+ key: "topicActionOnSuccess",
404
+ value: function () {
405
+ var _topicActionOnSuccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(inAppTopics, pushTopics, success) {
406
+ var topics;
407
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
408
+ while (1) switch (_context12.prev = _context12.next) {
409
+ case 0:
410
+ topics = [];
411
+ if (!(inAppTopics != null)) {
412
+ _context12.next = 5;
413
+ break;
414
+ }
415
+ topics = inAppTopics;
416
+ _context12.next = 5;
417
+ return new Repository().setInAppTopicList(inAppTopics);
418
+ case 5:
419
+ if (!(pushTopics != null)) {
420
+ _context12.next = 8;
421
+ break;
422
+ }
423
+ _context12.next = 8;
424
+ return new Repository().setTopicList(pushTopics);
425
+ case 8:
426
+ if (CommonUtils.isFunction(success)) success(topics.concat(pushTopics));
427
+ case 9:
428
+ case "end":
429
+ return _context12.stop();
252
430
  }
253
- if (pushTopics != null) {
254
- success(pushTopics.concat(newTopics));
255
- } else {
256
- success(inAppTopics);
431
+ }, _callee12);
432
+ }));
433
+ function topicActionOnSuccess(_x16, _x17, _x18) {
434
+ return _topicActionOnSuccess.apply(this, arguments);
435
+ }
436
+ return topicActionOnSuccess;
437
+ }()
438
+ }, {
439
+ key: "topicActionOnError",
440
+ value: function () {
441
+ var _topicActionOnError = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(inAppTopics, onError, success, error) {
442
+ var log;
443
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
444
+ while (1) switch (_context13.prev = _context13.next) {
445
+ case 0:
446
+ log = new Log(TAG);
447
+ log.w("".concat(onError.errorCode, ": ").concat(onError.exceptionMessage)).writeLog();
448
+ if (!(inAppTopics != null)) {
449
+ _context13.next = 8;
450
+ break;
451
+ }
452
+ _context13.next = 5;
453
+ return new Repository().setInAppTopicList(inAppTopics);
454
+ case 5:
455
+ if (CommonUtils.isFunction(success)) success(inAppTopics);
456
+ _context13.next = 9;
457
+ break;
458
+ case 8:
459
+ if (CommonUtils.isFunction(error)) error(onError);
460
+ case 9:
461
+ case "end":
462
+ return _context13.stop();
257
463
  }
258
- }
259
- }, function (onError) {
260
- if (pushTopics != null) {
261
- if (CommonUtils.isFunction(success)) success(pushTopics);
262
- } else {
263
- if (CommonUtils.isFunction(error)) error(onError);
264
- }
265
- });
266
- }
267
-
464
+ }, _callee13);
465
+ }));
466
+ function topicActionOnError(_x19, _x20, _x21, _x22) {
467
+ return _topicActionOnError.apply(this, arguments);
468
+ }
469
+ return topicActionOnError;
470
+ }()
268
471
  /**
269
472
  * Set new external ID
270
473
  *
@@ -278,18 +481,18 @@ var Indigitall = /*#__PURE__*/function () {
278
481
  }, {
279
482
  key: "setExternalId",
280
483
  value: function () {
281
- var _setExternalId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(externalId, success, error) {
282
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
283
- while (1) switch (_context2.prev = _context2.next) {
484
+ var _setExternalId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(externalId, success, error) {
485
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
486
+ while (1) switch (_context14.prev = _context14.next) {
284
487
  case 0:
285
488
  _indigitallWebNotification["default"].setExternalId(externalId, success, error);
286
489
  case 1:
287
490
  case "end":
288
- return _context2.stop();
491
+ return _context14.stop();
289
492
  }
290
- }, _callee2);
493
+ }, _callee14);
291
494
  }));
292
- function setExternalId(_x2, _x3, _x4) {
495
+ function setExternalId(_x23, _x24, _x25) {
293
496
  return _setExternalId.apply(this, arguments);
294
497
  }
295
498
  return setExternalId;
@@ -442,18 +645,18 @@ var Indigitall = /*#__PURE__*/function () {
442
645
  }, {
443
646
  key: "showInApp",
444
647
  value: function () {
445
- var _showInApp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(inAppCode, viewId, success, error) {
446
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
447
- while (1) switch (_context3.prev = _context3.next) {
648
+ var _showInApp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(inAppCode, viewId, success, error) {
649
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
650
+ while (1) switch (_context15.prev = _context15.next) {
448
651
  case 0:
449
652
  _indigitallWebInapp["default"].showInApp(inAppCode, viewId, success, error);
450
653
  case 1:
451
654
  case "end":
452
- return _context3.stop();
655
+ return _context15.stop();
453
656
  }
454
- }, _callee3);
657
+ }, _callee15);
455
658
  }));
456
- function showInApp(_x5, _x6, _x7, _x8) {
659
+ function showInApp(_x26, _x27, _x28, _x29) {
457
660
  return _showInApp.apply(this, arguments);
458
661
  }
459
662
  return showInApp;
@@ -475,18 +678,18 @@ var Indigitall = /*#__PURE__*/function () {
475
678
  }, {
476
679
  key: "showInAppWithConfig",
477
680
  value: function () {
478
- var _showInAppWithConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit) {
479
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
480
- while (1) switch (_context4.prev = _context4.next) {
681
+ var _showInAppWithConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit) {
682
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
683
+ while (1) switch (_context16.prev = _context16.next) {
481
684
  case 0:
482
685
  _indigitallWebInapp["default"].showInAppWithConfig(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit);
483
686
  case 1:
484
687
  case "end":
485
- return _context4.stop();
688
+ return _context16.stop();
486
689
  }
487
- }, _callee4);
690
+ }, _callee16);
488
691
  }));
489
- function showInAppWithConfig(_x9, _x10, _x11, _x12, _x13, _x14, _x15, _x16, _x17, _x18, _x19) {
692
+ function showInAppWithConfig(_x30, _x31, _x32, _x33, _x34, _x35, _x36, _x37, _x38, _x39, _x40) {
490
693
  return _showInAppWithConfig.apply(this, arguments);
491
694
  }
492
695
  return showInAppWithConfig;
@@ -525,18 +728,18 @@ var Indigitall = /*#__PURE__*/function () {
525
728
  }, {
526
729
  key: "showMultipleInAppWithConfig",
527
730
  value: function () {
528
- var _showMultipleInAppWithConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit) {
529
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
530
- while (1) switch (_context5.prev = _context5.next) {
731
+ var _showMultipleInAppWithConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit) {
732
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
733
+ while (1) switch (_context17.prev = _context17.next) {
531
734
  case 0:
532
735
  _indigitallWebInapp["default"].showMultipleInAppWithConfig(config, onShowTimeFinished, didExpired, didShowManyTimes, didClickOut, didDismissForever, didClicked, success, error, didFormError, didFormSubmit);
533
736
  case 1:
534
737
  case "end":
535
- return _context5.stop();
738
+ return _context17.stop();
536
739
  }
537
- }, _callee5);
740
+ }, _callee17);
538
741
  }));
539
- function showMultipleInAppWithConfig(_x20, _x21, _x22, _x23, _x24, _x25, _x26, _x27, _x28, _x29, _x30) {
742
+ function showMultipleInAppWithConfig(_x41, _x42, _x43, _x44, _x45, _x46, _x47, _x48, _x49, _x50, _x51) {
540
743
  return _showMultipleInAppWithConfig.apply(this, arguments);
541
744
  }
542
745
  return showMultipleInAppWithConfig;
@@ -554,13 +757,13 @@ var Indigitall = /*#__PURE__*/function () {
554
757
  }, {
555
758
  key: "getInboxMessagesCount",
556
759
  value: function getInboxMessagesCount(auth, success, error) {
557
- _indigitallWebInbox["default"].getMessagesCount(auth, success, error);
760
+ _indigitallWebInbox["default"].getMessagesCountWithAuth(auth, success, error);
558
761
  }
559
762
 
560
763
  /**
561
764
  * get Inbox
562
765
  *
563
- * @method getInboxMessagesCount
766
+ * @method getInbox
564
767
  * @static
565
768
  * @param {Function} auth authentification option
566
769
  * @param {Function} success A callback function when is success
@@ -570,7 +773,7 @@ var Indigitall = /*#__PURE__*/function () {
570
773
  }, {
571
774
  key: "getInbox",
572
775
  value: function getInbox(auth, success, error) {
573
- _indigitallWebInbox["default"].getInbox(auth, success, error);
776
+ _indigitallWebInbox["default"].getInboxWithAuth(auth, success, error);
574
777
  }
575
778
 
576
779
  /**