(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-configuracoes-unisolution-diversos-unisolution-diversos-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos-form/unisolution-diversos-form.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos-form/unisolution-diversos-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 [botoesComando]=\"constantes.listaForm\" [itemData]=\"data.filialId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n<div class=\"row\">\n    <div class=\"col-lg-12\">\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-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"controlaLacre\" name=\"controlaLacre\" [ngModel]=\"data.controlaLacre === 'S'\"\n                                    (ngModelChange)=\"data.controlaLacre=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"controlaLacre\">{{'labels.controlaLacre' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"controlaLacreA\" name=\"controlaLacreA\" [ngModel]=\"data.controlaLacreA === 'S'\"\n                                    (ngModelChange)=\"data.controlaLacreA=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"controlaLacreA\">{{'labels.controlaLacreA' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"controlaAmostra\" name=\"controlaAmostra\"\n                                    [ngModel]=\"data.controlaAmostra === 'S'\"\n                                    (ngModelChange)=\"data.controlaAmostra=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"controlaAmostra\">{{'labels.controlaAmostra' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"controlaDisponivel\" name=\"controlaSaldoDisponivel\"\n                                    [ngModel]=\"data.controlaDisponivel === 'S'\"\n                                    (ngModelChange)=\"data.controlaDisponivel=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"controlaDisponivel\">{{'labels.controlaSaldoDisponivel' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"granelSolido\" name=\"granelSolido\" [ngModel]=\"data.granelSolido === 'S'\"\n                                    (ngModelChange)=\"data.granelSolido=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"granelSolido\">{{'labels.granelSolido' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"cFOPRelDescNota\" name=\"cFOPRelDescNota\"\n                                    [ngModel]=\"data.cFOPRelDescNota === 'S'\"\n                                    (ngModelChange)=\"data.cFOPRelDescNota=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"cFOPRelDescNota\">{{'labels.cFOPRelDescNota' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"arqCfgUni\" name=\"arqCfgUni\" [ngModel]=\"data.arqCfgUni === 'S'\"\n                                    (ngModelChange)=\"data.arqCfgUni=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"arqCfgUni\">{{'labels.arqCfgUni' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"chkRegIntegrado\" name=\"chkRegIntegrado\"\n                                    [ngModel]=\"data.chkRegIntegrado === 'S'\"\n                                    (ngModelChange)=\"data.chkRegIntegrado=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"chkRegIntegrado\">{{'labels.chkRegIntegrado' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"nFNovaIntegra\" name=\"nFNovaIntegra\" [ngModel]=\"data.nFNovaIntegra === 'S'\"\n                                    (ngModelChange)=\"data.nFNovaIntegra=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"nFNovaIntegra\">{{'labels.nFNovaIntegra' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"integraAcesso\" name=\"integraAcesso\"\n                                    [ngModel]=\"data.integraAcesso === 'S'\"\n                                    (ngModelChange)=\"data.integraAcesso=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"integraAcesso\">{{'labels.integraAcesso' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"corpWebValidaAD\" name=\"corpWebValidaAD\" [ngModel]=\"data.corpWebValidaAD === 'S'\"\n                                    (ngModelChange)=\"data.corpWebValidaAD=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"corpWebValidaAD\">{{'labels.corpWebValidaAD' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"nExcluirLacres\" name=\"nExcluirLacres\" [ngModel]=\"data.nExcluirLacres === 'S'\"\n                                    (ngModelChange)=\"data.nExcluirLacres=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"nExcluirLacres\">{{'labels.nExcluirLacres' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"liberaLacresChkLst\" name=\"liberaLacresChkLst\" [ngModel]=\"data.liberaLacresChkLst === 'S'\"\n                                    (ngModelChange)=\"data.liberaLacresChkLst=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"liberaLacresChkLst\">{{'labels.liberaLacresChkLst' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"geraAjKGANP\" name=\"geraAjKGANP\" [ngModel]=\"data.geraAjKGANP === 'S'\"\n                                    (ngModelChange)=\"data.geraAjKGANP=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"geraAjKGANP\">{{'labels.geraAjKGANP' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"flagInscrEstatual\" name=\"flagInscrEstatual\" [ngModel]=\"data.flagInscrEstatual === 'S'\"\n                                    (ngModelChange)=\"data.flagInscrEstatual=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"flagInscrEstatual\">{{'labels.utilizarDLLparaValidacaoDeInscricaoEstadual' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-md-12 input-inline\">\n                            <div class=\"form-group row\">\n                                <label for=\"empresaAPI\" class=\"ml-3 col-form-label\">{{'labels.empresaAPI' |\n                                    translate}}</label>\n                                <div class=\"col-lg-6\">\n                                    <input id=\"empresaAPI\" name=\"empresaAPI\" [(ngModel)]=\"data.empresaAPI\"\n                                        class=\"form-control form-control-sm\"\n                                        type=\"text\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-md-12\">\n                            <div class=\"form-group row\">\n                                <label for=\"prefixoRelEspecifico\" class=\"ml-3 col-form-label\">{{'labels.prefixoRelEspecifico' |\n                                    translate}}</label>\n                                <div class=\"col-lg-2\">\n                                    <input id=\"prefixoRelEspecifico\" name=\"prefixoRelEspecifico\"\n                                        [(ngModel)]=\"data.prefixoRelEspecifico\"\n                                        class=\"form-control form-control-sm text-uppercase\"\n                                        uppercase\n                                        maxlength=\"3\"\n                                        type=\"text\">\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\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=\"tipoIntegracao\">{{'labels.integracao' |\n                                    translate}}</label>\n                                <select id=\"tipoIntegracao\" name=\"integracao\"\n                                    [(ngModel)]=\"data.tipoIntegracao\" class=\"form-control form-control-sm\">\n                                    <option value=\"0\">{{ \"labels.nenhum\" | translate }}</option>\n                                    <option value=\"1\">{{ \"labels.ems\" | translate }}</option>\n                                    <option value=\"2\">{{ \"labels.adp\" | translate }}</option>\n                                    <option value=\"3\">{{ \"labels.abc71\" | translate }}</option>\n                                    <option value=\"4\">{{ \"labels.proget\" | translate }}</option>\n                                    <option value=\"5\">{{ \"labels.microsiga\" | translate }}</option>\n                                    <option value=\"6\">{{ \"labels.sapCopersucar\" | translate }}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos-form/unisolution-diversos-form.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos-form/unisolution-diversos-form.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: UnisolutionDiversosFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnisolutionDiversosFormComponent", function() { return UnisolutionDiversosFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __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_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.model */ "./src/app/shared/services/funcoes/configuracao/configuracao.model.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __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_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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _unisolution_diversos_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../unisolution-diversos.constants */ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.constants.ts");
/* harmony import */ var _unisolution_diversos_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../unisolution-diversos.model */ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.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 __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 UnisolutionDiversosFormComponent = /** @class */ (function (_super) {
    __extends(UnisolutionDiversosFormComponent, _super);
    function UnisolutionDiversosFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, funcoes) {
        var _this = _super.call(this, new _unisolution_diversos_constants__WEBPACK_IMPORTED_MODULE_9__["UnisolutionDiversosConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.data = new _unisolution_diversos_model__WEBPACK_IMPORTED_MODULE_10__["UnisolutionDiversos"]();
        _this.mensagens = [];
        _this.constantes = new _unisolution_diversos_constants__WEBPACK_IMPORTED_MODULE_9__["UnisolutionDiversosConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.nExcluirLacres = _this.configuracao.string("UNI", "NExcluirLacres");
                _this.data.liberaLacresChkLst = _this.configuracao.string("UNI", "LiberaLacresChkLst");
                _this.data.geraAjKGANP = _this.configuracao.string("STO", "GeraAjKGANP");
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.controlaLacre = _this.configuracao.string("UNI", "ControlaLacre");
                _this.data.controlaLacreA = _this.configuracao.string("UNI", "ControlaLacreA");
                _this.data.controlaAmostra = _this.configuracao.string("UNI", "ControlaAmostra");
                _this.data.controlaDisponivel = _this.configuracao.string("STO", "ControlaDisponivel");
                _this.data.granelSolido = _this.configuracao.string("STO", "GranelSolido");
                _this.data.cFOPRelDescNota = _this.configuracao.string("BAL", "CFOPRelDescNota");
                _this.data.tipoIntegracao = _this.configuracao.string("UNI", "TipoIntegracao");
                _this.data.arqCfgUni = _this.configuracao.string("UNI", "ArqCfgUni");
                _this.data.chkRegIntegrado = _this.configuracao.string("UNI", "ChkRegIntegrado");
                _this.data.nFNovaIntegra = _this.configuracao.string("UNI", "NFNovaIntegra");
                _this.data.integraAcesso = _this.configuracao.string("CTV", "IntegraAcesso");
                _this.data.corpWebValidaAD = _this.configuracao.string("UNI", "CorpWebValidaAD");
                _this.data.empresaAPI = _this.configuracao.string("UNI", "EmpresaAPI");
                _this.data.prefixoRelEspecifico = _this.configuracao.string("WEB", "PrefixoRelEspecifico");
                _this.data.flagInscrEstatual = _this.configuracao.string("UNI", "FlagInscrEstatual");
            }
        };
        return _this;
    }
    UnisolutionDiversosFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.configuracao.getConfig({
                codRotina: _this.constantes.sisFormularioId,
                configs: _this.constantes.configuracoes
            }, _this.loadConfig);
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    UnisolutionDiversosFormComponent.prototype._onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.messageService.confirm('titles.unisolutionDiversos', 'messages.updateConfigConfirm', null, function () { return _this.onSubmit(); });
    };
    UnisolutionDiversosFormComponent.prototype.onSubmit = function () {
        var _this = this;
        var object = new _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_4__["Config"](this.constantes.sisFormularioId);
        object.setConfig(this.data.filialId, 'UNI', 'NExcluirLacres', this.data.nExcluirLacres, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'LiberaLacresChkLst', this.data.liberaLacresChkLst, 'S');
        object.setConfig(this.data.filialId, 'STO', 'GeraAjKGANP', this.data.geraAjKGANP, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'ControlaLacre', this.data.controlaLacre, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'ControlaLacreA', this.data.controlaLacreA, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'ControlaAmostra', this.data.controlaAmostra, 'S');
        object.setConfig(this.data.filialId, 'STO', 'ControlaDisponivel', this.data.controlaDisponivel, 'S');
        object.setConfig(this.data.filialId, 'STO', 'GranelSolido', this.data.granelSolido, 'S');
        object.setConfig(this.data.filialId, 'BAL', 'CFOPRelDescNota', this.data.cFOPRelDescNota, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'TipoIntegracao', this.data.tipoIntegracao, 'I');
        object.setConfig(this.data.filialId, 'UNI', 'ArqCfgUni', this.data.arqCfgUni, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'ChkRegIntegrado', this.data.chkRegIntegrado, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'NFNovaIntegra', this.data.nFNovaIntegra, 'S');
        object.setConfig(this.data.filialId, 'CTV', 'IntegraAcesso', this.data.integraAcesso, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'CorpWebValidaAD', this.data.corpWebValidaAD, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'EmpresaAPI', this.data.empresaAPI, 'S');
        object.setConfig(this.data.filialId, 'WEB', 'PrefixoRelEspecifico', this.data.prefixoRelEspecifico, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'FlagInscrEstatual', this.data.flagInscrEstatual, 'S');
        this.configuracao
            .save(object)
            .subscribe(function (result) {
            if (result.validationResult != null && !result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.unisolutionDiversos", "messages.configuracaoDe");
            }
        });
    };
    UnisolutionDiversosFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    UnisolutionDiversosFormComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    UnisolutionDiversosFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-unisolution-diversosform',
            template: __importDefault(__webpack_require__(/*! raw-loader!./unisolution-diversos-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos-form/unisolution-diversos-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], UnisolutionDiversosFormComponent);
    return UnisolutionDiversosFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.constants.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.constants.ts ***!
  \********************************************************************************************/
/*! exports provided: UnisolutionDiversosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnisolutionDiversosConstants", function() { return UnisolutionDiversosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var UnisolutionDiversosConstants = /** @class */ (function () {
    function UnisolutionDiversosConstants() {
        this.sisFormularioId = 35117;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.pemissoes" },
        ];
        this.configuracoes = [];
        this.nomeForm = "titles.unisolutionDiversos";
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "UNI",
                parametros: [
                    "ControlaLacre",
                    "ControlaLacreA",
                    "ControlaAmostra",
                    "TipoIntegracao",
                    "ArqCfgUni",
                    "ChkRegIntegrado",
                    "NFNovaIntegra",
                    "CorpWebValidaAD",
                    "EmpresaAPI",
                    "NExcluirLacres",
                    "LiberaLacresChkLst",
                    "FlagInscrEstatual"
                ]
            },
            {
                sistema: "STO",
                parametros: [
                    "ControlaDisponivel",
                    "GranelSolido",
                    "GeraAjKGANP"
                ]
            },
            {
                sistema: "BAL",
                parametros: [
                    "CFOPRelDescNota"
                ]
            },
            {
                sistema: "CTV",
                parametros: [
                    "IntegraAcesso"
                ]
            },
            {
                sistema: "WEB",
                parametros: [
                    "PrefixoRelEspecifico"
                ]
            }
        ];
    }
    return UnisolutionDiversosConstants;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.model.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.model.ts ***!
  \****************************************************************************************/
/*! exports provided: UnisolutionDiversos */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnisolutionDiversos", function() { return UnisolutionDiversos; });
/* 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 UnisolutionDiversos = /** @class */ (function (_super) {
    __extends(UnisolutionDiversos, _super);
    function UnisolutionDiversos() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return UnisolutionDiversos;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.module.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.module.ts ***!
  \*****************************************************************************************/
/*! exports provided: UnisolutionDiversosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnisolutionDiversosModule", function() { return UnisolutionDiversosModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _unisolution_diversos_form_unisolution_diversos_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./unisolution-diversos-form/unisolution-diversos-form.component */ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos-form/unisolution-diversos-form.component.ts");
/* harmony import */ var _unisolution_diversos_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./unisolution-diversos.routing.module */ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.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 UnisolutionDiversosModule = /** @class */ (function () {
    function UnisolutionDiversosModule() {
    }
    UnisolutionDiversosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_unisolution_diversos_form_unisolution_diversos_form_component__WEBPACK_IMPORTED_MODULE_3__["UnisolutionDiversosFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _unisolution_diversos_routing_module__WEBPACK_IMPORTED_MODULE_4__["UnisolutionDiversosRoutingModule"]
            ]
        })
    ], UnisolutionDiversosModule);
    return UnisolutionDiversosModule;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.routing.module.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos.routing.module.ts ***!
  \*************************************************************************************************/
/*! exports provided: UnisolutionDiversosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnisolutionDiversosRoutingModule", function() { return UnisolutionDiversosRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _unisolution_diversos_form_unisolution_diversos_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./unisolution-diversos-form/unisolution-diversos-form.component */ "./src/app/pages/configuracoes/unisolution-diversos/unisolution-diversos-form/unisolution-diversos-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: "",
        component: _unisolution_diversos_form_unisolution_diversos_form_component__WEBPACK_IMPORTED_MODULE_3__["UnisolutionDiversosFormComponent"],
        data: { breadcrumb: "unisolutionDiversos", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    }
];
var UnisolutionDiversosRoutingModule = /** @class */ (function () {
    function UnisolutionDiversosRoutingModule() {
    }
    UnisolutionDiversosRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], UnisolutionDiversosRoutingModule);
    return UnisolutionDiversosRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-configuracoes-unisolution-diversos-unisolution-diversos-module.js.map