(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-cadastro-email-controle-comboio-email-controle-comboio-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-form/email-controle-comboio-form.component.html":
/*!********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-form/email-controle-comboio-form.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\n  [botoesComando]=\"constantes.listaForm\"\n  [formAction]=\"actionForm\"\n  [itemData]=\"data.comboioDestinoId\"\n  [sisFormularioId]=\"constantes.sisFormularioId\"\n>\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n  <app-form-legenda></app-form-legenda>\n  <div class=\"card-body widget-body\">\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n      <app-validacoes></app-validacoes>\n      <div class=\"row\">\n        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n          <div class=\"form-group form-group-sm\">\n            <label for=\"tipoEnvio\" [class.required]=\"!funcoesService.isDetail(actionForm)\">{{ 'labels.tipoEnvio' | translate}}</label>\n            <select #tipoEnvio\n                    id=\"tipoEnvio\"\n                    name=\"tipoEnvio\"\n                    class=\"form-control form-control-sm\"\n                    [(ngModel)]=\"data.comboioDestinoId\"\n                    [required]=\"!funcoesService.isDetail(actionForm)\"\n                    [disabled]=\"!funcoesService.isCreate(actionForm)\">\n                    <option value=\"0\">{{ 'labels.selecione' | translate}}</option>\n                    <option *ngFor=\"let tipo of listaTiposComboio\" [value]=\"tipo.tipoComboioDestinoId\">{{tipo.descricao}}</option>\n            </select>\n          </div>\n        </div>\n      </div>\n\n      <div class=\"row\">\n        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n            <div class=\"form-group form-group-sm\">\n                <label for=\"tituloEmail\" [class.required]=\"!funcoesService.isDetail(actionForm)\">{{'labels.tituloEmail' | translate}}</label>\n                <input id=\"tituloEmail\" name=\"tituloEmail\" [(ngModel)]=\"data.titulo\"\n                       class=\"form-control form-control-sm\" type=\"text\"\n                       [required]=\"!funcoesService.isDetail(actionForm)\"\n                       [disabled]=\"funcoesService.isDetail(actionForm)\"\n                       maxlength=\"100\">\n            </div>\n        </div>\n      </div>\n\n      <div class=\"row\">\n        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n            <div class=\"form-group form-group-sm\">\n                <label for=\"emailDestinatario\" [class.required]=\"!funcoesService.isDetail(actionForm)\">{{'labels.emailDestinatario' | translate}}</label>\n                <input id=\"emailDestinatario\" name=\"emailDestinatario\" [(ngModel)]=\"data.email\"\n                       class=\"form-control form-control-sm\" type=\"text\"\n                       [required]=\"!funcoesService.isDetail(actionForm)\"\n                       [disabled]=\"funcoesService.isDetail(actionForm)\"\n                       maxlength=\"250\">\n            </div>\n        </div>\n      </div>\n      \n      <div class=\"row\">\n        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n          <button type=\"button\" class=\"btn btn-block btn-info\" (click)=\"openMensagem()\">\n              {{ \"labels.mensagem\" | translate }}\n          </button>\n        </div>\n      </div>\n\n      <div class=\"row mt-4\">\n        <div class=\"col-12\">\n          <div class=\"form-group\">\n            <button\n              class=\"btn btn-success mr-2\"\n              type=\"submit\"\n              [disabled]=\"funcoesService.isDetail(actionForm)\">\n              {{ \"buttons.salvar\" | translate }}\n            </button>\n          </div>\n        </div>\n      </div>\n    </form>\n  </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-carta></app-carta>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-index/email-controle-comboio-index.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-index/email-controle-comboio-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.comboioDestinoId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtEmailControleComboio\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n");

/***/ }),

/***/ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-form/email-controle-comboio-form.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-form/email-controle-comboio-form.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: EmailControleComboioFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailControleComboioFormComponent", function() { return EmailControleComboioFormComponent; });
/* 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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _email_controle_comboio_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../email-controle-comboio.constants */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.constants.ts");
/* harmony import */ var _email_controle_comboio_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../email-controle-comboio.model */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.model.ts");
/* harmony import */ var _email_controle_comboio_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../email-controle-comboio.service */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.service.ts");
/* harmony import */ var _tipo_comboio_destino_tipo_comboio_destino_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../tipo-comboio-destino/tipo-comboio-destino.model */ "./src/app/pages/cadastro/tipo-comboio-destino/tipo-comboio-destino.model.ts");
/* harmony import */ var _carta_carta_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../carta/carta.model */ "./src/app/pages/cadastro/carta/carta.model.ts");
/* harmony import */ var _carta_carta_sevice__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../carta/carta.sevice */ "./src/app/pages/cadastro/carta/carta.sevice.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 __awaiter = (undefined && undefined.__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 = (undefined && undefined.__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 = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, 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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var EmailControleComboioFormComponent = /** @class */ (function (_super) {
    __extends(EmailControleComboioFormComponent, _super);
    function EmailControleComboioFormComponent(router, messageService, activatedRoute, service, cartaService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _email_controle_comboio_constants__WEBPACK_IMPORTED_MODULE_7__["EmailControleComboioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.cartaService = cartaService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _email_controle_comboio_model__WEBPACK_IMPORTED_MODULE_8__["EmailControleComboio"]();
        _this.listaTiposComboio = [];
        _this.mensagens = [];
        _this.mensagemEmail = new _carta_carta_model__WEBPACK_IMPORTED_MODULE_11__["Carta"]();
        _this.constantes = new _email_controle_comboio_constants__WEBPACK_IMPORTED_MODULE_7__["EmailControleComboioConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    EmailControleComboioFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var tipoComboioDestinoId = Number(_this.activatedRoute.snapshot.paramMap.get("id"));
            _this.data = new _email_controle_comboio_model__WEBPACK_IMPORTED_MODULE_8__["EmailControleComboio"]();
            if (tipoComboioDestinoId > 0) {
                _this.data.comboioDestinoId = tipoComboioDestinoId;
                _this.service.getById(_this.data.comboioDestinoId).subscribe(function (resp) {
                    _this.data = resp;
                    var tipoEnvio = new _tipo_comboio_destino_tipo_comboio_destino_model__WEBPACK_IMPORTED_MODULE_10__["TipoComboioDestino"]();
                    tipoEnvio.tipoComboioDestinoId = _this.data.comboioDestinoId;
                    tipoEnvio.descricao = _this.data.descricaoTipoDestinoComboio;
                    _this.listaTiposComboio.push(tipoEnvio);
                });
            }
            else {
                _this.carregaTiposComboio();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    EmailControleComboioFormComponent.prototype.carregaTiposComboio = function () {
        var _this = this;
        this.service.getListaTiposComboio().subscribe(function (result) {
            _this.listaTiposComboio = result;
        });
    };
    EmailControleComboioFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Cadastro de Email de Controle de Comboio";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.cadastroEmailControleComboio");
                if (create) {
                    _this.data = new _email_controle_comboio_model__WEBPACK_IMPORTED_MODULE_8__["EmailControleComboio"]();
                }
                else {
                    _this.back();
                }
            }
        });
    };
    EmailControleComboioFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    EmailControleComboioFormComponent.prototype.edit = function () {
        if (this.data.comboioDestinoId > 0) {
            this.router.navigate(["pages/cadastro/emailControleComboio/edit/" + this.data.comboioDestinoId]);
        }
    };
    EmailControleComboioFormComponent.prototype.back = function () {
        this.router.navigate(["pages/cadastro/emailControleComboio"]);
    };
    EmailControleComboioFormComponent.prototype.openMensagem = function () {
        return __awaiter(this, void 0, void 0, function () {
            var tipoEnvioSelecionado, carta, r;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        tipoEnvioSelecionado = this.listaTiposComboio.filter(function (l) { return l.tipoComboioDestinoId === Number(_this.data.comboioDestinoId); });
                        if (tipoEnvioSelecionado.length === 0) {
                            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit([this.messageService.translate("messages.campoTipoEnvioObrigatorio")]);
                            return [2 /*return*/];
                        }
                        carta = new _carta_carta_model__WEBPACK_IMPORTED_MODULE_11__["Carta"]();
                        carta.cartasId = 0;
                        carta.tipoCarta = "WEB";
                        carta.descrCarta = tipoEnvioSelecionado[0].descricao;
                        carta.carta = "";
                        carta.ctrTipoTags = "";
                        return [4 /*yield*/, this.cartaService.InserirCartaComboio(carta).toPromise()];
                    case 1:
                        r = _a.sent();
                        if (r) {
                            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get('cartaed').emit({
                                title: "titles.mensagem",
                                typeLetter: "COMBOIO DESTINO",
                                tipoCarta: "WEB",
                                value: "mensagem",
                                isCreate: this.funcoesService.isCreate(this.actionForm),
                                description: tipoEnvioSelecionado[0].descricao,
                                disabled: this.funcoesService.isDetail(this.actionForm)
                            });
                            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get('responseModalCarta').subscribe(function (data) {
                                _this.mensagemEmail = data.obj;
                                _this.data.cartasId = data.obj.cartasId;
                            });
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    EmailControleComboioFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _email_controle_comboio_service__WEBPACK_IMPORTED_MODULE_9__["EmailControleComboioService"] },
        { type: _carta_carta_sevice__WEBPACK_IMPORTED_MODULE_12__["CartaSevice"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    EmailControleComboioFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-email-controle-comboio-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./email-controle-comboio-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-form/email-controle-comboio-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _email_controle_comboio_service__WEBPACK_IMPORTED_MODULE_9__["EmailControleComboioService"],
            _carta_carta_sevice__WEBPACK_IMPORTED_MODULE_12__["CartaSevice"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], EmailControleComboioFormComponent);
    return EmailControleComboioFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-index/email-controle-comboio-index.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-index/email-controle-comboio-index.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: EmailControleComboioIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailControleComboioIndexComponent", function() { return EmailControleComboioIndexComponent; });
/* 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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _email_controle_comboio_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../email-controle-comboio.constants */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.constants.ts");
/* harmony import */ var _email_controle_comboio_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../email-controle-comboio.model */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.model.ts");
/* harmony import */ var _email_controle_comboio_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../email-controle-comboio.service */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.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 EmailControleComboioIndexComponent = /** @class */ (function (_super) {
    __extends(EmailControleComboioIndexComponent, _super);
    function EmailControleComboioIndexComponent(router, service, datatablesService, messageService, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _email_controle_comboio_constants__WEBPACK_IMPORTED_MODULE_3__["EmailControleComboioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _email_controle_comboio_model__WEBPACK_IMPORTED_MODULE_4__["EmailControleComboio"]();
        _this.dados = [];
        _this.constantes = new _email_controle_comboio_constants__WEBPACK_IMPORTED_MODULE_3__["EmailControleComboioConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    EmailControleComboioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils
            .verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    EmailControleComboioIndexComponent.prototype.create = function () {
        this.router.navigate(["pages/cadastro/emailControleComboio/create"]);
    };
    EmailControleComboioIndexComponent.prototype.edit = function () {
        if (this.data.comboioDestinoId > 0) {
            this.router.navigate(["pages/cadastro/emailControleComboio/edit/" + this.data.comboioDestinoId]);
        }
    };
    EmailControleComboioIndexComponent.prototype.detail = function () {
        if (this.data.comboioDestinoId > 0) {
            this.router.navigate(["pages/cadastro/emailControleComboio/detail/" + this.data.comboioDestinoId]);
        }
    };
    EmailControleComboioIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.get().subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataStringAlignRight("comboioDestinoId", "tipo"),
                _this.datatablesService.getDataString("titulo", "titulo"),
                _this.datatablesService.getDataString("email", "email")
            ];
            _this.datatablesService.datatable("dtEmailControleComboio", columns, resp, function (aData) {
                _this.data = aData;
            }, 0, "asc");
        });
    };
    EmailControleComboioIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    EmailControleComboioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    EmailControleComboioIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.print.call(_this);
        });
    };
    EmailControleComboioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _email_controle_comboio_service__WEBPACK_IMPORTED_MODULE_5__["EmailControleComboioService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] }
    ]; };
    EmailControleComboioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-email-controle-comboio-unidade-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./email-controle-comboio-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-index/email-controle-comboio-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _email_controle_comboio_service__WEBPACK_IMPORTED_MODULE_5__["EmailControleComboioService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"]])
    ], EmailControleComboioIndexComponent);
    return EmailControleComboioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.constants.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.constants.ts ***!
  \*******************************************************************************************/
/*! exports provided: EmailControleComboioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailControleComboioConstants", function() { return EmailControleComboioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var EmailControleComboioConstants = /** @class */ (function () {
    function EmailControleComboioConstants() {
        this.sisFormularioId = 230110;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.cadastroEmailControleComboio";
        this.reportId = "CAD0263";
        this.reportTitulo = { "titulo": "Cadastro de E-mail de Controle de Comboio", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return EmailControleComboioConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.model.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.model.ts ***!
  \***************************************************************************************/
/*! exports provided: EmailControleComboio */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailControleComboio", function() { return EmailControleComboio; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var EmailControleComboio = /** @class */ (function (_super) {
    __extends(EmailControleComboio, _super);
    function EmailControleComboio() {
        var _this = _super.call(this) || this;
        _this.comboioDestinoId = 0;
        return _this;
    }
    return EmailControleComboio;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.module.ts ***!
  \****************************************************************************************/
/*! exports provided: EmailControleComboioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailControleComboioModule", function() { return EmailControleComboioModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _email_controle_comboio_form_email_controle_comboio_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./email-controle-comboio-form/email-controle-comboio-form.component */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-form/email-controle-comboio-form.component.ts");
/* harmony import */ var _email_controle_comboio_index_email_controle_comboio_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./email-controle-comboio-index/email-controle-comboio-index.component */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-index/email-controle-comboio-index.component.ts");
/* harmony import */ var _email_controle_comboio_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./email-controle-comboio.routing.module */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.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 EmailControleComboioModule = /** @class */ (function () {
    function EmailControleComboioModule() {
    }
    EmailControleComboioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _email_controle_comboio_index_email_controle_comboio_index_component__WEBPACK_IMPORTED_MODULE_3__["EmailControleComboioIndexComponent"],
                _email_controle_comboio_form_email_controle_comboio_form_component__WEBPACK_IMPORTED_MODULE_2__["EmailControleComboioFormComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _email_controle_comboio_routing_module__WEBPACK_IMPORTED_MODULE_4__["EmailControleComboioRoutingModule"]
            ]
        })
    ], EmailControleComboioModule);
    return EmailControleComboioModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.routing.module.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.routing.module.ts ***!
  \************************************************************************************************/
/*! exports provided: EmailControleComboioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailControleComboioRoutingModule", function() { return EmailControleComboioRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _email_controle_comboio_form_email_controle_comboio_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./email-controle-comboio-form/email-controle-comboio-form.component */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-form/email-controle-comboio-form.component.ts");
/* harmony import */ var _email_controle_comboio_index_email_controle_comboio_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./email-controle-comboio-index/email-controle-comboio-index.component */ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio-index/email-controle-comboio-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 EmailControleComboioRoutes = [
    {
        path: "",
        component: _email_controle_comboio_index_email_controle_comboio_index_component__WEBPACK_IMPORTED_MODULE_4__["EmailControleComboioIndexComponent"],
        data: {
            breadcrumb: "emailControleComboio",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "create",
        component: _email_controle_comboio_form_email_controle_comboio_form_component__WEBPACK_IMPORTED_MODULE_3__["EmailControleComboioFormComponent"],
        data: {
            breadcrumb: "emailControleComboio",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _email_controle_comboio_form_email_controle_comboio_form_component__WEBPACK_IMPORTED_MODULE_3__["EmailControleComboioFormComponent"],
        data: {
            breadcrumb: "emailControleComboio",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _email_controle_comboio_form_email_controle_comboio_form_component__WEBPACK_IMPORTED_MODULE_3__["EmailControleComboioFormComponent"],
        data: {
            breadcrumb: "emailControleComboio",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var EmailControleComboioRoutingModule = /** @class */ (function () {
    function EmailControleComboioRoutingModule() {
    }
    EmailControleComboioRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(EmailControleComboioRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], EmailControleComboioRoutingModule);
    return EmailControleComboioRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.service.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/cadastro/email-controle-comboio/email-controle-comboio.service.ts ***!
  \*****************************************************************************************/
/*! exports provided: EmailControleComboioService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailControleComboioService", function() { return EmailControleComboioService; });
/* 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 app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.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 EmailControleComboioService = /** @class */ (function (_super) {
    __extends(EmailControleComboioService, _super);
    function EmailControleComboioService(http) {
        var _this = _super.call(this, http, "cadastros/EmailControleComboio") || this;
        _this.http = http;
        return _this;
    }
    EmailControleComboioService.prototype.getListaTiposComboio = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/cadastros/emailControleComboio/getListaTiposComboioDestino")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__["ErrorHandler"].handleError));
    };
    EmailControleComboioService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    EmailControleComboioService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], EmailControleComboioService);
    return EmailControleComboioService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-cadastro-email-controle-comboio-email-controle-comboio-module.js.map