(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["home-home-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/home/home.page.html":
/*!***************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/home/home.page.html ***!
  \***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ion-tabs>\r\n    <ion-tab-bar slot=\"bottom\">\r\n      <ion-tab-button tab=\"events\">\r\n        <ion-icon name=\"home\"></ion-icon>\r\n        <ion-badge color=\"danger\">{{totalEvent}}</ion-badge>\r\n        <ion-label>Home</ion-label>\r\n      </ion-tab-button>\r\n  \r\n      <ion-tab-button tab=\"agenda\">\r\n        <ion-icon name=\"calendar\"></ion-icon>\r\n        <ion-label>Agenda</ion-label>\r\n      </ion-tab-button>\r\n      <ion-tab-button tab=\"gabinete-digital\">\r\n          <ion-icon name=\"file-tray-stacked\"></ion-icon>\r\n          <ion-badge color=\"danger\">{{totalExpediente}}</ion-badge>\r\n          <ion-label>Gabinete Digital</ion-label>\r\n        </ion-tab-button>\r\n        <!-- <ion-tab-button tab=\"search\">\r\n          <ion-icon name=\"search\"></ion-icon>\r\n          <ion-label>Pesquisa</ion-label>\r\n        </ion-tab-button> -->\r\n        <ion-tab-button tab=\"chat\">\r\n          <ion-icon name=\"chatbubbles\"></ion-icon>\r\n          <ion-label>Chat</ion-label>\r\n        </ion-tab-button>\r\n    </ion-tab-bar>\r\n  \r\n  </ion-tabs>\r\n");

/***/ }),

/***/ "./src/app/home/home-routing.module.ts":
/*!*********************************************!*\
  !*** ./src/app/home/home-routing.module.ts ***!
  \*********************************************/
/*! exports provided: HomePageRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomePageRoutingModule", function() { return HomePageRoutingModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var _resolvers_userData_resolver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../resolvers/userData.resolver */ "./src/app/resolvers/userData.resolver.ts");
/* harmony import */ var _home_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./home.page */ "./src/app/home/home.page.ts");





const routes = [
    {
        path: 'home',
        component: _home_page__WEBPACK_IMPORTED_MODULE_4__["HomePage"],
        /* canActivate: [HomeGuard], */
        resolve: {
            userData: _resolvers_userData_resolver__WEBPACK_IMPORTED_MODULE_3__["UserDataResolver"]
        },
        children: [
            {
                path: 'events',
                children: [
                    {
                        path: '',
                        loadChildren: () => Promise.all(/*! import() | pages-events-events-module */[__webpack_require__.e("common"), __webpack_require__.e("pages-events-events-module")]).then(__webpack_require__.bind(null, /*! ../pages/events/events.module */ "./src/app/pages/events/events.module.ts")).then(m => m.EventsPageModule)
                    },
                    {
                        path: ':eventId/:caller',
                        loadChildren: () => Promise.all(/*! import() | pages-events-event-detail-event-detail-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b"), __webpack_require__.e("default~event-detail-event-detail-module~pages-events-event-detail-event-detail-module"), __webpack_require__.e("common")]).then(__webpack_require__.bind(null, /*! ../pages/events/event-detail/event-detail.module */ "./src/app/pages/events/event-detail/event-detail.module.ts")).then(m => m.EventDetailPageModule),
                    },
                ]
            },
            {
                path: 'attachments',
                children: [
                    {
                        path: ':eventId',
                        loadChildren: () => Promise.all(/*! import() | pages-events-attachments-attachments-module */[__webpack_require__.e("default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b"), __webpack_require__.e("attachments-attachments-module")]).then(__webpack_require__.bind(null, /*! ../pages/events/attachments/attachments.module */ "./src/app/pages/events/attachments/attachments.module.ts")).then(m => m.AttachmentsPageModule)
                    },
                ]
            },
            {
                path: 'attendees',
                children: [
                    {
                        path: '',
                        loadChildren: () => Promise.all(/*! import() | pages-events-attendees-attendees-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("attendees-attendees-module")]).then(__webpack_require__.bind(null, /*! ../pages/events/attendees/attendees.module */ "./src/app/pages/events/attendees/attendees.module.ts")).then(m => m.AttendeesPageModule)
                    },
                ]
            },
            {
                path: 'login',
                children: [
                    {
                        path: '',
                        loadChildren: () => Promise.all(/*! import() | pages-login-login-module */[__webpack_require__.e("default~home-home-module~pages-chat-chat-module~pages-login-login-module"), __webpack_require__.e("pages-login-login-module")]).then(__webpack_require__.bind(null, /*! ../pages/login/login.module */ "./src/app/pages/login/login.module.ts")).then(m => m.LoginPageModule)
                    },
                ]
            },
            {
                path: 'agenda',
                children: [
                    {
                        path: '',
                        loadChildren: () => Promise.all(/*! import() | pages-agenda-agenda-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("default~expediente-expediente-module~pages-agenda-agenda-module"), __webpack_require__.e("common"), __webpack_require__.e("pages-agenda-agenda-module")]).then(__webpack_require__.bind(null, /*! ../pages/agenda/agenda.module */ "./src/app/pages/agenda/agenda.module.ts")).then(m => m.AgendaPageModule)
                    },
                    {
                        path: ':eventId/:caller',
                        loadChildren: () => Promise.all(/*! import() | pages-events-event-detail-event-detail-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b"), __webpack_require__.e("default~event-detail-event-detail-module~pages-events-event-detail-event-detail-module"), __webpack_require__.e("common")]).then(__webpack_require__.bind(null, /*! ../pages/events/event-detail/event-detail.module */ "./src/app/pages/events/event-detail/event-detail.module.ts")).then(m => m.EventDetailPageModule),
                    }
                ]
            },
            {
                path: 'gabinete-digital',
                children: [
                    {
                        path: '',
                        loadChildren: () => Promise.all(/*! import() | pages-gabinete-digital-gabinete-digital-module */[__webpack_require__.e("common"), __webpack_require__.e("pages-gabinete-digital-gabinete-digital-module")]).then(__webpack_require__.bind(null, /*! ../pages/gabinete-digital/gabinete-digital.module */ "./src/app/pages/gabinete-digital/gabinete-digital.module.ts")).then(m => m.GabineteDigitalPageModule)
                    },
                    {
                        path: 'expediente',
                        children: [
                            {
                                path: '',
                                loadChildren: () => Promise.all(/*! import() | pages-gabinete-digital-expediente-expediente-module */[__webpack_require__.e("default~expediente-expediente-module~pages-agenda-agenda-module"), __webpack_require__.e("expediente-expediente-module")]).then(__webpack_require__.bind(null, /*! ../pages/gabinete-digital/expediente/expediente.module */ "./src/app/pages/gabinete-digital/expediente/expediente.module.ts")).then(m => m.ExpedientePageModule)
                            },
                            {
                                path: ':SerialNumber',
                                loadChildren: () => Promise.all(/*! import() | pages-gabinete-digital-expediente-expediente-detail-expediente-detail-module */[__webpack_require__.e("common"), __webpack_require__.e("expediente-detail-expediente-detail-module")]).then(__webpack_require__.bind(null, /*! ../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module */ "./src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module.ts")).then(m => m.ExpedienteDetailPageModule)
                            },
                            {
                                path: 'events/:eventId/:caller',
                                loadChildren: () => Promise.all(/*! import() | pages-events-event-detail-event-detail-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b"), __webpack_require__.e("default~event-detail-event-detail-module~pages-events-event-detail-event-detail-module"), __webpack_require__.e("common")]).then(__webpack_require__.bind(null, /*! ../pages/events/event-detail/event-detail.module */ "./src/app/pages/events/event-detail/event-detail.module.ts")).then(m => m.EventDetailPageModule),
                            }
                        ]
                    },
                    {
                        path: 'event-list',
                        children: [
                            {
                                path: '',
                                loadChildren: () => Promise.all(/*! import() | pages-gabinete-digital-event-list-event-list-module */[__webpack_require__.e("common"), __webpack_require__.e("event-list-event-list-module")]).then(__webpack_require__.bind(null, /*! ../pages/gabinete-digital/event-list/event-list.module */ "./src/app/pages/gabinete-digital/event-list/event-list.module.ts")).then(m => m.EventListPageModule)
                            },
                        ]
                    },
                ]
            },
            {
                path: 'search',
                children: [
                    {
                        path: '',
                        loadChildren: () => __webpack_require__.e(/*! import() | pages-search-search-module */ "pages-search-search-module").then(__webpack_require__.bind(null, /*! ../pages/search/search.module */ "./src/app/pages/search/search.module.ts")).then(m => m.SearchPageModule)
                    }
                ]
            },
            /*  {
               path: 'expediente',
               children: [
                 {
                   path:'',
                   loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule)
                 }
               ]
             }, */
            {
                path: 'chat',
                children: [
                    {
                        path: '',
                        loadChildren: () => Promise.all(/*! import() | pages-chat-chat-module */[__webpack_require__.e("default~home-home-module~pages-chat-chat-module~pages-login-login-module"), __webpack_require__.e("pages-chat-chat-module")]).then(__webpack_require__.bind(null, /*! ../pages/chat/chat.module */ "./src/app/pages/chat/chat.module.ts")).then(m => m.ChatPageModule)
                    }
                ]
            },
        ]
    },
    {
        path: '',
        redirectTo: 'home/events',
        pathMatch: 'full'
    }
];
let HomePageRoutingModule = class HomePageRoutingModule {
};
HomePageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]],
    })
], HomePageRoutingModule);



/***/ }),

/***/ "./src/app/home/home.module.ts":
/*!*************************************!*\
  !*** ./src/app/home/home.module.ts ***!
  \*************************************/
/*! exports provided: HomePageModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomePageModule", function() { return HomePageModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
/* harmony import */ var _home_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./home-routing.module */ "./src/app/home/home-routing.module.ts");
/* harmony import */ var _home_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./home.page */ "./src/app/home/home.page.ts");







/* import { IonicSelectableModule } from 'ionic-selectable'; */
let HomePageModule = class HomePageModule {
};
HomePageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
            _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"],
            _home_routing_module__WEBPACK_IMPORTED_MODULE_5__["HomePageRoutingModule"],
        ],
        declarations: [_home_page__WEBPACK_IMPORTED_MODULE_6__["HomePage"]]
    })
], HomePageModule);



/***/ }),

/***/ "./src/app/home/home.page.scss":
/*!*************************************!*\
  !*** ./src/app/home/home.page.scss ***!
  \*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("ion-tab-bar {\n  --background: #e3dfdf;\n  --color: #000;\n}\n\nion-badge {\n  /*  */\n  /* display: inline-block;*/\n  min-width: 18px;\n  font-size: 15px;\n  /* font-weight: $badge-font-weight;\n  line-height: 1;\n\n  white-space: nowrap;\n  vertical-align: baseline; */\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvaG9tZS9DOlxcVXNlcnNcXHRpYWdvLmtheWF5YVxcZGV2ZWxvcG1lbnRcXGdhYmluZXRlLWRpZ2l0YWwvc3JjXFxhcHBcXGhvbWVcXGhvbWUucGFnZS5zY3NzIiwic3JjL2FwcC9ob21lL2hvbWUucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBO0VBQ0kscUJBQUE7RUFDQSxhQUFBO0FDQUo7O0FEYUE7RUFBVyxLQUFBO0VBRVQsMEJBQUE7RUFFQSxlQUFBO0VBQ0EsZUFYZTtFQVlmOzs7OzZCQUFBO0FDUEYiLCJmaWxlIjoic3JjL2FwcC9ob21lL2hvbWUucGFnZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiXHJcbmlvbi10YWItYmFye1xyXG4gICAgLS1iYWNrZ3JvdW5kOiAjZTNkZmRmO1xyXG4gICAgLS1jb2xvcjogIzAwMDtcclxufVxyXG5cclxuLy8gQmFkZ2VcclxuLy8gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cclxuXHJcbi8vLyBAcHJvcCAtIEZvbnQgc2l6ZSBvZiB0aGUgYmFkZ2VcclxuJGJhZGdlLWZvbnQtc2l6ZToxNXB4ICFkZWZhdWx0O1xyXG5cclxuLy8vIEBwcm9wIC0gRm9udCB3ZWlnaHQgb2YgdGhlIGJhZGdlXHJcbiRiYWRnZS1mb250LXdlaWdodDpib2xkICFkZWZhdWx0O1xyXG5cclxuXHJcbmlvbi1iYWRnZSB7LyogICovXHJcblxyXG4gIC8qIGRpc3BsYXk6IGlubGluZS1ibG9jazsqL1xyXG5cclxuICBtaW4td2lkdGg6IDE4cHg7IFxyXG4gIGZvbnQtc2l6ZTogJGJhZGdlLWZvbnQtc2l6ZTtcclxuICAvKiBmb250LXdlaWdodDogJGJhZGdlLWZvbnQtd2VpZ2h0O1xyXG4gIGxpbmUtaGVpZ2h0OiAxO1xyXG5cclxuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xyXG4gIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTsgKi9cclxufSIsImlvbi10YWItYmFyIHtcbiAgLS1iYWNrZ3JvdW5kOiAjZTNkZmRmO1xuICAtLWNvbG9yOiAjMDAwO1xufVxuXG5pb24tYmFkZ2Uge1xuICAvKiAgKi9cbiAgLyogZGlzcGxheTogaW5saW5lLWJsb2NrOyovXG4gIG1pbi13aWR0aDogMThweDtcbiAgZm9udC1zaXplOiAxNXB4O1xuICAvKiBmb250LXdlaWdodDogJGJhZGdlLWZvbnQtd2VpZ2h0O1xuICBsaW5lLWhlaWdodDogMTtcblxuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmU7ICovXG59Il19 */");

/***/ }),

/***/ "./src/app/home/home.page.ts":
/*!***********************************!*\
  !*** ./src/app/home/home.page.ts ***!
  \***********************************/
/*! exports provided: HomePage */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomePage", function() { return HomePage; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_events_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/events.service */ "./src/app/services/events.service.ts");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */ var _services_processes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/processes.service */ "./src/app/services/processes.service.ts");





let HomePage = class HomePage {
    constructor(eventService, processesbackend) {
        this.eventService = eventService;
        this.processesbackend = processesbackend;
        this.totalEvent = 0;
        this.totalExpediente = 0;
    }
    ngOnInit() {
        this.eventService.getAllEvents(Object(_angular_common__WEBPACK_IMPORTED_MODULE_3__["formatDate"])(new Date(), 'yyyy-MM-dd', 'pt') + ' 00:00:00', Object(_angular_common__WEBPACK_IMPORTED_MODULE_3__["formatDate"])(new Date(), 'yyyy-MM-dd', 'pt') + ' 23:59:59')
            .subscribe(response => {
            this.eventsList = response;
            this.totalEvent = this.eventsList.length;
        });
        this.processesbackend.GetTasksList("Expediente", true).subscribe(result => {
            this.totalExpediente = result;
        });
    }
};
HomePage.ctorParameters = () => [
    { type: _services_events_service__WEBPACK_IMPORTED_MODULE_2__["EventsService"] },
    { type: _services_processes_service__WEBPACK_IMPORTED_MODULE_4__["ProcessesService"] }
];
HomePage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-home',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./home.page.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/home/home.page.html")).default,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./home.page.scss */ "./src/app/home/home.page.scss")).default]
    })
], HomePage);



/***/ }),

/***/ "./src/app/resolvers/userData.resolver.ts":
/*!************************************************!*\
  !*** ./src/app/resolvers/userData.resolver.ts ***!
  \************************************************/
/*! exports provided: UserDataResolver */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserDataResolver", function() { return UserDataResolver; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/auth.service */ "./src/app/services/auth.service.ts");



let UserDataResolver = class UserDataResolver {
    constructor(authService) {
        this.authService = authService;
    }
    resolve() {
        return this.authService.getUserData();
    }
};
UserDataResolver.ctorParameters = () => [
    { type: _services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"] }
];
UserDataResolver = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
        providedIn: 'root'
    })
], UserDataResolver);



/***/ }),

/***/ "./src/app/services/events.service.ts":
/*!********************************************!*\
  !*** ./src/app/services/events.service.ts ***!
  \********************************************/
/*! exports provided: EventsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsService", function() { return EventsService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/auth.service */ "./src/app/services/auth.service.ts");





let EventsService = class EventsService {
    //lastloadedevent: Event;
    constructor(http, user) {
        this.http = http;
        this.authheader = {};
        this.loggeduser = user.ValidatedUser;
        this.headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]();
        this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
    }
    getAllEvents(startdate, enddate) {
        const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/GetAllEvents';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("StartDate", startdate);
        params = params.set("EndDate", enddate);
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.get(`${geturl}`, options);
    }
    getEvents(calendarname, startdate, enddate) {
        const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/GetEvents';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("CalendarName", calendarname);
        params = params.set("StartDate", startdate);
        params = params.set("EndDate", enddate);
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.get(`${geturl}`, options);
    }
    getEvent(eventid) {
        let geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'Calendar/GetEvent';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("EventId", eventid);
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.get(`${geturl}`, options);
    }
    putEvent(event, conflictResolutionMode, sendInvitationsOrCancellationsMode) {
        const puturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/PutEvent';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("conflictResolutionMode", conflictResolutionMode.toString());
        params = params.set("sendInvitationsOrCancellationsMode", sendInvitationsOrCancellationsMode.toString());
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.put(`${puturl}`, event, options);
    }
    postEvent(event, calendarName) {
        const puturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/PostEvent';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("CalendarName", calendarName);
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.post(`${puturl}`, event, options);
    }
    deleteEvent(eventid, deletemode) {
        const puturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/PostEvent';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("EventId", eventid);
        params = params.set("deleteMode", deletemode.toString());
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.delete(`${puturl}`, options);
    }
};
EventsService.ctorParameters = () => [
    { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] },
    { type: _services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }
];
EventsService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
        providedIn: 'root'
    })
], EventsService);



/***/ }),

/***/ "./src/app/services/processes.service.ts":
/*!***********************************************!*\
  !*** ./src/app/services/processes.service.ts ***!
  \***********************************************/
/*! exports provided: ProcessesService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProcessesService", function() { return ProcessesService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/auth.service */ "./src/app/services/auth.service.ts");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");





let ProcessesService = class ProcessesService {
    constructor(http, user) {
        this.http = http;
        this.authheader = {};
        this.loggeduser = user.ValidatedUser;
        this.headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]();
        this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
    }
    GetTasksList(processname, onlycount) {
        const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'tasks/List';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("ProcessName", processname);
        params = params.set("OnlyCount", onlycount.toString());
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.get(`${geturl}`, options);
    }
    GetTask(serialnumber) {
        const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'tasks/Get';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("SerialNumber", serialnumber);
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.get(`${geturl}`, options);
    }
    GetMDOficialTasks() {
        const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'tasks/GetMDOficialTasks';
        let options = {
            headers: this.headers,
        };
        return this.http.get(`${geturl}`, options);
    }
    GetMDPersonalTasks() {
        const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'tasks/GetMDPersonalTasks';
        let options = {
            headers: this.headers,
        };
        return this.http.get(`${geturl}`, options);
    }
    GetToApprovedEvents(categoryname, count) {
        const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'Tasks/ListByCategory';
        let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
        params = params.set("categoryname", categoryname);
        params = params.set("onlyCount", count);
        let options = {
            headers: this.headers,
            params: params
        };
        return this.http.get(`${geturl}`, options);
    }
};
ProcessesService.ctorParameters = () => [
    { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] },
    { type: _services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] }
];
ProcessesService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
        providedIn: 'root'
    })
], ProcessesService);



/***/ })

}]);
//# sourceMappingURL=home-home-module.js.map