(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-pontafelix-movimentos-monitor-cadastro-monitor-cadastro-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro-index/monitor-cadastro-index.component.html":
/*!*****************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro-index/monitor-cadastro-index.component.html ***!
  \*****************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [itemData]=\"data?.codigo\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtMonitorCadastro\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro-index/monitor-cadastro-index.component.ts":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro-index/monitor-cadastro-index.component.ts ***!
  \*************************************************************************************************************************************/
/*! exports provided: MonitorCadastroIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorCadastroIndexComponent", function() { return MonitorCadastroIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _monitor_cadastro_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../monitor-cadastro.constants */ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.constants.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _monitor_cadastro_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../monitor-cadastro.service */ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        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 extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};









var MonitorCadastroIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorCadastroIndexComponent, _super);
    function MonitorCadastroIndexComponent(router, datatablesService, monitorCadastroService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _monitor_cadastro_constants__WEBPACK_IMPORTED_MODULE_6__["MonitorCadastroConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.monitorCadastroService = monitorCadastroService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.constantes = new _monitor_cadastro_constants__WEBPACK_IMPORTED_MODULE_6__["MonitorCadastroConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        return _this;
    }
    MonitorCadastroIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return _this.refresh(); }, function () { return _this.permissoesUtils.back(); }, true);
    };
    MonitorCadastroIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.monitorCadastroService.get().subscribe(function (data) {
            console.log(data);
            var columns = [
                _this.datatablesService.getDataString("tipo", "tipo", "15%"),
                _this.datatablesService.getDataString("codigo", "codigo", "10%"),
                _this.datatablesService.getDataString("descricao", "descricao"),
            ];
            _this.datatablesService.toDataTable({ tableId: "dtMonitorCadastro", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    MonitorCadastroIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MonitorCadastroIndexComponent.prototype.edit = function () {
        if (!!this.data.codigo) {
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ModalUtilsStaticService"].openWindow("cadastro/motorista/detail/" + this.data.codigo);
        }
    };
    MonitorCadastroIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _monitor_cadastro_service__WEBPACK_IMPORTED_MODULE_8__["MonitorCadastroService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] }
    ]; };
    MonitorCadastroIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-cadastro-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-cadastro-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro-index/monitor-cadastro-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _monitor_cadastro_service__WEBPACK_IMPORTED_MODULE_8__["MonitorCadastroService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"]])
    ], MonitorCadastroIndexComponent);
    return MonitorCadastroIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.constants.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.constants.ts ***!
  \********************************************************************************************************/
/*! exports provided: MonitorCadastroConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorCadastroConstants", function() { return MonitorCadastroConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorCadastroConstants = /** @class */ (function () {
    function MonitorCadastroConstants() {
        this.sisFormularioId = 51639;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.monitorCadastro";
        this.listaIndex = [
            { title: 'Incluir', action: 'edit', icon: "icon-check", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return MonitorCadastroConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.module.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.module.ts ***!
  \*****************************************************************************************************/
/*! exports provided: MonitorCadastroModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorCadastroModule", function() { return MonitorCadastroModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _monitor_cadastro_index_monitor_cadastro_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-cadastro-index/monitor-cadastro-index.component */ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro-index/monitor-cadastro-index.component.ts");
/* harmony import */ var _monitor_cadastro_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-cadastro.routing.module */ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.routing.module.ts");
var __decorate = (undefined && undefined.__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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MonitorCadastroModule = /** @class */ (function () {
    function MonitorCadastroModule() {
    }
    MonitorCadastroModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _monitor_cadastro_routing_module__WEBPACK_IMPORTED_MODULE_3__["MonitorCadastroRoutingModule"]],
            declarations: [_monitor_cadastro_index_monitor_cadastro_index_component__WEBPACK_IMPORTED_MODULE_2__["MonitorCadastroIndexComponent"]]
        })
    ], MonitorCadastroModule);
    return MonitorCadastroModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.routing.module.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.routing.module.ts ***!
  \*************************************************************************************************************/
/*! exports provided: MonitorCadastroRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorCadastroRoutingModule", function() { return MonitorCadastroRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _monitor_cadastro_index_monitor_cadastro_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-cadastro-index/monitor-cadastro-index.component */ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro-index/monitor-cadastro-index.component.ts");
var __decorate = (undefined && undefined.__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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: "",
        component: _monitor_cadastro_index_monitor_cadastro_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorCadastroIndexComponent"],
        data: { breadcrumb: "MonitorCadastro", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var MonitorCadastroRoutingModule = /** @class */ (function () {
    function MonitorCadastroRoutingModule() {
    }
    MonitorCadastroRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], MonitorCadastroRoutingModule);
    return MonitorCadastroRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.service.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/pontafelix/movimentos/monitor-cadastro/monitor-cadastro.service.ts ***!
  \******************************************************************************************************/
/*! exports provided: MonitorCadastroService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorCadastroService", function() { return MonitorCadastroService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MonitorCadastroService = /** @class */ (function () {
    function MonitorCadastroService(http) {
        this.http = http;
    }
    MonitorCadastroService.prototype.get = function () {
        return this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/pontafelix/monitorCadastro")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorCadastroService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    MonitorCadastroService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], MonitorCadastroService);
    return MonitorCadastroService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-pontafelix-movimentos-monitor-cadastro-monitor-cadastro-module.js.map