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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/wscorporate/wscorporate-form/wscorporate-form.component.html":
/*!****************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/wscorporate/wscorporate-form/wscorporate-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\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\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-12\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"urlWsCorporate\">{{ 'labels.urlWsCorporate' | translate}}</label>\n                                        <input id=\"urlWsCorporate\" name=\"urlWsCorporate\" [(ngModel)]=\"data.urlWsCorporate\"\n                                            maxlength=\"100\" class=\"form-control form-control-sm\">\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=\"pastaXml\">{{ 'labels.pastaXmlWs' | translate}}</label>\n                                        <input id=\"pastaXml\" name=\"pastaXml\" [(ngModel)]=\"data.pastaXml\"\n                                            maxlength=\"100\" class=\"form-control form-control-sm\">\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=\"conexaoBD\">{{ 'labels.stringConexao' | translate}}</label>\n                                        <input id=\"conexaoBD\" name=\"conexaoBD\" [(ngModel)]=\"data.conexaoBD\"\n                                         maxlength=\"100\" class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-3\">\n                                    <label for=\"wsCorpConnTmout\">{{\"labels.connTmout\" | translate}}</label>\n                                    <input id=\"wsCorpConnTmout\" name=\"wsCorpConnTmout\" [(ngModel)]=\"data.wsCorpConnTmout\"\n                                        maxlength=\"6\" class=\"form-control form-control-sm\" type=\"text\">\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-3\">\n                                    <label for=\"wsCorpSendTmout\">{{\"labels.sendTmout\" | translate}}</label>\n                                    <input id=\"wsCorpSendTmout\" name=\"wsCorpSendTmout\" [(ngModel)]=\"data.wsCorpSendTmout\"\n                                        maxlength=\"6\" class=\"form-control form-control-sm\" type=\"text\">\n                                </div>\n                            </div>\n                            <div class=\"row mt-2\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm form-inline\">\n                                        <label for=\"wsCorpRecvTmout\" style=\"align-self: center;\">{{\"labels.recvTmout\" | translate }}</label>\n                                        <input id=\"wsCorpRecvTmout\" name=\"wsCorpRecvTmout\" [(ngModel)]=\"data.wsCorpRecvTmout\"\n                                            maxlength=\"6\" class=\"form-control form-control-sm input-inline-middle ml-2\"\n                                            type=\"text\" style=\"width: 75px;\">\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=\"gravaXml\" name=\"ativo\" [ngModel]=\"data.gravaXml === 'S'\"\n                                            (ngModelChange)=\"data.gravaXml=$event?'S':'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                        <label class=\"custom-control-label\" for=\"gravaXml\">{{'labels.gravaXml' | translate}}</label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12 col-sm-12\">\n                                    <fieldset class=\"fieldset\">\n                                        <legend>{{'labels.updloadArq' | translate}}</legend>\n                                        <div class=\"col-lg-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"pastaIIS\">{{'labels.pastaIIS' |\n                                                    translate}}</label>\n                                                <div class=\"custom-file\">\n                                                    <input type=\"file\" class=\"custom-file-input campo\" id=\"pastaIIS\"\n                                                        name=\"pastaIIS\" (change)=\"fileChange($event)\" accept=\".pdf\"\n                                                        maxlength=\"100\">\n                                                    <label class=\"custom-file-label\" for=\"pastaIIS\">\n                                                        <span *ngIf=\"!!fileName\">{{fileName['arquivoWSC']}}</span>\n                                                    </label>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"col-lg-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"pastaUploadArq\">{{ 'labels.pastaUploadArq' | translate}}</label>\n                                                <input id=\"pastaUploadArq\" name=\"pastaUploadArq\" [(ngModel)]=\"data.pastaUploadArq\"\n                                                 maxlength=\"100\" class=\"form-control form-control-sm\">\n                                            </div>\n                                        </div>\n                                    </fieldset>\n                                </div>\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/wscorporate/wscorporate-form/wscorporate-form.component.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/wscorporate/wscorporate-form/wscorporate-form.component.ts ***!
  \************************************************************************************************/
/*! exports provided: WsCorporateFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WsCorporateFormComponent", function() { return WsCorporateFormComponent; });
/* 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 _wscorporate_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../wscorporate.constants */ "./src/app/pages/configuracoes/wscorporate/wscorporate.constants.ts");
/* harmony import */ var _wscorporate_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../wscorporate.model */ "./src/app/pages/configuracoes/wscorporate/wscorporate.model.ts");
/* harmony import */ var _wscorporate_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../wscorporate.service */ "./src/app/pages/configuracoes/wscorporate/wscorporate.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 WsCorporateFormComponent = /** @class */ (function (_super) {
    __extends(WsCorporateFormComponent, _super);
    function WsCorporateFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, funcoes, WsCorporateWscService) {
        var _this = _super.call(this, new _wscorporate_constants__WEBPACK_IMPORTED_MODULE_9__["WsCorporateConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.WsCorporateWscService = WsCorporateWscService;
        _this.data = new _wscorporate_model__WEBPACK_IMPORTED_MODULE_10__["WsCorporate"]();
        _this.dataWsc = new _wscorporate_model__WEBPACK_IMPORTED_MODULE_10__["WsCorporate"]();
        _this.mensagens = [];
        _this.fileName = [];
        _this.constantes = new _wscorporate_constants__WEBPACK_IMPORTED_MODULE_9__["WsCorporateConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.urlWsCorporate = _this.configuracao.string("UNI", "UrlWsCorporate");
                _this.data.pastaXml = _this.configuracao.string("BAL", "PastaXml");
                _this.data.conexaoBD = _this.configuracao.string("AUT", "ConexaoBD");
                _this.data.wsCorpConnTmout = _this.configuracao.number("CTV", "WsCorpConnTmout");
                _this.data.wsCorpSendTmout = _this.configuracao.number("CTV", "WsCorpSendTmout");
                _this.data.wsCorpRecvTmout = _this.configuracao.number("CTV", "WsCorpRecvTmout");
                _this.data.gravaXml = _this.configuracao.string("BAL", "GravaXml");
                _this.data.pastaIIS = _this.configuracao.string("UNI", "PastaIIS");
                _this.data.pastaUploadArq = _this.configuracao.string("UNI", "PastaUploadArq");
                _this.fileName["arquivoWSC"] = _this.data.pastaIIS;
            }
        };
        return _this;
    }
    WsCorporateFormComponent.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);
    };
    WsCorporateFormComponent.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.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.messageService.confirm("titles.configuracoes", "messages.updateConfigConfirm", null, function () { return _this.onSubmit(form); });
        });
    };
    WsCorporateFormComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.WsCorporateService()];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    WsCorporateFormComponent.prototype.WsCorporateService = function () {
        return __awaiter(this, void 0, void 0, function () {
            var result, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.dataWsc.arquivoWSC) {
                            this.execSetConfig();
                        }
                        return [4 /*yield*/, this.WsCorporateWscService._save(this.dataWsc).toPromise()];
                    case 1:
                        result = _a.sent();
                        if (!result.validationResult.isValid) {
                            mensagens = this.messageService.validationResult(result);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.configuracaoDe", m); });
                        }
                        else {
                            this.fileName["arquivoWSC"] = result.configPath;
                            this.pathWsc = result.configPath;
                            this.execSetConfig();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    WsCorporateFormComponent.prototype.execSetConfig = 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', 'UrlWsCorporate', this.data.urlWsCorporate, 'S');
        object.setConfig(this.data.filialId, 'BAL', 'PastaXml', this.data.pastaXml, 'S');
        object.setConfig(this.data.filialId, 'AUT', 'ConexaoBD', this.data.conexaoBD, 'S');
        object.setConfig(this.data.filialId, 'CTV', 'WsCorpConnTmout', this.data.wsCorpConnTmout, 'I');
        object.setConfig(this.data.filialId, 'CTV', 'WsCorpSendTmout', this.data.wsCorpSendTmout, 'I');
        object.setConfig(this.data.filialId, 'CTV', 'WsCorpRecvTmout', this.data.wsCorpRecvTmout, 'I');
        object.setConfig(this.data.filialId, 'BAL', 'GravaXml', this.data.gravaXml, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'PastaIIS', !!this.pathWsc ? this.pathWsc : this.data.pastaIIS, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'PastaUploadArq', this.data.pastaUploadArq, '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.wsCorporate", "messages.configuracaoDe");
            }
        });
    };
    WsCorporateFormComponent.prototype.fileChange = function ($event) {
        this.dataWsc.fileData = $event.target.files[0];
        this.readThis($event.target);
    };
    WsCorporateFormComponent.prototype.readThis = function (inputValue) {
        var _this = this;
        var file = inputValue.files[0];
        var myReader = new FileReader();
        myReader.onloadend = function (e) {
            _this.dataWsc["arquivoWSC"] = file.name;
            _this.fileName["arquivoWSC"] = "C:\\fakepath\\" + file.name;
        };
        myReader.readAsDataURL(file);
    };
    WsCorporateFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    WsCorporateFormComponent.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"] },
        { type: _wscorporate_service__WEBPACK_IMPORTED_MODULE_11__["WsCorporateService"] }
    ]; };
    WsCorporateFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-wscorporate-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./wscorporate-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/wscorporate/wscorporate-form/wscorporate-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"],
            _wscorporate_service__WEBPACK_IMPORTED_MODULE_11__["WsCorporateService"]])
    ], WsCorporateFormComponent);
    return WsCorporateFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/configuracoes/wscorporate/wscorporate.constants.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/configuracoes/wscorporate/wscorporate.constants.ts ***!
  \**************************************************************************/
/*! exports provided: WsCorporateConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WsCorporateConstants", function() { return WsCorporateConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var WsCorporateConstants = /** @class */ (function () {
    function WsCorporateConstants() {
        this.sisFormularioId = 35138;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.pemissoes" },
        ];
        this.configuracoes = [];
        this.nomeForm = "titles.wsCorporate";
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "UNI",
                parametros: [
                    "UrlWsCorporate",
                    "PastaIIS",
                    "PastaUploadArq"
                ]
            },
            {
                sistema: "BAL",
                parametros: [
                    "PastaXml",
                    "GravaXml"
                ]
            },
            {
                sistema: "AUT",
                parametros: [
                    "ConexaoBD"
                ]
            },
            {
                sistema: "CTV",
                parametros: [
                    "WsCorpConnTmout",
                    "WsCorpSendTmout",
                    "WsCorpRecvTmout",
                ]
            }
        ];
    }
    return WsCorporateConstants;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/wscorporate/wscorporate.model.ts":
/*!**********************************************************************!*\
  !*** ./src/app/pages/configuracoes/wscorporate/wscorporate.model.ts ***!
  \**********************************************************************/
/*! exports provided: WsCorporate */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/configuracoes/wscorporate/wscorporate.module.ts":
/*!***********************************************************************!*\
  !*** ./src/app/pages/configuracoes/wscorporate/wscorporate.module.ts ***!
  \***********************************************************************/
/*! exports provided: WsCorporateModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WsCorporateModule", function() { return WsCorporateModule; });
/* 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 _wscorporate_form_wscorporate_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./wscorporate-form/wscorporate-form.component */ "./src/app/pages/configuracoes/wscorporate/wscorporate-form/wscorporate-form.component.ts");
/* harmony import */ var _wscorporate_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./wscorporate.routing.module */ "./src/app/pages/configuracoes/wscorporate/wscorporate.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 WsCorporateModule = /** @class */ (function () {
    function WsCorporateModule() {
    }
    WsCorporateModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_wscorporate_form_wscorporate_form_component__WEBPACK_IMPORTED_MODULE_3__["WsCorporateFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _wscorporate_routing_module__WEBPACK_IMPORTED_MODULE_4__["WsCorporateRoutingModule"]
            ]
        })
    ], WsCorporateModule);
    return WsCorporateModule;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/wscorporate/wscorporate.routing.module.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/configuracoes/wscorporate/wscorporate.routing.module.ts ***!
  \*******************************************************************************/
/*! exports provided: WsCorporateRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WsCorporateRoutingModule", function() { return WsCorporateRoutingModule; });
/* 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 _wscorporate_form_wscorporate_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./wscorporate-form/wscorporate-form.component */ "./src/app/pages/configuracoes/wscorporate/wscorporate-form/wscorporate-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: _wscorporate_form_wscorporate_form_component__WEBPACK_IMPORTED_MODULE_3__["WsCorporateFormComponent"],
        data: { breadcrumb: "wsCorporate", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    }
];
var WsCorporateRoutingModule = /** @class */ (function () {
    function WsCorporateRoutingModule() {
    }
    WsCorporateRoutingModule = __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"]]
        })
    ], WsCorporateRoutingModule);
    return WsCorporateRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/wscorporate/wscorporate.service.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/configuracoes/wscorporate/wscorporate.service.ts ***!
  \************************************************************************/
/*! exports provided: WsCorporateService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WsCorporateService", function() { return WsCorporateService; });
/* 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_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var WsCorporateService = /** @class */ (function () {
    function WsCorporateService(http) {
        this.http = http;
    }
    WsCorporateService.prototype._save = function (data) {
        var formData = new FormData();
        for (var key in data) {
            if (data.hasOwnProperty(key)) {
                if (Array.isArray(data[key])) {
                    formData.append(key, JSON.stringify(data[key]));
                }
                else {
                    formData.append(key, data[key]);
                }
            }
        }
        return this._add(formData);
    };
    WsCorporateService.prototype._add = function (formData) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/consultas/wsCorporate", formData)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    WsCorporateService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    WsCorporateService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], WsCorporateService);
    return WsCorporateService;
}());



/***/ })

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