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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/unisolution-portal/unisolution-portal-form/unisolution-portal-form.component.html":
/*!*************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/unisolution-portal/unisolution-portal-form/unisolution-portal-form.component.html ***!
  \*************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar\n        [botoesComando]=\"constantes.listaForm\"\n        [itemData]=\"data.filialId\"\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-6 col-md-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"janOpeTipMov\" name=\"janOpeTipMov\"\n                                       [ngModel]=\"data.janOpeTipMov === 'S'\"\n                                       (ngModelChange)=\"data.janOpeTipMov=$event?'S':'N'\"\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                       for=\"janOpeTipMov\">{{'labels.janOpeTipMov' | 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=\"utilizDivCliAgend\" name=\"utilizDivCliAgend\"\n                                       [ngModel]=\"data.utilizDivCliAgend === 'S'\"\n                                       (ngModelChange)=\"data.utilizDivCliAgend=$event?'S':'N'\"\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                       for=\"utilizDivCliAgend\">{{'labels.utilizDivCliAgend' | 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=\"autenticacao2FA\" name=\"autenticacao2FA\"\n                                       [ngModel]=\"data.autenticacao2FA === 'S'\"\n                                       (ngModelChange)=\"data.autenticacao2FA=$event?'S':'N'\"\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                       for=\"autenticacao2FA\">{{'labels.autenticacao2FA' | translate}}</label>\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>\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnisolutionPortalFormComponent", function() { return UnisolutionPortalFormComponent; });
/* 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_portal_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../unisolution-portal.constants */ "./src/app/pages/configuracoes/unisolution-portal/unisolution-portal.constants.ts");
/* harmony import */ var _unisolution_portal_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../unisolution-portal.model */ "./src/app/pages/configuracoes/unisolution-portal/unisolution-portal.model.ts");
/* harmony import */ var _unisolution_portal_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../unisolution-portal.service */ "./src/app/pages/configuracoes/unisolution-portal/unisolution-portal.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var UnisolutionPortalFormComponent = /** @class */ (function (_super) {
    __extends(UnisolutionPortalFormComponent, _super);
    function UnisolutionPortalFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, service, funcoes) {
        var _this = _super.call(this, new _unisolution_portal_constants__WEBPACK_IMPORTED_MODULE_9__["UnisolutionPortalConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.data = new _unisolution_portal_model__WEBPACK_IMPORTED_MODULE_10__["UnisolutionPortal"]();
        _this.dados = new _unisolution_portal_model__WEBPACK_IMPORTED_MODULE_10__["WebEmpresa"]();
        _this.mensagens = [];
        _this.constantes = new _unisolution_portal_constants__WEBPACK_IMPORTED_MODULE_9__["UnisolutionPortalConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.janOpeTipMov = _this.configuracao.string("UNI", "JanOpeTipMov");
                _this.data.utilizDivCliAgend = _this.configuracao.string("UNI", "UtilizDivCliAgend");
                _this.data.autenticacao2FA = _this.configuracao.string("UNI", "Autenticacao2FA");
            }
        };
        return _this;
    }
    UnisolutionPortalFormComponent.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);
    };
    UnisolutionPortalFormComponent.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.unisolutionPortal', 'messages.updateConfigConfirm', null, function () { return _this.onSubmit(); });
    };
    UnisolutionPortalFormComponent.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', 'JanOpeTipMov', this.data.janOpeTipMov, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'UtilizDivCliAgend', this.data.utilizDivCliAgend, 'S');
        object.setConfig(this.data.filialId, 'UNI', 'Autenticacao2FA', this.data.autenticacao2FA, '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.unisolutionPortal", "messages.configuracaoDe");
                _this.gravarWebEmpresas();
            }
        });
    };
    UnisolutionPortalFormComponent.prototype.gravarWebEmpresas = function () {
        var _this = this;
        this.dados.flag2FA = this.data.autenticacao2FA;
        this.service
            .addWebEmpresas(this.dados)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.produtosDaEmpresa");
                _this.back();
            }
        });
    };
    UnisolutionPortalFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    UnisolutionPortalFormComponent.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: _unisolution_portal_service__WEBPACK_IMPORTED_MODULE_11__["UnisolutionPortalService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    UnisolutionPortalFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-unisolution-portal-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./unisolution-portal-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/unisolution-portal/unisolution-portal-form/unisolution-portal-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"],
            _unisolution_portal_service__WEBPACK_IMPORTED_MODULE_11__["UnisolutionPortalService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], UnisolutionPortalFormComponent);
    return UnisolutionPortalFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnisolutionPortalConstants", function() { return UnisolutionPortalConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var UnisolutionPortalConstants = /** @class */ (function () {
    function UnisolutionPortalConstants() {
        this.sisFormularioId = 35123;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.pemissoes" },
        ];
        this.configuracoes = [];
        this.nomeForm = "titles.unisolutionPortal";
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "UNI",
                parametros: [
                    "JanOpeTipMov",
                    "UtilizDivCliAgend",
                    "Autenticacao2FA"
                ]
            }
        ];
    }
    return UnisolutionPortalConstants;
}());



/***/ }),

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

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

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



/***/ }),

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

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



/***/ }),

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnisolutionPortalService", function() { return UnisolutionPortalService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 UnisolutionPortalService = /** @class */ (function (_super) {
    __extends(UnisolutionPortalService, _super);
    function UnisolutionPortalService(http) {
        var _this = _super.call(this, http, "configuracoes/webEmpresa") || this;
        _this.http = http;
        return _this;
    }
    UnisolutionPortalService.prototype.addWebEmpresas = function (dados) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/webEmpresa/addWebEmpresa", dados)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__["ErrorHandler"].handleError));
    };
    UnisolutionPortalService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    UnisolutionPortalService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], UnisolutionPortalService);
    return UnisolutionPortalService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]));



/***/ })

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