webpackJsonp([22],{

/***/ 1080:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return tzdetect; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_moment_timezone__ = __webpack_require__(1081);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_moment_timezone___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_moment_timezone__);
/**
 * Created by shadeeka on 6/15/18.
 */

var tzdetect = {
    names: __WEBPACK_IMPORTED_MODULE_0_moment_timezone___default.a.tz.names(),
    matches: function (base) {
        var results = [], now = Date.now(), makekey = function (id) {
            return [0, 4, 8, -5 * 12, 4 - 5 * 12, 8 - 5 * 12, 4 - 2 * 12, 8 - 2 * 12].map(function (months) {
                var m = __WEBPACK_IMPORTED_MODULE_0_moment_timezone___default()(now + months * 30 * 24 * 60 * 60 * 1000);
                if (id) {
                    m.tz(id);
                }
                return m.format('DDHHmm');
            }).join(' ');
        }, lockey = makekey(base);
        tzdetect.names.forEach(function (id) {
            if (makekey(id) === lockey) {
                results.push(id);
            }
        });
        return results;
    }
};
//# sourceMappingURL=app.utill.js.map

/***/ }),

/***/ 1083:
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"./af": 434,
	"./af.js": 434,
	"./ar": 435,
	"./ar-dz": 436,
	"./ar-dz.js": 436,
	"./ar-kw": 437,
	"./ar-kw.js": 437,
	"./ar-ly": 438,
	"./ar-ly.js": 438,
	"./ar-ma": 439,
	"./ar-ma.js": 439,
	"./ar-sa": 440,
	"./ar-sa.js": 440,
	"./ar-tn": 441,
	"./ar-tn.js": 441,
	"./ar.js": 435,
	"./az": 442,
	"./az.js": 442,
	"./be": 443,
	"./be.js": 443,
	"./bg": 444,
	"./bg.js": 444,
	"./bm": 445,
	"./bm.js": 445,
	"./bn": 446,
	"./bn.js": 446,
	"./bo": 447,
	"./bo.js": 447,
	"./br": 448,
	"./br.js": 448,
	"./bs": 449,
	"./bs.js": 449,
	"./ca": 450,
	"./ca.js": 450,
	"./cs": 451,
	"./cs.js": 451,
	"./cv": 452,
	"./cv.js": 452,
	"./cy": 453,
	"./cy.js": 453,
	"./da": 454,
	"./da.js": 454,
	"./de": 455,
	"./de-at": 456,
	"./de-at.js": 456,
	"./de-ch": 457,
	"./de-ch.js": 457,
	"./de.js": 455,
	"./dv": 458,
	"./dv.js": 458,
	"./el": 459,
	"./el.js": 459,
	"./en-au": 460,
	"./en-au.js": 460,
	"./en-ca": 461,
	"./en-ca.js": 461,
	"./en-gb": 462,
	"./en-gb.js": 462,
	"./en-ie": 463,
	"./en-ie.js": 463,
	"./en-il": 464,
	"./en-il.js": 464,
	"./en-nz": 465,
	"./en-nz.js": 465,
	"./eo": 466,
	"./eo.js": 466,
	"./es": 467,
	"./es-do": 468,
	"./es-do.js": 468,
	"./es-us": 469,
	"./es-us.js": 469,
	"./es.js": 467,
	"./et": 470,
	"./et.js": 470,
	"./eu": 471,
	"./eu.js": 471,
	"./fa": 472,
	"./fa.js": 472,
	"./fi": 473,
	"./fi.js": 473,
	"./fo": 474,
	"./fo.js": 474,
	"./fr": 475,
	"./fr-ca": 476,
	"./fr-ca.js": 476,
	"./fr-ch": 477,
	"./fr-ch.js": 477,
	"./fr.js": 475,
	"./fy": 478,
	"./fy.js": 478,
	"./gd": 479,
	"./gd.js": 479,
	"./gl": 480,
	"./gl.js": 480,
	"./gom-latn": 481,
	"./gom-latn.js": 481,
	"./gu": 482,
	"./gu.js": 482,
	"./he": 483,
	"./he.js": 483,
	"./hi": 484,
	"./hi.js": 484,
	"./hr": 485,
	"./hr.js": 485,
	"./hu": 486,
	"./hu.js": 486,
	"./hy-am": 487,
	"./hy-am.js": 487,
	"./id": 488,
	"./id.js": 488,
	"./is": 489,
	"./is.js": 489,
	"./it": 490,
	"./it.js": 490,
	"./ja": 491,
	"./ja.js": 491,
	"./jv": 492,
	"./jv.js": 492,
	"./ka": 493,
	"./ka.js": 493,
	"./kk": 494,
	"./kk.js": 494,
	"./km": 495,
	"./km.js": 495,
	"./kn": 496,
	"./kn.js": 496,
	"./ko": 497,
	"./ko.js": 497,
	"./ky": 498,
	"./ky.js": 498,
	"./lb": 499,
	"./lb.js": 499,
	"./lo": 500,
	"./lo.js": 500,
	"./lt": 501,
	"./lt.js": 501,
	"./lv": 502,
	"./lv.js": 502,
	"./me": 503,
	"./me.js": 503,
	"./mi": 504,
	"./mi.js": 504,
	"./mk": 505,
	"./mk.js": 505,
	"./ml": 506,
	"./ml.js": 506,
	"./mn": 507,
	"./mn.js": 507,
	"./mr": 508,
	"./mr.js": 508,
	"./ms": 509,
	"./ms-my": 510,
	"./ms-my.js": 510,
	"./ms.js": 509,
	"./mt": 511,
	"./mt.js": 511,
	"./my": 512,
	"./my.js": 512,
	"./nb": 513,
	"./nb.js": 513,
	"./ne": 514,
	"./ne.js": 514,
	"./nl": 515,
	"./nl-be": 516,
	"./nl-be.js": 516,
	"./nl.js": 515,
	"./nn": 517,
	"./nn.js": 517,
	"./pa-in": 518,
	"./pa-in.js": 518,
	"./pl": 519,
	"./pl.js": 519,
	"./pt": 520,
	"./pt-br": 521,
	"./pt-br.js": 521,
	"./pt.js": 520,
	"./ro": 522,
	"./ro.js": 522,
	"./ru": 523,
	"./ru.js": 523,
	"./sd": 524,
	"./sd.js": 524,
	"./se": 525,
	"./se.js": 525,
	"./si": 526,
	"./si.js": 526,
	"./sk": 527,
	"./sk.js": 527,
	"./sl": 528,
	"./sl.js": 528,
	"./sq": 529,
	"./sq.js": 529,
	"./sr": 530,
	"./sr-cyrl": 531,
	"./sr-cyrl.js": 531,
	"./sr.js": 530,
	"./ss": 532,
	"./ss.js": 532,
	"./sv": 533,
	"./sv.js": 533,
	"./sw": 534,
	"./sw.js": 534,
	"./ta": 535,
	"./ta.js": 535,
	"./te": 536,
	"./te.js": 536,
	"./tet": 537,
	"./tet.js": 537,
	"./tg": 538,
	"./tg.js": 538,
	"./th": 539,
	"./th.js": 539,
	"./tl-ph": 540,
	"./tl-ph.js": 540,
	"./tlh": 541,
	"./tlh.js": 541,
	"./tr": 542,
	"./tr.js": 542,
	"./tzl": 543,
	"./tzl.js": 543,
	"./tzm": 544,
	"./tzm-latn": 545,
	"./tzm-latn.js": 545,
	"./tzm.js": 544,
	"./ug-cn": 546,
	"./ug-cn.js": 546,
	"./uk": 547,
	"./uk.js": 547,
	"./ur": 548,
	"./ur.js": 548,
	"./uz": 549,
	"./uz-latn": 550,
	"./uz-latn.js": 550,
	"./uz.js": 549,
	"./vi": 551,
	"./vi.js": 551,
	"./x-pseudo": 552,
	"./x-pseudo.js": 552,
	"./yo": 553,
	"./yo.js": 553,
	"./zh-cn": 554,
	"./zh-cn.js": 554,
	"./zh-hk": 555,
	"./zh-hk.js": 555,
	"./zh-tw": 556,
	"./zh-tw.js": 556
};
function webpackContext(req) {
	return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
	var id = map[req];
	if(!(id + 1)) // check for number or string
		throw new Error("Cannot find module '" + req + "'.");
	return id;
};
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 1083;

/***/ }),

/***/ 1095:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GroupFilterPipe; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};

/**
 * Generated class for the GroupFilterPipe pipe.
 *
 * See https://angular.io/api/core/Pipe for more info on Angular Pipes.
 */
var GroupFilterPipe = /** @class */ (function () {
    function GroupFilterPipe() {
    }
    /**
     * Takes a value and makes it lowercase.
     */
    GroupFilterPipe.prototype.transform = function (items, term) {
        // I am unsure what id is here. did you mean title?
        return items.filter(function (item) { return item.labels.indexOf(term) !== -1; });
    };
    GroupFilterPipe = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Pipe"])({
            name: 'groupFilter',
        })
    ], GroupFilterPipe);
    return GroupFilterPipe;
}());

//# sourceMappingURL=group-filter.js.map

/***/ }),

/***/ 1096:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DynamicFieldDirective; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_forms__ = __webpack_require__(26);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__form_button_form_button_component__ = __webpack_require__(566);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__form_input_form_input_component__ = __webpack_require__(567);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__form_select_form_select_component__ = __webpack_require__(568);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var components = {
    button: __WEBPACK_IMPORTED_MODULE_2__form_button_form_button_component__["a" /* FormButtonComponent */],
    input: __WEBPACK_IMPORTED_MODULE_3__form_input_form_input_component__["a" /* FormInputComponent */],
    select: __WEBPACK_IMPORTED_MODULE_4__form_select_form_select_component__["a" /* FormSelectComponent */]
};
var DynamicFieldDirective = /** @class */ (function () {
    function DynamicFieldDirective(resolver, container) {
        this.resolver = resolver;
        this.container = container;
    }
    DynamicFieldDirective.prototype.ngOnChanges = function () {
        if (this.component) {
            this.component.instance.config = this.config;
            this.component.instance.group = this.group;
        }
    };
    DynamicFieldDirective.prototype.ngOnInit = function () {
        if (!components[this.config.type]) {
            var supportedTypes = Object.keys(components).join(', ');
            throw new Error("Trying to use an unsupported type (" + this.config.type + ").\n        Supported types: " + supportedTypes);
        }
        var component = this.resolver.resolveComponentFactory(components[this.config.type]);
        this.component = this.container.createComponent(component);
        this.component.instance.config = this.config;
        this.component.instance.group = this.group;
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Object)
    ], DynamicFieldDirective.prototype, "config", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", __WEBPACK_IMPORTED_MODULE_1__angular_forms__["b" /* FormGroup */])
    ], DynamicFieldDirective.prototype, "group", void 0);
    DynamicFieldDirective = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Directive"])({
            selector: '[dynamicField]'
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_core__["ComponentFactoryResolver"],
            __WEBPACK_IMPORTED_MODULE_0__angular_core__["ViewContainerRef"]])
    ], DynamicFieldDirective);
    return DynamicFieldDirective;
}());

//# sourceMappingURL=dynamic-field.directive.js.map

/***/ }),

/***/ 1186:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return NSPCounting; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ionic_native_splash_screen__ = __webpack_require__(276);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(279);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ngx_translate_core__ = __webpack_require__(257);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_ionic_angular__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ncinga_sp_nsp_app_core_dist_cache_settings__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ncinga_sp_nsp_app_core_dist_providers_app_state__ = __webpack_require__(35);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ncinga_sp_nsp_app_core_dist_auth_auth_provider__ = __webpack_require__(69);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ncinga_sp_nsp_app_core_dist_providers_application_manager__ = __webpack_require__(211);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__providers_activation_service_activation_service__ = __webpack_require__(142);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__providers_app_extractor_app_extractor__ = __webpack_require__(146);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_ngx_logger__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__ncinga_sp_nsp_app_core_dist_providers_app_master_provider__ = __webpack_require__(82);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__ionic_native_android_full_screen__ = __webpack_require__(774);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__ionic_native_screen_orientation__ = __webpack_require__(259);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [0, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};















var NSPCounting = /** @class */ (function () {
    function NSPCounting(translate, platformSvc, settings, config, statusBar, logger, splashScreen, appSvc, appMgr, authService, actSvc, appBuilder, appMasterSvc, androidFullScreen, screenOrientation) {
        var _this = this;
        this.translate = translate;
        this.platformSvc = platformSvc;
        this.settings = settings;
        this.config = config;
        this.statusBar = statusBar;
        this.logger = logger;
        this.splashScreen = splashScreen;
        this.appSvc = appSvc;
        this.appMgr = appMgr;
        this.authService = authService;
        this.actSvc = actSvc;
        this.appBuilder = appBuilder;
        this.appMasterSvc = appMasterSvc;
        this.androidFullScreen = androidFullScreen;
        this.screenOrientation = screenOrientation;
        this.rootPage = 'setting-up';
        this.params = {};
        /*
         * Todo get pages from menu provider : purchased modules
         * */
        this.pages = [
            { title: 'Home', component: 'AppLandingPage', icon: 'home' },
            { title: 'Hot Updates', component: 'CheckUpdatePage', icon: 'search' }
        ];
        this.menuModel = [];
        this.androidFullScreen.isImmersiveModeSupported()
            .then(function () { return _this.androidFullScreen.immersiveMode(); })
            .catch(function (error) { return _this.logger.log(error); });
        this.platformSvc.ready().then(function () {
            // Okay, so the platform is ready and our plugins are available.
            // Here you can do any higher level native things you might need.
            _this.statusBar.styleDefault();
            _this.splashScreen.hide();
            _this.setupLocalStorage().then(function (res) {
                _this.initApp();
                //noinspection TypeScriptUnresolvedFunction
                _this.settings.getValue('orientation').then(function (res) {
                    if (res) {
                        _this.logger.debug('app orientation :', res);
                        _this.screenOrientation.lock(res);
                    }
                });
            });
            _this.appMasterSvc.init();
        });
        this.initTranslate();
    }
    NSPCounting.prototype.initTranslate = function () {
        var _this = this;
        // Set the default language for translation strings, and the current language.
        this.translate.setDefaultLang('en');
        var browserLang = this.translate.getBrowserLang();
        if (browserLang) {
            if (browserLang === 'zh') {
                var browserCultureLang = this.translate.getBrowserCultureLang();
                if (browserCultureLang.match(/-CN|CHS|Hans/i)) {
                    this.translate.use('zh-cmn-Hans');
                }
                else if (browserCultureLang.match(/-TW|CHT|Hant/i)) {
                    this.translate.use('zh-cmn-Hant');
                }
            }
            else {
                this.translate.use(this.translate.getBrowserLang());
            }
        }
        else {
            this.translate.use('en'); // Set your language here
        }
        this.translate.get(['BACK_BUTTON_TEXT']).subscribe(function (values) {
            _this.config.set('ios', 'backButtonText', values.BACK_BUTTON_TEXT);
        });
    };
    NSPCounting.prototype.initApp = function () {
        var _this = this;
        /*
         * pause and resume handlers
         * */
        this.onPauseSubscription = this.platformSvc.pause.subscribe(function () {
            // do something meaningful when the app is put in the foreground
        });
        this.onResumeSubscription = this.platformSvc.resume.subscribe(function () {
            // do something meaningful when the app is active
        });
        // check whether app is properly activated
        this.actSvc.isActivationModuleReady().subscribe(function (res) {
            _this.logger.debug('Activation Module Ready');
        }, function () {
            _this.rootPage = 'ActivationPage';
        }, function () {
            if (_this.actSvc.isActivated()) {
                // load app master
                _this.appBuilder.loadAppMaster();
                _this.menuModel = _this.appBuilder.getMainNavigation();
                _this.authService.isAuthModuleReady().subscribe(function (x) {
                    _this.logger.debug('Authentication Module Ready');
                }, function (e) {
                    _this.rootPage = 'LoginPage';
                }, function () {
                    if (_this.authService.authenticated()) {
                        /* go to landing page of main module*/
                        _this.selectAndOpenPage();
                    }
                    else {
                        _this.rootPage = 'LoginPage';
                    }
                });
            }
            else {
                _this.rootPage = 'ActivationPage';
            }
        });
        this.appSvc.subscribe('LOGIN_SUCCESSFUL', function (e) {
            /*
             * TODO: initialize all app functions
             * */
            _this.selectAndOpenPage();
        });
    };
    NSPCounting.prototype.setupLocalStorage = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: 
                    /*
                     * IMPORTANT : to keep app wait until it loads app profile from localstorage
                     * */
                    return [4 /*yield*/, this.settings.load().then(function (res) {
                        })];
                    case 1:
                        /*
                         * IMPORTANT : to keep app wait until it loads app profile from localstorage
                         * */
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    NSPCounting.prototype.openPage = function (page) {
        // Reset the content nav to have just this page
        // we wouldn't want the back button to show in this scenario
        this.nav.setRoot(page.component, { conf: page.args }, { animate: true });
    };
    NSPCounting.prototype.openSubPage = function (pageName) {
        this.nav.push(pageName);
    };
    NSPCounting.prototype.selectAndOpenPage = function () {
        return __awaiter(this, void 0, void 0, function () {
            var landing;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.appBuilder.loadAppMaster();
                        this.menuModel = this.appBuilder.getMainNavigation();
                        landing = this.appBuilder.getStartingPage();
                        return [4 /*yield*/, this.appMgr.init()];
                    case 1:
                        _a.sent();
                        this.logger.debug('============= START MAIN PAGE NAVIGATION 0 ===========');
                        this.doInitializeApp();
                        // setTimeout(()=>{
                        this.nav.setRoot(landing.component, { conf: landing.args }, { animate: true, direction: 'forward' });
                        this.logger.debug('============= START MAIN PAGE NAVIGATION 1 ===========');
                        return [2 /*return*/];
                }
            });
        });
    };
    /*
     * do app initializations after login
     * */
    NSPCounting.prototype.doInitializeApp = function () {
        this.appMgr.initCommunicationChannel();
    };
    NSPCounting.prototype.doLogout = function () {
        this.authService.logout();
        this.appMgr.closeAppSession();
        this.nav.setRoot('LoginPage', null, { animate: true });
    };
    NSPCounting.prototype.ngOnDestroy = function () {
        try {
            this.onPauseSubscription.unsubscribe();
            this.onResumeSubscription.unsubscribe();
        }
        catch (e) {
        }
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["ViewChild"])(__WEBPACK_IMPORTED_MODULE_4_ionic_angular__["l" /* Nav */]),
        __metadata("design:type", __WEBPACK_IMPORTED_MODULE_4_ionic_angular__["l" /* Nav */])
    ], NSPCounting.prototype, "nav", void 0);
    NSPCounting = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            template: "<ion-menu [content]=\"content\" [swipeEnabled]=\"false\" class=\"main-menu\">\n    <ion-header class=\"menu-header\" color=\"header\">\n     <ion-item>\n    <ion-thumbnail item-start>\n      <img src=\"assets/img/nfactory.png\">\n    </ion-thumbnail>\n  </ion-item>\n    </ion-header>\n    <ion-content>\n      <ion-list  *ngFor=\"let p of menuModel\">\n        <ion-list-header class=\"main-header\">{{p.name}}</ion-list-header>\n        <ion-item color=\"header\" menuClose ion-item *ngFor=\"let m of p.children\">\n          <div  (tap)=\"openPage(m)\" menuClose>\n         <ion-icon class=\"menu-icon\" [name]=\"m.icon\"></ion-icon> {{m.title}}\n        </div>\n        <ion-icon item-end *ngIf=\"m.setting\" name=\"settings\" (tap)=\"openPage(m.setting)\"></ion-icon>\n        </ion-item>\n      </ion-list>\n    </ion-content>\n    <ion-footer class=\"menu-footer\" color=\"header\">\n    <ion-segment  color=\"header\">\n      <ion-segment-button (click)=\"doLogout()\" menuClose color=\"header\">\n        Sign Out <ion-icon name=\"log-out\"></ion-icon>\n      </ion-segment-button>\n      <ion-segment-button menuClose (click)=\"openSubPage('SettingsPage')\" color=\"header\">\n        Settings <ion-icon name=\"settings\"></ion-icon>\n      </ion-segment-button>\n    </ion-segment>\n  </ion-footer>\n  </ion-menu>\n  <ion-nav #content [root]=\"rootPage\" [rootParams]=\"params\"></ion-nav>"
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_3__ngx_translate_core__["c" /* TranslateService */],
            __WEBPACK_IMPORTED_MODULE_4_ionic_angular__["p" /* Platform */],
            __WEBPACK_IMPORTED_MODULE_5__ncinga_sp_nsp_app_core_dist_cache_settings__["a" /* Settings */],
            __WEBPACK_IMPORTED_MODULE_4_ionic_angular__["c" /* Config */],
            __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */],
            __WEBPACK_IMPORTED_MODULE_11_ngx_logger__["b" /* NGXLogger */],
            __WEBPACK_IMPORTED_MODULE_1__ionic_native_splash_screen__["a" /* SplashScreen */],
            __WEBPACK_IMPORTED_MODULE_6__ncinga_sp_nsp_app_core_dist_providers_app_state__["a" /* ApplicationService */],
            __WEBPACK_IMPORTED_MODULE_8__ncinga_sp_nsp_app_core_dist_providers_application_manager__["a" /* ApplicationManager */],
            __WEBPACK_IMPORTED_MODULE_7__ncinga_sp_nsp_app_core_dist_auth_auth_provider__["a" /* AuthProvider */],
            __WEBPACK_IMPORTED_MODULE_9__providers_activation_service_activation_service__["a" /* ActivationService */],
            __WEBPACK_IMPORTED_MODULE_10__providers_app_extractor_app_extractor__["a" /* AppExtractorService */],
            __WEBPACK_IMPORTED_MODULE_12__ncinga_sp_nsp_app_core_dist_providers_app_master_provider__["a" /* AppMasterProvider */],
            __WEBPACK_IMPORTED_MODULE_13__ionic_native_android_full_screen__["a" /* AndroidFullScreen */],
            __WEBPACK_IMPORTED_MODULE_14__ionic_native_screen_orientation__["a" /* ScreenOrientation */]])
    ], NSPCounting);
    return NSPCounting;
}());

//# sourceMappingURL=app.component.js.map

/***/ }),

/***/ 1190:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppComponentsModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_header__ = __webpack_require__(1191);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist_providers_application_context__ = __webpack_require__(33);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
/**
 * Created by shadeeka on 2/26/18.
 */





var AppComponentsModule = /** @class */ (function () {
    function AppComponentsModule() {
    }
    AppComponentsModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_3__angular_core__["NgModule"])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__app_header__["a" /* AppHeader */]
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* IonicModule */],
                __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["b" /* HttpClientModule */]
            ],
            entryComponents: [],
            exports: [
                __WEBPACK_IMPORTED_MODULE_2__app_header__["a" /* AppHeader */]
            ],
            providers: [
                __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist_providers_application_context__["a" /* ApplicationContext */]
            ]
        })
    ], AppComponentsModule);
    return AppComponentsModule;
}());

//# sourceMappingURL=app.component.module.js.map

/***/ }),

/***/ 1191:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppHeader; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ncinga_sp_nsp_app_core_dist_providers_application_context__ = __webpack_require__(33);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
 * Created by shadeeka on 2/26/18.
 */



var AppHeader = /** @class */ (function () {
    function AppHeader(alertCtrl, appCtx) {
        this.alertCtrl = alertCtrl;
        this.appCtx = appCtx;
    }
    AppHeader.prototype.ngAfterViewInit = function () {
    };
    AppHeader.prototype.changeStation = function () {
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", String)
    ], AppHeader.prototype, "title", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Object)
    ], AppHeader.prototype, "selectedStation", void 0);
    AppHeader = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'app-header',
            template: "<ion-navbar color=\"primary\">\n        <button ion-button menuToggle>\n            <ion-icon name=\"menu\"></ion-icon>\n        </button>\n        <ion-title>{{title}}</ion-title>\n        <ion-buttons end>\n        <button ion-button icon-only>\n           <ion-icon name=\"notifications\"></ion-icon>\n         </button>\n         <button ion-button icon-right outline (click)=\"changeStation()\">\n           <span *ngIf=\"selectedStation\">{{selectedStation.name}}</span>\n           <ion-icon name=\"pin\"></ion-icon>\n         </button>\n    </ion-buttons>\n    </ion-navbar>"
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */], __WEBPACK_IMPORTED_MODULE_2__ncinga_sp_nsp_app_core_dist_providers_application_context__["a" /* ApplicationContext */]])
    ], AppHeader);
    return AppHeader;
}());

//# sourceMappingURL=app.header.js.map

/***/ }),

/***/ 1197:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppMasterServiceImplementation; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_extractor_app_extractor__ = __webpack_require__(146);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_ngx_logger__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist_providers_app_state__ = __webpack_require__(35);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





/*
 Generated class for the AppMasterServiceProvider provider.

 See https://angular.io/guide/dependency-injection for more info on providers
 and Angular DI.
 */
var AppMasterServiceImplementation = /** @class */ (function () {
    function AppMasterServiceImplementation(http, appExtSvc, logger, appSvc) {
        this.http = http;
        this.appExtSvc = appExtSvc;
        this.logger = logger;
        this.appSvc = appSvc;
        this.viewDescriptors = [];
        this.APP_SETTINGS = 'pre_settings';
        this.APP_TYPE = 'product_type';
    }
    AppMasterServiceImplementation.prototype.init = function () {
        var _this = this;
        this.evtHandler = this.appSvc.subscribe('APP_EXTRACTION_SUCCESS', function (res) {
            _this.setCurrentApp();
        });
    };
    AppMasterServiceImplementation.prototype.setCurrentApp = function () {
        this.selectedAppCof = this.appExtSvc.getCurrentApp();
        if (this.selectedAppCof) {
            this.updateViewDescriptors();
        }
    };
    AppMasterServiceImplementation.prototype.getCurrentViewDescriptors = function () {
        return this.viewDescriptors;
    };
    AppMasterServiceImplementation.prototype.getRootPage = function () {
        var landingPgs = this.viewDescriptors.filter(function (viewConf) { return viewConf.is_landing; });
        return landingPgs[0];
    };
    AppMasterServiceImplementation.prototype.getPreSettingsData = function () {
        return this.selectedAppCof[this.APP_SETTINGS];
    };
    AppMasterServiceImplementation.prototype.getAppType = function () {
        return this.selectedAppCof[this.APP_TYPE];
    };
    AppMasterServiceImplementation.prototype.updateViewDescriptors = function () {
        var _this = this;
        try {
            this.selectedAppCof.modules.forEach(function (mod) {
                mod.view_descriptors.forEach(function (view) {
                    var viewCopy = Object.assign({}, view);
                    _this.viewDescriptors.push(viewCopy);
                });
            });
        }
        catch (e) {
            this.logger.error('Error while collecting view configs. Please check APP MASTER');
        }
    };
    AppMasterServiceImplementation.prototype.dispose = function () {
        try {
            this.evtHandler.unsubscribe();
        }
        catch (e) {
            this.logger.error('error when removing event handler');
        }
    };
    AppMasterServiceImplementation.prototype.getCurrentModule = function () {
        return this.selectedAppCof.modules[0];
    };
    AppMasterServiceImplementation = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */],
            __WEBPACK_IMPORTED_MODULE_2__app_extractor_app_extractor__["a" /* AppExtractorService */],
            __WEBPACK_IMPORTED_MODULE_3_ngx_logger__["b" /* NGXLogger */], __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist_providers_app_state__["a" /* ApplicationService */]])
    ], AppMasterServiceImplementation);
    return AppMasterServiceImplementation;
}());

//# sourceMappingURL=app-master-service.js.map

/***/ }),

/***/ 142:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ActivationService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ngx_logger__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_storage__ = __webpack_require__(47);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__env_provider__ = __webpack_require__(432);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ionic_native_device__ = __webpack_require__(206);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_angular2_jwt__ = __webpack_require__(129);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_angular2_jwt___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_angular2_jwt__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utill_app_utill__ = __webpack_require__(1080);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};









var uuidv4 = __webpack_require__(1085);
/*
 Generated class for the ActivationService provider.

 See https://angular.io/guide/dependency-injection for more info on providers
 and Angular DI.
 */
var ActivationService = /** @class */ (function () {
    function ActivationService(http, logger, storage, envPro, device) {
        this.http = http;
        this.logger = logger;
        this.storage = storage;
        this.envPro = envPro;
        this.device = device;
        this.APP_ACTIVATION_TOKEN = 'nsp_act_tkn';
        this.httpOptions = {
            headers: new __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["c" /* HttpHeaders */]({
                'Content-Type': 'application/json'
            })
        };
        this.deviceId = 'web_' + uuidv4();
        this.logger.log('Hello ActivationService Provider');
    }
    ActivationService.prototype.isActivated = function () {
        // Check if there's an unexpired JWT
        // It searches for an item in localStorage with key == 'bs_token'
        // return tokenNotExpired('', this.token);
        if (this.gatePass) {
            var totalValidLicense_1 = 0;
            if (this.gatePass.apps_tkns) {
                this.gatePass.apps_tkns.forEach(function (license) {
                    if (Object(__WEBPACK_IMPORTED_MODULE_7_angular2_jwt__["tokenNotExpired"])('', license.token)) {
                        totalValidLicense_1++;
                    }
                });
                if (this.gatePass.apps_tkns.length === totalValidLicense_1) {
                    return true;
                }
            }
            else {
                return false;
            }
        }
        else {
            return false;
        }
    };
    ActivationService.prototype.setInstalledApp = function (app) {
        this.installedApp = app;
    };
    ActivationService.prototype.getInitConfigs = function () {
        var requiredInputs = [];
        try {
            this.installedApp.apps.forEach(function (app) {
                if (app.pre_settings) {
                    requiredInputs.push({
                        app_id: app.id,
                        app_name: app.app_name,
                        product_type: app.product_type,
                        settings: app.pre_settings
                    });
                }
                /*  app.modules.forEach(module => {
                 if (module.init_args) {
                 module.init_args.forEach(arg => {
                 requiredInputs.push(arg);
                 });
                 }
                 });*/
            });
        }
        catch (e) {
            this.logger.error(e);
        }
        return requiredInputs;
    };
    ActivationService.prototype.isActivationModuleReady = function () {
        var _this = this;
        var result = __WEBPACK_IMPORTED_MODULE_3_rxjs__["Observable"].create(function (observer) {
            _this.storage.get(_this.APP_ACTIVATION_TOKEN).then(function (tk) {
                if (tk) {
                    _this.gatePass = tk;
                    _this.token = tk.tkn;
                    _this.logger.debug('activation token found ' + _this.token);
                    observer.next('completed');
                    observer.complete();
                }
                else {
                    observer.error();
                }
            }, function () {
                observer.error();
            });
        });
        return result;
    };
    ActivationService.prototype.setLicense = function (arr) {
        return this.storage.set(this.APP_ACTIVATION_TOKEN, { tkn: this.token, apps_tkns: arr });
    };
    ActivationService.prototype.doActivate = function (code) {
        this.token = code;
        return this.storage.set(this.APP_ACTIVATION_TOKEN, { tkn: code });
    };
    ActivationService.prototype.verifyToken = function (code) {
        var url = this.envPro.getEnvVar(__WEBPACK_IMPORTED_MODULE_5__env_provider__["b" /* MainServiceEndPoints */].VALIDATE_TOKEN);
        return this.http.post(url, JSON.stringify({ token: code }), this.httpOptions);
    };
    ActivationService.prototype.getAvailableApps = function () {
        var url = this.envPro.getEnvVar(__WEBPACK_IMPORTED_MODULE_5__env_provider__["b" /* MainServiceEndPoints */].GET_APPSFOR_TENAN);
        return this.http.post(url, JSON.stringify({ act_tkn: this.token }), this.httpOptions);
    };
    ActivationService.prototype.getAppConfig = function (appMasterId) {
        var url = this.envPro.getEnvVar(__WEBPACK_IMPORTED_MODULE_5__env_provider__["b" /* MainServiceEndPoints */].GET_APP_MASTER);
        return this.http.post(url, JSON.stringify({ act_tkn: this.token, appmasterid: appMasterId }), this.httpOptions);
    };
    ActivationService.prototype.removeApp = function () {
        // remove app tokens
        return this.storage.remove(this.APP_ACTIVATION_TOKEN);
        // send dealocate license to server
    };
    ActivationService.prototype.registerAgentApp = function (apps) {
        var url = this.envPro.getEnvVar(__WEBPACK_IMPORTED_MODULE_5__env_provider__["b" /* MainServiceEndPoints */].ACTIVATE_APP);
        /*
         *{
         'app_master_id': '',
         'teant' : '',
         'cluster' :'',
         'factory' :'',
         'dept':'',
         'lines' :[],
         'app_name' : 'Packing Qc',
         'mac_add' : '1A234Adsafsf2323',
         }
         *
         * */
        var device = (this.device.serial === 'unknown') ? this.deviceId : this.device.serial;
        var date = new Date();
        var stringTz = __WEBPACK_IMPORTED_MODULE_8__utill_app_utill__["a" /* tzdetect */].matches('9999')[0]; // Intl.DateTimeFormat().resolvedOptions().timeZone;
        return this.http.post(url, JSON.stringify({
            act_tkn: this.token,
            apps: apps,
            mac_add: device,
            timezone: stringTz,
            timezoneOffset: date.getTimezoneOffset()
        }), this.httpOptions);
    };
    ActivationService.prototype.acknowledgeAgent = function (apps, updatetype) {
        var url = this.envPro.getEnvVar(__WEBPACK_IMPORTED_MODULE_5__env_provider__["b" /* MainServiceEndPoints */].CLIENT_PROFILE_ACK);
        var deviceMac = (this.device.serial === 'unknown' || this.device.serial === null) ? this.deviceId : this.device.serial;
        return this.http.post(url, JSON.stringify({
            act_tkn: this.token,
            device_info: {
                'mac_add': deviceMac,
                'os': this.device.platform || 'web',
                'os_version': this.device.cordova || 'web',
                'browser_type': 'Chrome',
                'browser_version': this.device.version || '0.0.0',
                'model': this.device.model || 'web',
                'manufacturer': this.device.manufacturer || 'web',
                'serial_no': deviceMac
            },
            app_configs: apps,
            type: updatetype
        }), this.httpOptions);
    };
    ActivationService.prototype.checkUpdateAvailability = function (data) {
        var url = this.envPro.getEnvVar(__WEBPACK_IMPORTED_MODULE_5__env_provider__["b" /* MainServiceEndPoints */].UPDATE_DETAILS);
        return this.http.post(url, JSON.stringify(data), this.httpOptions);
    };
    /*
     * get supporting data for app presettings
     * */
    ActivationService.prototype.getPreSettingsData = function (tenantId, subject_key, params) {
        var url = this.envPro.getEnvVar(__WEBPACK_IMPORTED_MODULE_5__env_provider__["b" /* MainServiceEndPoints */].SUPPORTING_DATA);
        var ptypes = [];
        this.installedApp.apps.forEach(function (app) {
            ptypes.push(app.product_type);
        });
        var msgBody = {
            tenant: tenantId,
            subject_key: subject_key,
            app_types: ptypes,
            context: 'app'
        };
        return this.http.post(url, JSON.stringify(msgBody), this.httpOptions);
    };
    /*
     * get supporting data for app presettings
     * */
    ActivationService.prototype.getFinalizedAppData = function (tenantId, subject_key, ptype, context) {
        var url = this.envPro.getEnvVar(__WEBPACK_IMPORTED_MODULE_5__env_provider__["b" /* MainServiceEndPoints */].SUPPORTING_DATA);
        var msgBody = {
            tenant: tenantId,
            subject_key: subject_key,
            app_types: [ptype],
            context: 'bctx'
        };
        return this.http.post(url, JSON.stringify(msgBody), this.httpOptions);
    };
    ActivationService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */],
            __WEBPACK_IMPORTED_MODULE_2_ngx_logger__["b" /* NGXLogger */],
            __WEBPACK_IMPORTED_MODULE_4__ionic_storage__["b" /* Storage */],
            __WEBPACK_IMPORTED_MODULE_5__env_provider__["a" /* EnvProvider */],
            __WEBPACK_IMPORTED_MODULE_6__ionic_native_device__["a" /* Device */]])
    ], ActivationService);
    return ActivationService;
}());

//# sourceMappingURL=activation-service.js.map

/***/ }),

/***/ 146:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppExtractorService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ngx_logger__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist_cache_settings__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist_providers_app_state__ = __webpack_require__(35);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [0, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};





/*
 Generated class for the AppExtractorService provider.

 See https://angular.io/guide/dependency-injection for more info on providers
 and Angular DI.
 */
var AppExtractorService = /** @class */ (function () {
    function AppExtractorService(http, logger, settings, appSvc) {
        this.http = http;
        this.logger = logger;
        this.settings = settings;
        this.appSvc = appSvc;
        this.APP_MASTER_KEY = 'app_master';
        logger.log('Hello AppExtractorService Provider');
    }
    AppExtractorService.prototype.loadAppMaster = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.logger.debug('loading app master');
                return [2 /*return*/, new Promise(function (resolve) {
                        _this.appMaster = _this.settings.getCacheValue(_this.APP_MASTER_KEY);
                        _this.appMasterId = _this.appMaster['app_master_id'];
                        resolve(true);
                    })];
            });
        });
    };
    AppExtractorService.prototype.getMainNavigation = function () {
        var mainMenu = [];
        this.logger.debug('setting main menu');
        if (this.appMaster) {
            this.appMaster.apps.forEach(function (app) {
                // iterate through modules
                var appMenu = {};
                appMenu['name'] = app.app_name;
                appMenu['children'] = [];
                // setting page data
                var settingPage = {};
                app.modules.forEach(function (module) {
                    // iterate through views
                    module.view_descriptors.forEach(function (viewConf) {
                        if (viewConf.is_landing) {
                            var menuItem = {};
                            menuItem['component'] = viewConf.view_type;
                            menuItem['icon'] = 'home';
                            menuItem['title'] = viewConf.title || 'Untitled';
                            menuItem['args'] = viewConf;
                            appMenu['children'].push(menuItem);
                        }
                        else if (viewConf.is_setting) {
                            settingPage['component'] = viewConf.view_type;
                            settingPage['args'] = viewConf;
                        }
                    });
                    if (appMenu['children'].length > 0) {
                        appMenu['children'][0]['setting'] = settingPage;
                    }
                    mainMenu.push(appMenu);
                });
            });
            this.logger.debug('Setting root page');
            this.rootPage = (mainMenu[0]['children'][0]) ? mainMenu[0]['children'][0] : {
                component: 'AppLandingPage',
                args: {}
            };
            // setup root page
            this.logger.debug('Extraction process complete');
            this.appSvc.notifyDataChanged('APP_EXTRACTION_SUCCESS', Math.random());
        }
        return mainMenu;
    };
    AppExtractorService.prototype.getStartingPage = function () {
        return this.rootPage;
    };
    AppExtractorService.prototype.getSelectedAppId = function () {
    };
    AppExtractorService.prototype.getAppMasterId = function () {
        return this.appMasterId;
    };
    AppExtractorService.prototype.getCurrentApp = function () {
        /* let arr = this.appMaster.apps.filter( app => app.app_id === appId);
         return arr.length > 0 ? arr[0] : null;*/
        if (!this.appMaster) {
            return null;
        }
        else {
            return this.appMaster.apps[0];
        }
    };
    AppExtractorService.prototype.getAllProductTypesWithVersion = function () {
        var appsMap = {};
        this.appMaster.apps.forEach(function (app) {
            appsMap[app.product_type] = app.version;
        });
        // i.e {'sewing_qc': '1.0.0', 'qc_qc': '1.0.2'}
        return appsMap;
    };
    AppExtractorService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */], __WEBPACK_IMPORTED_MODULE_2_ngx_logger__["b" /* NGXLogger */], __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist_cache_settings__["a" /* Settings */], __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist_providers_app_state__["a" /* ApplicationService */]])
    ], AppExtractorService);
    return AppExtractorService;
}());

//# sourceMappingURL=app-extractor.js.map

/***/ }),

/***/ 273:
/***/ (function(module, exports) {

function webpackEmptyAsyncContext(req) {
	// Here Promise.resolve().then() is used instead of new Promise() to prevent
	// uncatched exception popping up in devtools
	return Promise.resolve().then(function() {
		throw new Error("Cannot find module '" + req + "'.");
	});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = 273;

/***/ }),

/***/ 331:
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/activitylog/activity.log.module": [
		1211,
		13
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/aql/aql-activity-log/aql-activity-log.module": [
		1212,
		12
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/aql/aql-pkg-detail/aql-pkg-detail.module": [
		1213,
		4
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/aql/pf-status/pf-status.module": [
		1214,
		11
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/class-one/class-one.module": [
		1215,
		10
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/class-two/class-two.module": [
		1216,
		3
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/grading/grading.module": [
		1217,
		2
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/location/location.module": [
		1218,
		1
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/recent/recent.module": [
		1219,
		9
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/rectified/rectified.module": [
		1220,
		8
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/settingPage/setting-view.module": [
		1221,
		7
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/summary-view/summary.view.module": [
		1222,
		6
	],
	"../../node_modules/@ncinga-sp/nsp-counting-classifi/viewbuilder/view-builder.module": [
		1223,
		5
	],
	"../../node_modules/@ncinga-sp/nsp-dashboard/landing-page/landing.page.module": [
		1224,
		0
	],
	"../pages/activation/activation-page.module": [
		1204,
		21
	],
	"../pages/app-landing/app-landing.module": [
		1203,
		20
	],
	"../pages/appselect/appselect.module": [
		1205,
		19
	],
	"../pages/login/login.module": [
		1206,
		18
	],
	"../pages/menu/menu.module": [
		1208,
		17
	],
	"../pages/module-config/module-config.module": [
		1207,
		16
	],
	"../pages/setting-up/setting-up.module": [
		1209,
		15
	],
	"../pages/settings/settings.module": [
		1210,
		14
	]
};
function webpackAsyncContext(req) {
	var ids = map[req];
	if(!ids)
		return Promise.reject(new Error("Cannot find module '" + req + "'."));
	return __webpack_require__.e(ids[1]).then(function() {
		return __webpack_require__(ids[0]);
	});
};
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
	return Object.keys(map);
};
webpackAsyncContext.id = 331;
module.exports = webpackAsyncContext;

/***/ }),

/***/ 432:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return MainServiceEndPoints; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EnvProvider; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ncinga_sp_nsp_app_core_dist_environment_environment_variables_token__ = __webpack_require__(61);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
};
/**
 * Created by Vijitha on 14/4/2017.
 */


var MainServiceEndPoints = /** @class */ (function () {
    function MainServiceEndPoints() {
    }
    MainServiceEndPoints.VALIDATE_TOKEN = 'VALIDATE_TOKEN';
    MainServiceEndPoints.GET_APPSFOR_TENAN = 'GET_APPSFOR_TENAN';
    MainServiceEndPoints.GET_APP_MASTER = 'GET_APP_MASTER';
    MainServiceEndPoints.ACTIVATE_APP = 'ACTIVATE_APP';
    MainServiceEndPoints.CLIENT_PROFILE_ACK = 'CLIENT_PROFILE_ACK';
    MainServiceEndPoints.UPDATE_DETAILS = 'UPDATE_DETAILS';
    MainServiceEndPoints.UPDATE_ACK = 'UPDATE_ACK';
    MainServiceEndPoints.SUPPORTING_DATA = 'SUPPORTING_DATA';
    return MainServiceEndPoints;
}());

var EnvProvider = /** @class */ (function () {
    function EnvProvider(envVariables) {
        // console.log('Setting AuthModule CONST with ENV VAR');
        this.envVariables = envVariables;
        this.svc_host = '/no_svc_host';
        this.licence_svc = '/no_licence_host';
        this.deploy_svc = '/no_deployment_host';
        this.core_svc = '/no_core_services';
        this.protocol = 'http://';
        this.env_vars = new Object();
        if (envVariables.protocol) {
            this.protocol = envVariables.protocol;
        }
        if (envVariables.service_host != null) {
            this.svc_host = envVariables.service_host;
        }
        if (envVariables.licence_services) {
            this.licence_svc = envVariables.licence_services;
        }
        if (envVariables.deploy_services) {
            this.deploy_svc = envVariables.deploy_services;
        }
        if (envVariables.deploy_services) {
            this.core_svc = envVariables.core_services;
        }
        // register all vars
        this.registerVars();
    }
    EnvProvider.prototype.registerVars = function () {
        // deployment services
        this.env_vars[MainServiceEndPoints.VALIDATE_TOKEN] = this.protocol + this.svc_host + this.licence_svc +
            '/activation/tenantapps';
        this.env_vars[MainServiceEndPoints.GET_APP_MASTER] = this.protocol + this.svc_host + this.licence_svc +
            '/activation/appmaster';
        this.env_vars[MainServiceEndPoints.ACTIVATE_APP] = this.protocol + this.svc_host + this.licence_svc +
            '/activation/activateapp';
        this.env_vars[MainServiceEndPoints.CLIENT_PROFILE_ACK] = this.protocol + this.svc_host + this.licence_svc +
            '/activation/agentack';
        this.env_vars[MainServiceEndPoints.UPDATE_DETAILS] = this.protocol + this.svc_host + this.deploy_svc +
            '/deploy/update/details';
        this.env_vars[MainServiceEndPoints.UPDATE_ACK] = this.protocol + this.svc_host + this.deploy_svc +
            '/deploy/update/ack';
        // core platform services
        this.env_vars[MainServiceEndPoints.SUPPORTING_DATA] = this.protocol + this.svc_host + this.core_svc +
            '/appctx';
    };
    EnvProvider.prototype.getEnvVar = function (arg) {
        return this.env_vars[arg];
    };
    EnvProvider = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __param(0, Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Inject"])(__WEBPACK_IMPORTED_MODULE_1__ncinga_sp_nsp_app_core_dist_environment_environment_variables_token__["a" /* EnvVariables */])),
        __metadata("design:paramtypes", [Object])
    ], EnvProvider);
    return EnvProvider;
}());

//# sourceMappingURL=env.provider.js.map

/***/ }),

/***/ 566:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FormButtonComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};

var FormButtonComponent = /** @class */ (function () {
    function FormButtonComponent() {
    }
    FormButtonComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'form-button',
            styles: ["button {\n  letter-spacing: -0.5px;\n  cursor: pointer;\n  background-color: #9d62c8;\n  outline: 0;\n  line-height: 1;\n  text-align: center;\n  padding: 12px 30px;\n  font-size: 15px;\n  font-weight: 600;\n  border-radius: 2px;\n  display: inline-block;\n  border: none;\n  color: #fff;\n  transition: background-color .3s, box-shadow .3s;\n\n  &:hover {\n    background-color: #a46dcc;\n    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);\n  }\n\n  &:disabled {\n    background: rgba(0, 0, 0, 0.2);\n    color: rgba(0, 0, 0, 0.4);\n    cursor: not-allowed;\n    box-shadow: none;\n  }\n}\n"],
            template: "<div class=\"dynamic-field form-button\"\n      [formGroup]=\"group\">\n      <button\n        [disabled]=\"config.disabled\"\n        type=\"submit\">\n        {{ config.label }}\n      </button>\n    </div>\n  "
        })
    ], FormButtonComponent);
    return FormButtonComponent;
}());

//# sourceMappingURL=form-button.component.js.map

/***/ }),

/***/ 567:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FormInputComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};

var FormInputComponent = /** @class */ (function () {
    function FormInputComponent() {
    }
    FormInputComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'form-input',
            styles: ["input {\n  display: block;\n  font-family: inherit;\n  font-size: 14px;\n  width: 100%;\n  border: 1px solid #F1F2F4;\n  outline: none;\n  padding: 10px 15px;\n  color: rgba(0, 0, 0, 0.7);\n  &:focus {\n    border: 1px solid rgba(0, 0, 0, 0.4);\n    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n  }\n}\n"],
            template: "<div class=\"dynamic-field form-input\" [formGroup]=\"group\">\n      <label>{{ config.label }}</label>\n      <input\n        type=\"text\"\n        [attr.placeholder]=\"config.placeholder\"\n        [formControlName]=\"config.name\">\n    </div>\n  "
        })
    ], FormInputComponent);
    return FormInputComponent;
}());

//# sourceMappingURL=form-input.component.js.map

/***/ }),

/***/ 568:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FormSelectComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var FormSelectComponent = /** @class */ (function () {
    function FormSelectComponent() {
    }
    FormSelectComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'form-select',
            styles: ["\n.select {\n  -webkit-appearance: none;\n  -moz-appearance: none;\n  text-indent: .01px;\n  text-overflow: '';\n  overflow: hidden;\n  font-family: inherit;\n  font-size: 14px;\n  padding: 10px 15px;\n  border-radius: 0;\n  color: rgba(0, 0, 0, 0.7);\n  border: 1px solid rgba(0, 0, 0, 0.1);\n  width: 100%;\n   max-width: 100%;\n  outline: none;\n  &:focus {\n    border: 1px solid rgba(0, 0, 0, 0.4);\n    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);\n  }\n}\n"
            ],
            template: "<div class=\"col dynamic-field form-select\"\n      [formGroup]=\"group\">\n      <label>{{ config.label }}</label>\n  <ion-select [formControlName]=\"config.name\" [placeholder]=\"config.placeholder\"\n   [multiple]=\"config.multiple\" [selectOptions]=\"{title:config.label}\">\n    <ion-option *ngFor=\"let option of config.options\" [value]=\"option.id\">{{option.name}}</ion-option>\n  </ion-select>\n    </div>\n  "
        }),
        __metadata("design:paramtypes", [])
    ], FormSelectComponent);
    return FormSelectComponent;
}());

//# sourceMappingURL=form-select.component.js.map

/***/ }),

/***/ 781:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InProgressComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__providers_activation_service_activation_service__ = __webpack_require__(142);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ngx_logger__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist_cache_settings__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_ionic_angular__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_angular2_jwt__ = __webpack_require__(129);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_angular2_jwt___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_angular2_jwt__);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/**
 * Created by shadeeka on 4/29/18.
 */






var InProgressComponent = /** @class */ (function () {
    function InProgressComponent(actSvc, logger, settings, viewCtrl, navParams) {
        this.actSvc = actSvc;
        this.logger = logger;
        this.settings = settings;
        this.viewCtrl = viewCtrl;
        this.navParams = navParams;
        this.jwtHelper = new __WEBPACK_IMPORTED_MODULE_5_angular2_jwt__["JwtHelper"]();
        this.progressModel = [
            {
                name: 'Downloading App'
            },
            {
                name: 'Installation in progress'
            }, {
                name: 'Installing app licence'
            },
            {
                name: 'Agent Registration'
            }
        ];
    }
    InProgressComponent.prototype.ionViewDidLoad = function () {
        this.appMasterRef = this.navParams.get('master');
        this.downloadAppMaster(this.appMasterRef['app_master_id']);
    };
    InProgressComponent.prototype.downloadAppMaster = function (appMasterId) {
        var _this = this;
        this.actSvc.getAppConfig(appMasterId).subscribe(function (res) {
            _this.currentAppMaster = res;
            _this.installApps(res);
            _this.progressModel[0]['done'] = true;
            _this.progressModel[0]['complete'] = true;
        }, function (error) {
            _this.progressModel[0]['complete'] = true;
            _this.progressModel[0]['error'] = true;
            _this.progressModel[0]['errorstatus'] = 'error occurred while downloading';
            _this.logger.error(error);
        });
    };
    /*
     * fetch and install app master
     * */
    InProgressComponent.prototype.installApps = function (appMaster) {
        var _this = this;
        this.actSvc.setInstalledApp(appMaster);
        this.settings.setValue('app_master', appMaster).then(function () {
            _this.progressModel[1]['done'] = true;
            _this.progressModel[1]['complete'] = true;
            _this.registerAgent();
        }, function (e) {
            _this.progressModel[1]['complete'] = true;
            _this.progressModel[1]['error'] = true;
            _this.progressModel[1]['errorstatus'] = e['message'];
            _this.logger.error(e);
        });
    };
    /*
     * register each app with a license
     * */
    InProgressComponent.prototype.registerAgent = function () {
        var _this = this;
        var fetch$ = [];
        try {
            this.currentAppMaster.apps.forEach(function (app) {
                fetch$.push({ app_id: app['app_id'], appName: app['app_name'] });
            });
            this.actSvc.registerAgentApp(fetch$).subscribe(function (res) {
                // save app licence
                _this.logger.debug(res);
                _this.progressModel[2]['done'] = true;
                _this.progressModel[2]['complete'] = true;
                _this.saveAppLicense(fetch$, res['tokens']);
            }, function (e) {
                _this.progressModel[2]['error'] = true;
                _this.progressModel[2]['complete'] = true;
                _this.progressModel[2]['errorstatus'] = e;
                _this.logger.error(e);
            });
        }
        catch (e) {
            this.logger.error('Register Agents Apps' + e);
        }
    };
    /*
     * save app licence and check license validation
     * */
    InProgressComponent.prototype.saveAppLicense = function (apps, arr) {
        var _this = this;
        if (!arr) {
            return;
        }
        this.actSvc.setLicense(arr).then(function (res) {
            // this.viewCtrl.dismiss();
            arr.forEach(function (iapp) {
                var license = _this.jwtHelper.decodeToken(iapp['token']);
                iapp['app_id'] = license['app_id'];
                iapp['license_key'] = license['license_key'];
                delete iapp['token'];
            });
            _this.acknowledgeAndExitView(arr);
        }, function (err) {
        });
        // this.viewCtrl.dismiss();
    };
    /*
     * send acknowledgement for agent registration
     * */
    InProgressComponent.prototype.acknowledgeAndExitView = function (apps) {
        var _this = this;
        this.actSvc.acknowledgeAgent(apps, 'new').subscribe(function (res) {
            _this.progressModel[3]['done'] = true;
            _this.progressModel[3]['complete'] = true;
            _this.viewCtrl.dismiss();
        }, function (e) {
            _this.progressModel[3]['complete'] = true;
            _this.progressModel[3]['error'] = true;
            _this.progressModel[3]['errorstatus'] = e;
            _this.logger.error(e);
            _this.viewCtrl.dismiss();
        });
    };
    InProgressComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'modal-progress',
            template: "\n<ion-header>\n <ion-navbar no-border-bottom color=\"mheader\">\n        <ion-title>\n            Installation in progress\n        </ion-title>\n    </ion-navbar>\n</ion-header>\n<ion-content>\n    <ion-grid no-padding>\n    <ion-row>\n    <ion-col>\n        <div class=\"bg-wrapper\">\n            Installing App {{appMasterRef?.name}}\n            <p>Please wait a while</p>\n        </div>\n    </ion-col>\n</ion-row>\n<ion-row>\n<ion-list class=\"progress-steps\">\n  <ion-item *ngFor=\"let step of progressModel\">\n  <ion-avatar *ngIf=\"!step.complete\" item-start>\n      <div class=\"progress float\">\n    <div class=\"progress__item\"></div>\n  </div>\n    </ion-avatar>\n    <ion-icon *ngIf=\"step.done\" item-start name=\"checkmark-circle\" color=\"c2\"></ion-icon>\n    <ion-icon *ngIf=\"step.error\" item-start name=\"close-circle\" color=\"danger\"></ion-icon>\n      {{step.name}}\n      <p *ngIf=\"step.error\">{{step.errorstatus}}</p>\n  </ion-item>\n  <ion-item item-right>Retry Installation <button ion-button (click)=\"downloadAppMaster(appMasterRef['app_master_id'])\">\n  <ion-icon name=\"refresh\"></ion-icon></button></ion-item>\n</ion-list>\n</ion-row>\n</ion-grid>\n</ion-content>\n"
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__providers_activation_service_activation_service__["a" /* ActivationService */],
            __WEBPACK_IMPORTED_MODULE_2_ngx_logger__["b" /* NGXLogger */],
            __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist_cache_settings__["a" /* Settings */],
            __WEBPACK_IMPORTED_MODULE_4_ionic_angular__["t" /* ViewController */],
            __WEBPACK_IMPORTED_MODULE_4_ionic_angular__["n" /* NavParams */]])
    ], InProgressComponent);
    return InProgressComponent;
}());

//# sourceMappingURL=Inprogress.component.js.map

/***/ }),

/***/ 782:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PipesModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__group_filter_group_filter__ = __webpack_require__(1095);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};


var PipesModule = /** @class */ (function () {
    function PipesModule() {
    }
    PipesModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({
            declarations: [__WEBPACK_IMPORTED_MODULE_1__group_filter_group_filter__["a" /* GroupFilterPipe */]],
            imports: [],
            exports: [__WEBPACK_IMPORTED_MODULE_1__group_filter_group_filter__["a" /* GroupFilterPipe */]]
        })
    ], PipesModule);
    return PipesModule;
}());

//# sourceMappingURL=pipes.module.js.map

/***/ }),

/***/ 783:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DynamicFormComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_forms__ = __webpack_require__(26);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var DynamicFormComponent = /** @class */ (function () {
    function DynamicFormComponent(fb) {
        this.fb = fb;
        this.config = [];
        this.submit = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"]();
    }
    Object.defineProperty(DynamicFormComponent.prototype, "controls", {
        get: function () {
            return this.config.filter(function (_a) {
                var type = _a.type;
                return type !== 'button';
            });
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(DynamicFormComponent.prototype, "changes", {
        get: function () {
            return this.form.valueChanges;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(DynamicFormComponent.prototype, "valid", {
        get: function () {
            return this.form.valid;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(DynamicFormComponent.prototype, "value", {
        get: function () {
            return this.form.value;
        },
        enumerable: true,
        configurable: true
    });
    DynamicFormComponent.prototype.ngOnInit = function () {
        this.form = this.createGroup();
    };
    DynamicFormComponent.prototype.ngOnChanges = function () {
        var _this = this;
        if (this.form) {
            var controls_1 = Object.keys(this.form.controls);
            var configControls_1 = this.controls.map(function (item) { return item.name; });
            controls_1
                .filter(function (control) { return !configControls_1.includes(control); })
                .forEach(function (control) { return _this.form.removeControl(control); });
            configControls_1
                .filter(function (control) { return !controls_1.includes(control); })
                .forEach(function (name) {
                var config = _this.config.find(function (control) { return control.name === name; });
                _this.form.addControl(name, _this.createControl(config));
            });
        }
    };
    DynamicFormComponent.prototype.createGroup = function () {
        var _this = this;
        var group = this.fb.group({});
        this.controls.forEach(function (control) { return group.addControl(control.name, _this.createControl(control)); });
        return group;
    };
    DynamicFormComponent.prototype.createControl = function (config) {
        var disabled = config.disabled, validation = config.validation, value = config.value;
        return this.fb.control({ disabled: disabled, value: value }, validation);
    };
    DynamicFormComponent.prototype.handleSubmit = function (event) {
        event.preventDefault();
        event.stopPropagation();
        this.submit.emit(this.value);
    };
    DynamicFormComponent.prototype.setDisabled = function (name, disable) {
        if (this.form.controls[name]) {
            var method = disable ? 'disable' : 'enable';
            this.form.controls[name][method]();
            return;
        }
        this.config = this.config.map(function (item) {
            if (item.name === name) {
                item.disabled = disable;
            }
            return item;
        });
    };
    DynamicFormComponent.prototype.setValue = function (name, value) {
        this.form.controls[name].setValue(value, { emitEvent: true });
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Array)
    ], DynamicFormComponent.prototype, "config", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Output"])(),
        __metadata("design:type", __WEBPACK_IMPORTED_MODULE_0__angular_core__["EventEmitter"])
    ], DynamicFormComponent.prototype, "submit", void 0);
    DynamicFormComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            exportAs: 'dynamicForm',
            selector: 'dynamic-form',
            styles: [":host /deep/ .dynamic-field {\n  margin-bottom: 15px;\n  label {\n    display: block;\n    font-size: 16px;\n    font-weight: 400;\n    letter-spacing: 0px;\n    margin-bottom: 10px;\n    color: rgba(0, 0, 0, 0.9);\n  }\n}\n"],
            template: "<form class=\"dynamic-form\"\n      [formGroup]=\"form\"\n      (submit)=\"handleSubmit($event)\">\n      <ng-container\n        *ngFor=\"let field of config;\"\n        dynamicField\n        [config]=\"field\"\n        [group]=\"form\">\n      </ng-container>\n    </form>\n  "
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_forms__["a" /* FormBuilder */]])
    ], DynamicFormComponent);
    return DynamicFormComponent;
}());

//# sourceMappingURL=dynamic-form.component.js.map

/***/ }),

/***/ 784:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DynamicFormModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(34);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(26);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_dynamic_field_dynamic_field_directive__ = __webpack_require__(1096);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__containers_dynamic_form_dynamic_form_component__ = __webpack_require__(783);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_form_button_form_button_component__ = __webpack_require__(566);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_form_input_form_input_component__ = __webpack_require__(567);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_form_select_form_select_component__ = __webpack_require__(568);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_ionic_angular__ = __webpack_require__(14);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};









var DynamicFormModule = /** @class */ (function () {
    function DynamicFormModule() {
    }
    DynamicFormModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({
            imports: [
                __WEBPACK_IMPORTED_MODULE_1__angular_common__["CommonModule"],
                __WEBPACK_IMPORTED_MODULE_2__angular_forms__["g" /* ReactiveFormsModule */],
                __WEBPACK_IMPORTED_MODULE_2__angular_forms__["c" /* FormsModule */],
                __WEBPACK_IMPORTED_MODULE_8_ionic_angular__["g" /* IonicModule */]
            ],
            declarations: [
                __WEBPACK_IMPORTED_MODULE_3__components_dynamic_field_dynamic_field_directive__["a" /* DynamicFieldDirective */],
                __WEBPACK_IMPORTED_MODULE_4__containers_dynamic_form_dynamic_form_component__["a" /* DynamicFormComponent */],
                __WEBPACK_IMPORTED_MODULE_5__components_form_button_form_button_component__["a" /* FormButtonComponent */],
                __WEBPACK_IMPORTED_MODULE_6__components_form_input_form_input_component__["a" /* FormInputComponent */],
                __WEBPACK_IMPORTED_MODULE_7__components_form_select_form_select_component__["a" /* FormSelectComponent */]
            ],
            exports: [
                __WEBPACK_IMPORTED_MODULE_4__containers_dynamic_form_dynamic_form_component__["a" /* DynamicFormComponent */]
            ],
            entryComponents: [
                __WEBPACK_IMPORTED_MODULE_5__components_form_button_form_button_component__["a" /* FormButtonComponent */],
                __WEBPACK_IMPORTED_MODULE_6__components_form_input_form_input_component__["a" /* FormInputComponent */],
                __WEBPACK_IMPORTED_MODULE_7__components_form_select_form_select_component__["a" /* FormSelectComponent */]
            ]
        })
    ], DynamicFormModule);
    return DynamicFormModule;
}());

//# sourceMappingURL=dynamic-form.module.js.map

/***/ }),

/***/ 785:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Rx */
/* unused harmony export PushRx */
/* unused harmony export FacebookAuth */
/* unused harmony export GoogleAuth */
/* unused harmony export Auth */
/* unused harmony export Client */
/* unused harmony export Config */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Deploy; });
/* unused harmony export DIContainer */
/* unused harmony export Insights */
/* unused harmony export Push */
/* unused harmony export User */
/* unused harmony export CloudSettingsToken */
/* unused harmony export provideContainer */
/* unused harmony export provideConfig */
/* unused harmony export provideAuth */
/* unused harmony export provideClient */
/* unused harmony export provideDeploy */
/* unused harmony export provideUser */
/* unused harmony export providePush */
/* unused harmony export provideFacebookAuth */
/* unused harmony export provideGoogleAuth */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CloudModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ionic_cloud__ = __webpack_require__(569);
/* unused harmony namespace reexport */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_core__ = __webpack_require__(0);
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};




var Rx = /** @class */ (function () {
    function Rx(emitter) {
        this.emitter = emitter;
    }
    return Rx;
}());

var PushRx = /** @class */ (function (_super) {
    __extends(PushRx, _super);
    function PushRx() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PushRx.prototype.notification = function () {
        var _this = this;
        return __WEBPACK_IMPORTED_MODULE_1_rxjs__["Observable"].fromEventPattern(function (h) {
            return _this.emitter.on('push:notification', function (data) {
                return h(data.message);
            });
        }, function (_) {
            // https://github.com/ReactiveX/rxjs/issues/1900
            // this.emitter.off(signal);
        });
    };
    return PushRx;
}(Rx));

var FacebookAuth = /** @class */ (function (_super) {
    __extends(FacebookAuth, _super);
    function FacebookAuth() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return FacebookAuth;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["f" /* FacebookAuth */]));

var GoogleAuth = /** @class */ (function (_super) {
    __extends(GoogleAuth, _super);
    function GoogleAuth() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GoogleAuth;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["g" /* GoogleAuth */]));

var Auth = /** @class */ (function (_super) {
    __extends(Auth, _super);
    function Auth() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Auth;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["a" /* Auth */]));

var Client = /** @class */ (function (_super) {
    __extends(Client, _super);
    function Client() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Client;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["b" /* Client */]));

var Config = /** @class */ (function (_super) {
    __extends(Config, _super);
    function Config() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Config;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["c" /* Config */]));

var Deploy = /** @class */ (function (_super) {
    __extends(Deploy, _super);
    function Deploy() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Deploy;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["e" /* Deploy */]));

var DIContainer = /** @class */ (function (_super) {
    __extends(DIContainer, _super);
    function DIContainer() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return DIContainer;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["d" /* DIContainer */]));

var Insights = /** @class */ (function (_super) {
    __extends(Insights, _super);
    function Insights() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Insights;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["h" /* Insights */]));

var Push = /** @class */ (function (_super) {
    __extends(Push, _super);
    function Push() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return Push;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["i" /* Push */]));

var User = /** @class */ (function (_super) {
    __extends(User, _super);
    function User() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return User;
}(__WEBPACK_IMPORTED_MODULE_0__ionic_cloud__["j" /* User */]));

var CloudSettingsToken = new __WEBPACK_IMPORTED_MODULE_2__angular_core__["InjectionToken"]('CloudSettings');
function provideContainer(settings) {
    var container = new DIContainer();
    container.config.register(settings);
    container.core.init();
    container.cordova.bootstrap();
    return container;
}
function provideConfig(container) {
    return container.config;
}
function provideAuth(container) {
    return container.auth;
}
function provideClient(container) {
    return container.client;
}
function provideDeploy(container) {
    return container.deploy;
}
function provideUser(container) {
    return container.singleUserService.current();
}
function providePush(container) {
    var push = container.push;
    push.rx = new PushRx(container.eventEmitter);
    return push;
}
function provideFacebookAuth(container) {
    return container.facebookAuth;
}
function provideGoogleAuth(container) {
    return container.googleAuth;
}
var CloudModule = /** @class */ (function () {
    function CloudModule() {
    }
    CloudModule_1 = CloudModule;
    CloudModule.forRoot = function (settings) {
        return {
            ngModule: CloudModule_1,
            providers: [
                { provide: CloudSettingsToken, useValue: settings },
                { provide: DIContainer, useFactory: provideContainer, deps: [CloudSettingsToken] },
                { provide: Auth, useFactory: provideAuth, deps: [DIContainer] },
                { provide: Client, useFactory: provideClient, deps: [DIContainer] },
                { provide: Config, useFactory: provideConfig, deps: [DIContainer] },
                { provide: Deploy, useFactory: provideDeploy, deps: [DIContainer] },
                { provide: Push, useFactory: providePush, deps: [DIContainer] },
                { provide: User, useFactory: provideUser, deps: [DIContainer] },
                { provide: FacebookAuth, useFactory: provideFacebookAuth, deps: [DIContainer] },
                { provide: GoogleAuth, useFactory: provideGoogleAuth, deps: [DIContainer] }
            ]
        };
    };
    CloudModule = CloudModule_1 = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_2__angular_core__["NgModule"])()
    ], CloudModule);
    return CloudModule;
    var CloudModule_1;
}());

//# sourceMappingURL=index.js.map

/***/ }),

/***/ 786:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENV; });
/**
 * Created by shadeeka on 5/14/18.
 */
var ENV = {
    mode: 'integration',
    environmentName: 'QA Integration Environment',
    ionicEnvName: 'integration',
    protocol: 'https://',
    auth_services: '/auth_services',
    licence_services: '/licence_services',
    service_host: 'oneapp.ncinga.com/qa2',
    data_services: '/flow_services',
    input_services: '/input_service_api',
    image_service: '/image_service',
    deploy_services: '/deploy_services',
    event_services: '/event_services',
    store_data_services: '/store_data_services',
    core_services: '/master_data_services',
    master_data_services: '/master_data_services',
    ws_protocol: 'wss://',
    ws_host: 'oneapp.ncinga.com',
    ws_api: '/wsapi/wsopen'
};
//# sourceMappingURL=environment.integration.js.map

/***/ }),

/***/ 796:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(797);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(801);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_core__ = __webpack_require__(0);



Object(__WEBPACK_IMPORTED_MODULE_2__angular_core__["enableProdMode"])();
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
//# sourceMappingURL=main.js.map

/***/ }),

/***/ 801:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export createTranslateLoader */
/* unused harmony export environmentFactory */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_splash_screen__ = __webpack_require__(276);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_status_bar__ = __webpack_require__(279);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_storage__ = __webpack_require__(47);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ngx_translate_core__ = __webpack_require__(257);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ngx_translate_http_loader__ = __webpack_require__(817);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ionic_angular__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__app_component__ = __webpack_require__(1186);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_platform_browser_animations__ = __webpack_require__(1187);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ionic_native_text_to_speech__ = __webpack_require__(795);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__ionic_native_speech_recognition__ = __webpack_require__(1189);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__modules_components_app_component_module__ = __webpack_require__(1190);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_ngx_logger__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__ncinga_sp_nsp_app_core_dist_environment_environment_variables_module__ = __webpack_require__(1192);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__ncinga_sp_nsp_app_core_dist_auth_auth_module__ = __webpack_require__(212);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__ncinga_sp_nsp_app_core_dist_cache_cache_module__ = __webpack_require__(564);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__app_env__ = __webpack_require__(786);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__providers_activation_service_activation_service__ = __webpack_require__(142);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__providers_activation_service_env_provider__ = __webpack_require__(432);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__pages_appselect_inprogress_Inprogress_component__ = __webpack_require__(781);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__pipes_pipes_module__ = __webpack_require__(782);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__ncinga_sp_nsp_app_core_dist_environment_environment_variables_token__ = __webpack_require__(61);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__providers_app_master_service_app_master_service__ = __webpack_require__(1197);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__providers_app_extractor_app_extractor__ = __webpack_require__(146);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__ncinga_sp_nsp_app_core_dist_providers_app_master_provider__ = __webpack_require__(82);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__ionic_native_device__ = __webpack_require__(206);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__modules_dynamic_form_dynamic_form_module__ = __webpack_require__(784);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__modules_cloud_index__ = __webpack_require__(785);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__ncinga_sp_nsp_app_core_dist_communication_communication_module__ = __webpack_require__(83);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__ncinga_sp_nsp_app_core_dist__ = __webpack_require__(53);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__ncinga_sp_nsp_reader_dist__ = __webpack_require__(1198);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__ncinga_sp_nsp_counting_classifi_candc_module__ = __webpack_require__(144);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__ionic_native_android_full_screen__ = __webpack_require__(774);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__ionic_native_file_transfer__ = __webpack_require__(214);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__ionic_native_zip__ = __webpack_require__(216);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__ionic_native_file__ = __webpack_require__(215);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__ionic_native_screen_orientation__ = __webpack_require__(259);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};






































/*
 * -----------------------------------
 *       DO NOT CHANGE THIS CLASS
 * -----------------------------------
 * Main app module which does the coordination among the modules
 * */
function createTranslateLoader(http) {
    return new __WEBPACK_IMPORTED_MODULE_6__ngx_translate_http_loader__["a" /* TranslateHttpLoader */](http, './assets/i18n/', '.json');
}
function environmentFactory(logger) {
    logger.debug('-- BUILD NODE ENV NEW-- ' + __WEBPACK_IMPORTED_MODULE_17__app_env__["a" /* ENV */].mode);
    return __WEBPACK_IMPORTED_MODULE_17__app_env__["a" /* ENV */];
}
var cloudSettings = {
    'core': {
        'app_id': 'faad0bd9',
        'urls': {
            'api': 'https://oneapp.ncinga.com/deploy_services'
        }
    }
};
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["NgModule"])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_8__app_component__["a" /* NSPCounting */],
                __WEBPACK_IMPORTED_MODULE_20__pages_appselect_inprogress_Inprogress_component__["a" /* InProgressComponent */]
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_9__angular_platform_browser_animations__["a" /* BrowserAnimationsModule */],
                __WEBPACK_IMPORTED_MODULE_4__ionic_storage__["a" /* IonicStorageModule */].forRoot(),
                __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["b" /* HttpClientModule */],
                __WEBPACK_IMPORTED_MODULE_14__ncinga_sp_nsp_app_core_dist_environment_environment_variables_module__["a" /* EnvironmentsModule */],
                __WEBPACK_IMPORTED_MODULE_15__ncinga_sp_nsp_app_core_dist_auth_auth_module__["a" /* AuthModule */].forRoot(),
                __WEBPACK_IMPORTED_MODULE_16__ncinga_sp_nsp_app_core_dist_cache_cache_module__["a" /* CacheModule */].forRoot(),
                __WEBPACK_IMPORTED_MODULE_12__modules_components_app_component_module__["a" /* AppComponentsModule */],
                __WEBPACK_IMPORTED_MODULE_29__ncinga_sp_nsp_app_core_dist_communication_communication_module__["a" /* CommunicationModule */].forRoot(),
                __WEBPACK_IMPORTED_MODULE_30__ncinga_sp_nsp_app_core_dist__["g" /* CoreModule */].forRoot(null),
                __WEBPACK_IMPORTED_MODULE_31__ncinga_sp_nsp_reader_dist__["a" /* ReaderModule */].forRoot(),
                __WEBPACK_IMPORTED_MODULE_32__ncinga_sp_nsp_counting_classifi_candc_module__["b" /* CAndCModule */].forRoot(),
                __WEBPACK_IMPORTED_MODULE_5__ngx_translate_core__["b" /* TranslateModule */].forRoot({
                    loader: {
                        provide: __WEBPACK_IMPORTED_MODULE_5__ngx_translate_core__["a" /* TranslateLoader */],
                        useFactory: (createTranslateLoader),
                        deps: [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]]
                    }
                }),
                __WEBPACK_IMPORTED_MODULE_7_ionic_angular__["g" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_8__app_component__["a" /* NSPCounting */], {
                    tabsPlacement: 'top',
                    mode: 'md',
                    preloadModules: true
                }, {
                    links: [
                        { loadChildren: '../pages/app-landing/app-landing.module#AppLandingPageModule', name: 'AppLandingPage', segment: 'app-landing', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/activation/activation-page.module#ActivationPageModule', name: 'ActivationPage', segment: 'activation-page', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/appselect/appselect.module#AppselectPageModule', name: 'AppselectPage', segment: 'appselect', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/module-config/module-config.module#ModuleConfigPageModule', name: 'ModuleConfigPage', segment: 'module-config', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/menu/menu.module#MenuPageModule', name: 'MenuPage', segment: 'menu', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/setting-up/setting-up.module#SettingUpPageModule', name: 'setting-up', segment: 'setting-up', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../pages/settings/settings.module#SettingsPageModule', name: 'SettingsPage', segment: 'settings', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/activitylog/activity.log.module#ActivityLogModule', name: 'ActivityLogComponent', segment: 'activity.log', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/aql/aql-activity-log/aql-activity-log.module#AqlActivityLogPageModule', name: 'AqlActivityLogPage', segment: 'aql-activity-log', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/aql/aql-pkg-detail/aql-pkg-detail.module#AqlPkgDetailPageModule', name: 'AqlPkgDetailPage', segment: 'aql-pkg-detail', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/aql/pf-status/pf-status.module#PfStatusPageModule', name: 'PfStatusPage', segment: 'pf-status', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/class-one/class-one.module#ClassOnePageModule', name: 'ClassOnePage', segment: 'class-one', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/class-two/class-two.module#ClassTwoPageModule', name: 'ClassTwoPage', segment: 'class-two', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/grading/grading.module#GradingPageModule', name: 'GradingPage', segment: 'grading', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/location/location.module#LocationPageModule', name: 'LocationPage', segment: 'location', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/recent/recent.module#RecentPageModule', name: 'RecentPage', segment: 'recent', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/rectified/rectified.module#RectifiedPageModule', name: 'RectifiedPage', segment: 'rectified', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/settingPage/setting-view.module#SettingViewModule', name: 'SettingView', segment: 'setting-view', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/summary-view/summary.view.module#SummaryViewModule', name: 'SummaryViewComponent', segment: 'summary.view', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-counting-classifi/viewbuilder/view-builder.module#ViewBuilderModule', name: 'ViewBuilder', segment: 'view-builder', priority: 'low', defaultHistory: [] },
                        { loadChildren: '../../node_modules/@ncinga-sp/nsp-dashboard/landing-page/landing.page.module#DashboardStandPageModule', name: 'DashboardStandPage', segment: 'landing.page', priority: 'low', defaultHistory: [] }
                    ]
                }),
                __WEBPACK_IMPORTED_MODULE_4__ionic_storage__["a" /* IonicStorageModule */].forRoot({
                    name: '__sparkdb',
                    driverOrder: ['indexeddb', 'sqlite', 'websql']
                }),
                __WEBPACK_IMPORTED_MODULE_28__modules_cloud_index__["a" /* CloudModule */].forRoot(cloudSettings),
                __WEBPACK_IMPORTED_MODULE_21__pipes_pipes_module__["a" /* PipesModule */],
                __WEBPACK_IMPORTED_MODULE_13_ngx_logger__["a" /* LoggerModule */].forRoot({
                    serverLoggingUrl: '/api/logs', level: __WEBPACK_IMPORTED_MODULE_17__app_env__["a" /* ENV */].mode !== 'integration' ?
                        __WEBPACK_IMPORTED_MODULE_13_ngx_logger__["c" /* NgxLoggerLevel */].TRACE : __WEBPACK_IMPORTED_MODULE_13_ngx_logger__["c" /* NgxLoggerLevel */].ERROR,
                    serverLogLevel: __WEBPACK_IMPORTED_MODULE_17__app_env__["a" /* ENV */].mode === 'integration' ? __WEBPACK_IMPORTED_MODULE_13_ngx_logger__["c" /* NgxLoggerLevel */].ERROR : __WEBPACK_IMPORTED_MODULE_13_ngx_logger__["c" /* NgxLoggerLevel */].OFF
                }),
                __WEBPACK_IMPORTED_MODULE_27__modules_dynamic_form_dynamic_form_module__["a" /* DynamicFormModule */]
            ],
            bootstrap: [__WEBPACK_IMPORTED_MODULE_7_ionic_angular__["e" /* IonicApp */]],
            entryComponents: [
                __WEBPACK_IMPORTED_MODULE_8__app_component__["a" /* NSPCounting */],
                __WEBPACK_IMPORTED_MODULE_20__pages_appselect_inprogress_Inprogress_component__["a" /* InProgressComponent */]
            ],
            providers: [
                __WEBPACK_IMPORTED_MODULE_2__ionic_native_splash_screen__["a" /* SplashScreen */],
                __WEBPACK_IMPORTED_MODULE_11__ionic_native_speech_recognition__["a" /* SpeechRecognition */],
                __WEBPACK_IMPORTED_MODULE_3__ionic_native_status_bar__["a" /* StatusBar */],
                __WEBPACK_IMPORTED_MODULE_10__ionic_native_text_to_speech__["a" /* TextToSpeech */],
                __WEBPACK_IMPORTED_MODULE_18__providers_activation_service_activation_service__["a" /* ActivationService */],
                __WEBPACK_IMPORTED_MODULE_19__providers_activation_service_env_provider__["a" /* EnvProvider */],
                __WEBPACK_IMPORTED_MODULE_26__ionic_native_device__["a" /* Device */],
                // Keep this to enable Ionic's runtime error handling during development
                { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["ErrorHandler"], useClass: __WEBPACK_IMPORTED_MODULE_7_ionic_angular__["f" /* IonicErrorHandler */] },
                { provide: __WEBPACK_IMPORTED_MODULE_22__ncinga_sp_nsp_app_core_dist_environment_environment_variables_token__["a" /* EnvVariables */], useFactory: environmentFactory, deps: [__WEBPACK_IMPORTED_MODULE_13_ngx_logger__["b" /* NGXLogger */]] },
                { provide: __WEBPACK_IMPORTED_MODULE_25__ncinga_sp_nsp_app_core_dist_providers_app_master_provider__["a" /* AppMasterProvider */], useClass: __WEBPACK_IMPORTED_MODULE_23__providers_app_master_service_app_master_service__["a" /* AppMasterServiceImplementation */] },
                __WEBPACK_IMPORTED_MODULE_24__providers_app_extractor_app_extractor__["a" /* AppExtractorService */],
                __WEBPACK_IMPORTED_MODULE_33__ionic_native_android_full_screen__["a" /* AndroidFullScreen */],
                __WEBPACK_IMPORTED_MODULE_36__ionic_native_file__["a" /* File */],
                __WEBPACK_IMPORTED_MODULE_34__ionic_native_file_transfer__["a" /* FileTransfer */],
                __WEBPACK_IMPORTED_MODULE_37__ionic_native_screen_orientation__["a" /* ScreenOrientation */],
                __WEBPACK_IMPORTED_MODULE_35__ionic_native_zip__["a" /* Zip */]
            ]
        })
    ], AppModule);
    return AppModule;
}());

//# sourceMappingURL=app.module.js.map

/***/ })

},[796]);
//# sourceMappingURL=main.js.map