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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-integracao-sap-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-50\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.monitorIntegracaoSap' | translate }}</h6>\n            </div>\n            <div class=\"modal-body\">\n                <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                            <app-validacoes></app-validacoes>\n                            <div class=\"row\">\n                                <div class=\"col-lg-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <div class=\"form-check\">\n                                            <input type=\"radio\" id=\"todos\" name=\"todos\" class=\"form-check-input\"\n                                                value=\"T\" [(ngModel)]=\"service.filtro.tipo\">\n                                            <label for=\"todos\">{{'labels.todos' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-3\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <div class=\"form-check\">\n                                            <input type=\"radio\" id=\"naoIntegrados\" name=\"naoIntegrados\"\n                                                class=\"form-check-input\" value=\"N\" [(ngModel)]=\"service.filtro.tipo\">\n                                            <label for=\"naoIntegrados\">{{'labels.naoIntegrados' | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-3\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <div class=\"form-check\">\n                                            <input type=\"radio\" id=\"integradosComErro\" name=\"integradosComErro\"\n                                                class=\"form-check-input\" value=\"E\" [(ngModel)]=\"service.filtro.tipo\">\n                                            <label for=\"integradosComErro\">{{'labels.integradosComErro' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-4\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <div class=\"form-check\">\n                                            <input type=\"radio\" id=\"integradosComSucesso\" name=\"integradosComSucesso\"\n                                                class=\"form-check-input\" value=\"S\" [(ngModel)]=\"service.filtro.tipo\">\n                                            <label for=\"integradosComSucesso\">{{'labels.integradosComSucesso' |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\" class=\"required\">{{ 'labels.periodoDe' | translate\n                                            }}</label>\n                                        <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                            [(ngModel)]=\"service.filtro.dataI\" (executa)=\"validaDatas()\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{ 'labels.ate' | translate }}</label>\n                                        <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filtro.dataF\"\n                                            (executa)=\"validaDatas()\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-3\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"autorizacao\">{{'labels.autorizacao' | translate}}</label>\n                                        <input id=\"autorizacao\" name=\"autorizacao\"\n                                            [(ngModel)]=\"service.filtro.autorizacao\" maxlength=\"9\"\n                                            class=\"form-control form-control-sm text-right\" mask=\"999999999\" />\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"cnpjCpfCliente\">{{'labels.cnpjCpfCliente' | translate}}</label>\n                                        <div class=\"input-group-prepend\">\n                                            <input id=\"cnpjCpfCliente\" name=\"cnpjCpfCliente\"\n                                                [(ngModel)]=\"service.filtro.cnpjCpfCliente\"\n                                                class=\"form-control form-control-sm\" maxlength=\"20\" type=\"text\" />\n                                            <div class=\"custom-control custom-checkbox ml-4\">\n                                                <input id=\"contido\" name=\"contido\"\n                                                    [ngModel]=\"service.filtro.contido === 'S'\"\n                                                    (ngModelChange)=\"service.filtro.contido=$event?'S':'N'\"\n                                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                                <label class=\"custom-control-label\" for=\"contido\">{{'labels.contido' |\n                                                    translate}}</label>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"modal-footer\">\n                                <button class=\"btn btn-success\" type=\"submit\">{{ 'buttons.pesquisar' | translate\n                                    }}</button>\n                                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.html":
/*!*****************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-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\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"data.autorizacao\">\n</app-menu-command-bar>\n<div class=\"section-comand-bar\">\n    <app-table>\n        <div class=\"table-responsive\" style=\"overflow: auto;\">\n            <table id=\"monitorIntegracaoSap\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                <thead>\n                    <tr>\n                        <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                        <th style=\"text-align: right;\">{{ 'labels.autorizacao' | translate}}</th>\n                        <th>{{ 'labels.dataHoraAutoizacao' | translate }}</th>\n                        <th style=\"text-align: right;\">{{ 'labels.docTransporte' | translate }}</th>\n                        <th style=\"text-align: right;\">{{ 'labels.nrRemessa' | translate }}</th>\n                        <th style=\"text-align: right;\">{{ 'labels.codiCliente' | translate }}</th>\n                        <th style=\"text-align: right;\">{{ 'labels.cnpjCpfCliente' | translate }}</th>\n                        <th>{{ 'labels.cliente' | translate }}</th>\n                        <th>{{ 'labels.material' | translate }}</th>\n                        <th>{{ 'labels.produto' | translate }}</th>\n                        <th>{{ 'labels.situacao' | translate }}</th>\n                        <th>{{ 'labels.dataHoraIntegracao' | translate }}</th>\n                        <th>{{ 'labels.observacaoDetalheErro' | translate }}</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                        [ngClass]=\"{'info': i == currentIndex ? true : false}\">\n                        <td class=\"text-center\">\n                            <label class=\"chk\">\n                                <input type=\"checkbox\" id=\"selecionado\" name=\"selecionado\" value=\"checked\"\n                                    (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\"\n                                    [ngModel]=\"t.selecionado ==='S'\" style=\"margin-left:auto; margin-right:auto;\"\n                                    disabled>\n                                <span [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                            </label>\n                        </td>\n                        <td style=\"text-align: right\">{{ t.autorizacao }}</td>\n                        <td style=\"white-space: nowrap;\">{{ t.dtAutorizacao | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\n                        <td style=\"text-align: right\">{{ t.docTransporte }}</td>\n                        <td style=\"text-align: right\">{{ t.numeroRemessa }}</td>\n                        <td style=\"text-align: right\">{{ t.codCliente }}</td>\n                        <td style=\"text-align: right\">{{ t.cnpjCliente }}</td>\n                        <td style=\"white-space: nowrap;\">{{ t.nomeCliente }}</td>\n                        <td style=\"white-space: nowrap;\">{{ t.material }}</td>\n                        <td style=\"white-space: nowrap;\">{{ t.produto }}</td>\n                        <td style=\"white-space: nowrap;\">{{ t.situacao }}</td>\n                        <td style=\"white-space: nowrap;\">{{ t.dtIntegracao | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\n                        <td style=\"white-space: nowrap;\">{{ t.mensagem }}</td>\n                    </tr>\n                    <tr *ngIf=\"!hasDados\">\n                        <th colspan=\"15\" style=\"text-align: center\">\n                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                        </th>\n                    </tr>\n                </tbody>\n            </table>\n        </div>\n    </app-table>\n    <div class=\"row\">\n        <div class=\"col-12\">\n            <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\" [disabled]=\"!hasDados \">\n                {{ 'buttons.selecionarTodos' | translate }}\n            </button>\n            <button class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\" type=\"button\" [disabled]=\"!hasDados\">\n                {{ 'buttons.desmarcarTodos' | translate }}\n            </button>\n            <button [disabled]=\"!hasRegistrosSelecionados\" class=\"btn btn-success mr-2\" (click)=\"reenviarSelecionados()\"\n                type=\"button\">{{\n                'buttons.reenviarSelecionados' | translate }}\n            </button>\n        </div>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-monitor-integracao-sap-filter (filtrar)=\"executaFiltro()\"></app-monitor-integracao-sap-filter>\n<app-monitor-integracao-sap-visualizar-logs-modal></app-monitor-integracao-sap-visualizar-logs-modal>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.component.html":
/*!*************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.component.html ***!
  \*************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-integracao-sap-visualizar-logs-modal-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-75\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.visualizacaoDeLogsIntegracaoSap' | translate }}</h6>\r\n            </div>\r\n            <app-validacoes></app-validacoes>\r\n            <div class=\"modal-body\">\r\n                <div class=\"table-responsive mt-1\" style=\"overflow: auto; max-height: 300px;\">\r\n                    <table id=\"dtMonitorDeIntegracaoOcsVisualizarLogs\"\r\n                        class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                        <thead>\r\n                            <tr>\r\n                                <th>{{ 'labels.dataHora' | translate }}</th>\r\n                                <th>{{ 'labels.tipo' | translate }}</th>\r\n                                <th>{{ 'labels.descricao' | translate }}</th>\r\n                            </tr>\r\n                        </thead>\r\n                        <tbody>\r\n                            <tr *ngFor=\"let t of dados; index as i\"\r\n                                [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\r\n                                <td width=\"15%\">{{ t.dtLog | date: 'dd/MM/yyyy HH:mm:ss' }}\r\n                                </td>\r\n                                <td width=\"10%\">{{ t.tipo }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t.descrLog }}</td>\r\n                            </tr>\r\n                            <tr *ngIf=\"!hasDados\">\r\n                                <th colspan=\"5\" style=\"text-align: center\">\r\n                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                </th>\r\n                            </tr>\r\n                        </tbody>\r\n                    </table>\r\n                </div>\r\n            </div>\r\n            <div class=\"modal-footer\">\r\n                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Fechar</button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-filter/monitor-integracao-sap-filter.component.ts":
/*!***************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-filter/monitor-integracao-sap-filter.component.ts ***!
  \***************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapFilterComponent", function() { return MonitorIntegracaoSapFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.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 _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../monitor-integracao-sap.service */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.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 MonitorIntegracaoSapFilterComponent = /** @class */ (function () {
    function MonitorIntegracaoSapFilterComponent(service, messageService) {
        this.service = service;
        this.messageService = messageService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    MonitorIntegracaoSapFilterComponent.prototype.ngOnInit = function () {
    };
    MonitorIntegracaoSapFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal('monitor-integracao-sap-filter-dialog');
    };
    MonitorIntegracaoSapFilterComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI)) {
            this.messageService.warning(this.service.title, "messages.periodoDeMaiorQueAte");
            return false;
        }
        return true;
    };
    MonitorIntegracaoSapFilterComponent.ctorParameters = function () { return [
        { type: _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_4__["MonitorIntegracaoSapService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorIntegracaoSapFilterComponent.prototype, "filtrar", void 0);
    MonitorIntegracaoSapFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-sap-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-sap-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-filter/monitor-integracao-sap-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_4__["MonitorIntegracaoSapService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], MonitorIntegracaoSapFilterComponent);
    return MonitorIntegracaoSapFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.ts":
/*!*************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.ts ***!
  \*************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapIndexComponent", function() { return MonitorIntegracaoSapIndexComponent; });
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../monitor-integracao-sap.constants */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts");
/* harmony import */ var _monitor_integracao_sap_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../monitor-integracao-sap.model */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.model.ts");
/* harmony import */ var _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../monitor-integracao-sap.service */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _monitor_integracao_sap_visualizar_logs_modal_monitor_integracao_sap_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.component */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.component.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 MonitorIntegracaoSapIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoSapIndexComponent, _super);
    function MonitorIntegracaoSapIndexComponent(router, service, funcoesService, messageService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorIntegracaoSapConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.constantes = new _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorIntegracaoSapConstants"]();
        _this.hasDados = false;
        _this.dadosI = [];
        _this.data = new _monitor_integracao_sap_model__WEBPACK_IMPORTED_MODULE_9__["MonitorIntegracaoSap"]();
        _this.mensagens = [];
        _this.registrosSelecionados = [];
        _this.reenviarSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                if (_this.hasRegistrosSelecionados) {
                    _this.messageService.confirm(_this.service.title, "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarSelecionados(this.registrosSelecionados.join(',')).subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    result.erros.forEach(function (e) { return _this.messageService.warning(_this.service.title, e.message); });
                                    return;
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refresh();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning(_this.service.title, "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        _this.visualizarLogs = function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].isNotPositive(_this.data.autorizacao)) {
                _this.messageService.warning(_this.service.title, "messages.selecioneUmRegistro");
                return;
            }
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                _this.childVisualizarLogsModalComponent.objectSelect(_this.data.autorizacao);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MonitorIntegracaoSapIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.filtrar();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'visualizarLogs', func: function () { return _this.visualizarLogs; } }
        ]);
    };
    MonitorIntegracaoSapIndexComponent.prototype._dbClick = function (obj) {
        if (obj.selecionado === "N" && obj.sitReg === "I") {
            this.messageService.warning(this.service.title, 'messages.registroJaIntegrado');
            return;
        }
        this.onMarcarDesmarcar(obj);
    };
    MonitorIntegracaoSapIndexComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoSapIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitorIntegracaoSapIndexComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasDados) {
            this.messageService.warning(this.service.title, "messages.tabelaVazia");
            return;
        }
        this.dadosI.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MonitorIntegracaoSapIndexComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasDados) {
            this.messageService.warning(this.service.title, "messages.tabelaVazia");
            return;
        }
        this.dadosI.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MonitorIntegracaoSapIndexComponent.prototype.onMarcarTodos = function (obj) {
        if (obj.selecionado === "N" && obj.sitReg !== 'I') {
            obj.selecionado = "S";
        }
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoSapIndexComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = "N";
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoSapIndexComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosI.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.autorizacao);
            }
        });
    };
    MonitorIntegracaoSapIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.data = new _monitor_integracao_sap_model__WEBPACK_IMPORTED_MODULE_9__["MonitorIntegracaoSap"]();
        this.registrosSelecionados = [];
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            _this.hasDados = data && data.length > 0;
            _this.dadosI = data;
        });
    };
    Object.defineProperty(MonitorIntegracaoSapIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.dadosI);
            }
            var dados = this.dadosI.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.autorizacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtAutorizacao), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.docTransporte, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.numeroRemessa, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.codCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.cnpjCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.material, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.produto, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.situacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtIntegracao), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.mensagem, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSapIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MonitorIntegracaoSapIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    MonitorIntegracaoSapIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].openModal("monitor-integracao-sap-filter-dialog");
    };
    Object.defineProperty(MonitorIntegracaoSapIndexComponent.prototype, "hasRegistrosSelecionados", {
        get: function () {
            return this.registrosSelecionados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSapIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_11__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_11__["TableComponent"])
    ], MonitorIntegracaoSapIndexComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_monitor_integracao_sap_visualizar_logs_modal_monitor_integracao_sap_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_15__["MonitorIntegracaoSapVisualizarLogsModalComponent"], { static: false }),
        __metadata("design:type", _monitor_integracao_sap_visualizar_logs_modal_monitor_integracao_sap_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_15__["MonitorIntegracaoSapVisualizarLogsModalComponent"])
    ], MonitorIntegracaoSapIndexComponent.prototype, "childVisualizarLogsModalComponent", void 0);
    MonitorIntegracaoSapIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-monitor-integracao-sap-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-sap-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-integracao-sap.component.scss */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"]])
    ], MonitorIntegracaoSapIndexComponent);
    return MonitorIntegracaoSapIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap.component.scss":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap.component.scss ***!
  \*********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvYWdlby9tb3ZpbWVudG9zL21vbml0b3ItaW50ZWdyYWNhby1zYXAvbW9uaXRvci1pbnRlZ3JhY2FvLXNhcC1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxhZ2VvXFxtb3ZpbWVudG9zXFxtb25pdG9yLWludGVncmFjYW8tc2FwXFxtb25pdG9yLWludGVncmFjYW8tc2FwLWluZGV4XFxtb25pdG9yLWludGVncmFjYW8tc2FwLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9hZ2VvL21vdmltZW50b3MvbW9uaXRvci1pbnRlZ3JhY2FvLXNhcC9tb25pdG9yLWludGVncmFjYW8tc2FwLWluZGV4L21vbml0b3ItaW50ZWdyYWNhby1zYXAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9hZ2VvL21vdmltZW50b3MvbW9uaXRvci1pbnRlZ3JhY2FvLXNhcC9tb25pdG9yLWludGVncmFjYW8tc2FwLWluZGV4L21vbml0b3ItaW50ZWdyYWNhby1zYXAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgICB3aWR0aDogMTJweDtcclxuICAgIGhlaWdodDogMTJweDtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxMDAlO1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59IiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxMnB4O1xuICBoZWlnaHQ6IDEycHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxMDAlO1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.component.ts":
/*!*********************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.component.ts ***!
  \*********************************************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapVisualizarLogsModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapVisualizarLogsModalComponent", function() { return MonitorIntegracaoSapVisualizarLogsModalComponent; });
/* 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_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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 app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../monitor-integracao-sap.service */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.service.ts");
/* harmony import */ var _monitor_integracao_sap_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../monitor-integracao-sap.model */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.model.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 MonitorIntegracaoSapVisualizarLogsModalComponent = /** @class */ (function () {
    function MonitorIntegracaoSapVisualizarLogsModalComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.data = new _monitor_integracao_sap_model__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSapLogs"]();
        this.mensagens = [];
        this.hasDados = false;
    }
    MonitorIntegracaoSapVisualizarLogsModalComponent.prototype.ngOnInit = function () {
        this.data = new _monitor_integracao_sap_model__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSapLogs"]();
    };
    MonitorIntegracaoSapVisualizarLogsModalComponent.prototype.objectSelect = function (autorizacao) {
        var _this = this;
        if (!!autorizacao) {
            this.service.getLogs(autorizacao).subscribe(function (resp) {
                if (resp && resp.length > 0) {
                    _this.dados = resp;
                    _this.hasDados = resp && resp.length > 0;
                    app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["ModalUtilsStaticService"].openModal("monitor-integracao-sap-visualizar-logs-modal-dialog");
                }
                else {
                    _this.messageService.warning(_this.service.title, "messages.naoExisteLogParaORegistroSelecionado");
                    return;
                }
            });
        }
    };
    MonitorIntegracaoSapVisualizarLogsModalComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_4__["MonitorIntegracaoSapService"] }
    ]; };
    MonitorIntegracaoSapVisualizarLogsModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-sap-visualizar-logs-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-sap-visualizar-logs-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_4__["MonitorIntegracaoSapService"]])
    ], MonitorIntegracaoSapVisualizarLogsModalComponent);
    return MonitorIntegracaoSapVisualizarLogsModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts ***!
  \**************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapConstants", function() { return MonitorIntegracaoSapConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorIntegracaoSapConstants = /** @class */ (function () {
    function MonitorIntegracaoSapConstants() {
        this.sisFormularioId = 375395;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.reenviarRegistrosSelecionados" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.visualizarLogs" },
        ];
        this.sisSistemaId = "CON";
        this.nomeForm = "titles.monitorIntegracaoSap";
        this.reportId = "";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'visualizarLogs', action: 'visualizarLogs', icon: "fa fa-file-code-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return MonitorIntegracaoSapConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.model.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.model.ts ***!
  \**********************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapFiltro, MonitorIntegracaoSap, MonitorIntegracaoSapLogs */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapFiltro", function() { return MonitorIntegracaoSapFiltro; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSap", function() { return MonitorIntegracaoSap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapLogs", function() { return MonitorIntegracaoSapLogs; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __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 MonitorIntegracaoSapFiltro = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoSapFiltro, _super);
    function MonitorIntegracaoSapFiltro() {
        var _this = _super.call(this) || this;
        _this.tipo = "T";
        _this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getStartDay(), -1);
        _this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
        _this.autorizacao = 0;
        _this.cnpjCpfCliente = "";
        _this.contido = "N";
        return _this;
    }
    return MonitorIntegracaoSapFiltro;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var MonitorIntegracaoSap = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoSap, _super);
    function MonitorIntegracaoSap() {
        return _super.call(this) || this;
    }
    return MonitorIntegracaoSap;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var MonitorIntegracaoSapLogs = /** @class */ (function () {
    function MonitorIntegracaoSapLogs() {
    }
    return MonitorIntegracaoSapLogs;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.module.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.module.ts ***!
  \***********************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapModule", function() { return MonitorIntegracaoSapModule; });
/* 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 _monitor_integracao_sap_index_monitor_integracao_sap_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-integracao-sap-index/monitor-integracao-sap-index.component */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.ts");
/* harmony import */ var _monitor_integracao_sap_filter_monitor_integracao_sap_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-sap-filter/monitor-integracao-sap-filter.component */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-filter/monitor-integracao-sap-filter.component.ts");
/* harmony import */ var _monitor_integracao_sap_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-integracao-sap.routing.module */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.routing.module.ts");
/* harmony import */ var _monitor_integracao_sap_visualizar_logs_modal_monitor_integracao_sap_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.component */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-visualizar-logs-modal/monitor-integracao-sap-visualizar-logs-modal.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 MonitorIntegracaoSapModule = /** @class */ (function () {
    function MonitorIntegracaoSapModule() {
    }
    MonitorIntegracaoSapModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _monitor_integracao_sap_index_monitor_integracao_sap_index_component__WEBPACK_IMPORTED_MODULE_2__["MonitorIntegracaoSapIndexComponent"],
                _monitor_integracao_sap_filter_monitor_integracao_sap_filter_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoSapFilterComponent"],
                _monitor_integracao_sap_visualizar_logs_modal_monitor_integracao_sap_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSapVisualizarLogsModalComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _monitor_integracao_sap_routing_module__WEBPACK_IMPORTED_MODULE_4__["MonitorIntegracaoSapRoutingModule"]
            ]
        })
    ], MonitorIntegracaoSapModule);
    return MonitorIntegracaoSapModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.routing.module.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.routing.module.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapRoutingModule", function() { return MonitorIntegracaoSapRoutingModule; });
/* 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 _monitor_integracao_sap_index_monitor_integracao_sap_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-sap-index/monitor-integracao-sap-index.component */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-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 MonitorIntegracaoSapRoutes = [
    {
        path: "",
        component: _monitor_integracao_sap_index_monitor_integracao_sap_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoSapIndexComponent"],
        data: {
            breadcrumb: "monitorIntegracaoSap",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var MonitorIntegracaoSapRoutingModule = /** @class */ (function () {
    function MonitorIntegracaoSapRoutingModule() {
    }
    MonitorIntegracaoSapRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MonitorIntegracaoSapRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], MonitorIntegracaoSapRoutingModule);
    return MonitorIntegracaoSapRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.service.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.service.ts ***!
  \************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapService", function() { return MonitorIntegracaoSapService; });
/* 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 environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/internal/operators/catchError */ "./node_modules/rxjs/internal/operators/catchError.js");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _monitor_integracao_sap_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitor-integracao-sap.model */ "./src/app/pages/especificos/ageo/movimentos/monitor-integracao-sap/monitor-integracao-sap.model.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 MonitorIntegracaoSapService = /** @class */ (function () {
    function MonitorIntegracaoSapService(http) {
        this.http = http;
        this.filtro = new _monitor_integracao_sap_model__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSapFiltro"]();
        this.title = "titles.monitorIntegracaoSap";
    }
    MonitorIntegracaoSapService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/monitorIntegracaoSap/getByFiltro", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.prototype.reenviarSelecionados = function (registrosIds) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/monitorIntegracaoSap/reenviarSelecionados", { ids: registrosIds })
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.prototype.getLogs = function (autorizacao) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/monitorIntegracaoSap/getLogs/" + autorizacao)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    MonitorIntegracaoSapService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], MonitorIntegracaoSapService);
    return MonitorIntegracaoSapService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-ageo-movimentos-monitor-integracao-sap-monitor-integracao-sap-module.js.map