Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sap.ui.define([
- "Controller/base.controller",
- "sap/ui/model/json/JSONModel",
- "Fragment/dialogSociety.controller",
- "Fragment/dialogFrontOffice.controller",
- "Fragment/dialogDistributor.controller",
- "Fragment/dialogSerhs.controller",
- "Fragment/dialogRole.controller",
- "sap/m/Dialog",
- "sap/m/Button",
- "sap/m/Text",
- "sap/ui/model/Filter",
- "sap/ui/model/FilterOperator",
- "Helper/constants",
- "Helper/formatter",
- "Fragment/shopping/dialogCreateOrder.controller"
- ], function (BaseController, JSONModel, dialogSocietyController, dialogFrontOfficeController, dialogDistributorController,
- dialogSerhsController,
- dialogRoleController, Dialog, Button,
- Text, Filter, FilterOperator, constants, formatter, dialogCreateOrderController) {
- "use strict";
- return BaseController.extend("Controller.main", {
- // viewName: "main",
- formatter: formatter,
- onInit: function () {
- BaseController.prototype.onInit.apply(this, arguments);
- var that = this;
- sap.ui.getCore().getEventBus().subscribe("Main", "getUsers", this._setUsers, this);
- sap.ui.getCore().getEventBus().subscribe("Main", "getUsersGpv", this._setUsersGpv, this);
- sap.ui.getCore().getEventBus().subscribe("Main", "setRoles", this._changeRoles, this);
- sap.ui.getCore().getEventBus().subscribe("Main", "countCommunications", this._updateCommunicationsCounter, this);
- sap.ui.getCore().getEventBus().subscribe("Main", "getCommunications", this._getCommunications, this);
- //declare CONTROLS
- this.oButtonCollapseExpand = this.byId("buttonCollapseExpand");
- this.oButtonCrearPedido = this.byId("buttonCrearPedido");
- this.oLabelUser = this.byId("labelNameUser");
- this.oLabelRole = this.byId("labelRoleName");
- this.oSideNavigation = this.byId("sideNavigation");
- this.oToolPage = this.byId("toolPage");
- this.oInfoLabelCommunications = this.byId("infoLabelCommunications");
- //declare MODELS
- this.rolesModel = this.getComponent().getModel("rolesModel");
- this.userConfigModel = this.getComponent().getModel("userConfigModel");
- this.productsModel = this.getComponent().getModel("productsModel");
- this.productsAllInfoModel = this.getComponent().getModel("productsAllInfoModel");
- this.tiendasModel = this.getComponent().getModel("tiendasModel");
- this.footerLinksModel = this.getComponent().getModel("footerLinksModel");
- this.sectoresModel = this.getComponent().getModel("sectoresModel");
- this.sectoresFamiliaModel = this.getComponent().getModel("sectoresFamiliaModel");
- sap.ui.getCore().getEventBus().publish("Base", "getToolPageMenu", this.oToolPage);
- this.userConfigModel.attachRequestCompleted(function () {
- that._setUserLogged(function () {
- var userConfig = that.userConfigModel.getData().d.results[0];
- var actualUser = that.getModel("actualUsersModel").getData().user[0];
- if (userConfig.P_DISTRIBUIDOR || userConfig.P_GPV || actualUser.Suplantando) {
- that._getTienda();
- that._getGestorData();
- that._getFiltrosEstadisticas();
- }
- });
- });
- this.footerLinksModel.attachRequestCompleted(function () {
- that._setFooter();
- });
- this._getCommunications();
- // Enable to refresh communications counter
- setInterval(function () {
- sap.ui.getCore().getEventBus().publish("Main", "getCommunications");
- }, 240000);
- },
- onRouteMatched: function () {},
- _getTienda: function () {
- var that = this;
- var oSocietyModel = sap.ui.getCore().getModel("oSocietyModel");
- var actualUsersModel = this.getModel("actualUsersModel");
- if (oSocietyModel !== undefined && actualUsersModel !== undefined) {
- var userId = actualUsersModel.getData().user[0].IdUser;
- var service = constants.entity.tienda + "(idusr='" + userId + "',bukrs='" + oSocietyModel.BUKRS + "',vkorg='" + oSocietyModel.VKORG +
- "')";
- var aParams = {
- "$expand": [constants.expand.tiendaDesc, constants.expand.tiposDoc, constants.expand.tspat]
- };
- this.loading(true);
- con.Read(service, aParams, [], [], true, this, function (resp, oController) {
- if (!oController.checkErrorResponse(resp)) {
- that.tiendasModel.setData(resp);
- that.oButtonCrearPedido.setEnabled(true);
- }
- that.loading(false);
- });
- }
- },
- _getFiltrosEstadisticas: function () {
- var that = this;
- var oSocietyModel = sap.ui.getCore().getModel("oSocietyModel");
- var actualUsersModel = this.getModel("actualUsersModel");
- if (oSocietyModel !== undefined && actualUsersModel !== undefined) {
- var userId = actualUsersModel.getData().user[0].IdUser;
- var service = constants.entity.filtrosEstadisticas + "(Kunnr='" + this.getActualUserInfo("IdUser") + "',Bukrs='" + this.getActualUserInfo(
- "Bukrs") + "',Vkorg='" +
- this.getActualUserInfo("Vkorg") +
- "',Vtweg='1')";
- var aParams = {
- "$expand": [constants.expand.estadisticasFilter]
- };
- this.loading(true);
- con.Read(service, aParams, [], [], false, this, function (resp, oController) {
- if (!oController.checkErrorResponse(resp)) {
- var sectores = resp.Sectores.results.filter(function (obj, pos, arr) {
- return arr.map(function (mapObj) {
- return mapObj["Spart"];
- }).indexOf(obj["Spart"]) === pos;
- });
- that.sectoresModel.setData(sectores);
- that.sectoresFamiliaModel.setData(resp.Sectores);
- }
- that.loading(false);
- });
- }
- },
- _getGestorData: function () {
- var that = this;
- var url = Helper.formatUrl(constants.entity.miGestor + "(Kunnr={0},Vkorg={1})", [this.getActualUserInfo("Kunnr"),
- this.getActualUserInfo("Vkorg")
- ]);
- this.loading(true);
- con.Read(url, {}, [], [], true, this, function (resp, oController) {
- if (!oController.checkErrorResponse(resp)) {
- var oModel = new JSONModel(resp);
- that.setModel(oModel, "gestorModel");
- }
- that.loading(false);
- });
- },
- _setFooter: function () {
- if (this.modelWithData(this.footerLinksModel)) {
- var obj = {};
- $.each(this.footerLinksModel.getProperty("/d/results"), function (i, n) {
- //obj[n.Menu] = n.ObjectName;
- obj[n.Menu] = n;
- });
- this.setModel(new JSONModel(obj), "footerModel");
- }
- },
- _setUserLogged: function (callback) {
- var that = this;
- var aParams = {
- "$expand": [constants.expand.sociedad]
- };
- this.loading(true);
- con.Read(constants.entity.userConfig, {}, [], [], true, this, function (resp, oController) { //get data of user config
- if (!oController.checkErrorResponse(resp)) {
- if (resp.results.length === 0) {
- that.goTo("errorPage");
- } else {
- var user = resp.results[0];
- var actualUserData = {
- user: [{
- IdUser: user.ID_USER,
- Name: user.NOM_USER,
- Solicitante: user.SOLICITANTE,
- Vkorg: user.VKORG,
- Bukrs: user.BUKRS,
- Suplantando: false,
- SYSYSID: user.SYSYSID
- }]
- };
- that.setModel(new JSONModel(actualUserData), "actualUsersModel");
- var actualRolesData = {
- P_BACK_OFF: JSON.parse(user.P_BACK_OFF),
- P_FRONT_OFF: JSON.parse(user.P_FRONT_OFF),
- P_DES_COMER: JSON.parse(user.P_DES_COMER),
- P_DISTRIBUIDOR: JSON.parse(user.P_DISTRIBUIDOR),
- P_GPV: JSON.parse(user.P_GPV)
- };
- that._setHeaderText(actualRolesData);
- that._setRole(actualRolesData);
- that._setSociety();
- sap.ui.getCore().getEventBus().publish("Home", "setWelcome", actualUserData);
- that.refreshUserData();
- // that._setVisibleControls();
- }
- } else {
- that.goTo("errorPage");
- }
- that.loading(false);
- callback();
- });
- },
- _setVisibleControls: function () {
- if (this.getModel("actualUsersModel") !== undefined && this.getModel("actualRolesModel") !== undefined) {
- var isVisibleButtonCrearPedido = this.getModel("userParamModel").getProperty(
- "/MisCompras/DetallePedidos/CrearModificarAnularPedido/Visualizar");
- var isFO = this.getModel("actualRolesModel").getProperty("/P_FRONT_OFF");
- var isDist = this.getModel("actualRolesModel").getProperty("/P_DISTRIBUIDOR");
- var isGPV = this.getModel("actualRolesModel").getProperty("/P_GPV");
- var isSuplantando = this.getModel("actualUsersModel").getProperty("/user/0/Suplantando");
- var isVisible = (isFO && isSuplantando) || isDist || (isGPV && isSuplantando);
- this.oButtonCrearPedido.setVisible(isVisible);
- sap.ui.getCore().getEventBus().publish("Home", "setVisibleTableProducts", {
- visible: isVisible
- });
- }
- },
- _setSociety: function () { //save in Core the Societies of user
- if (sap.ui.getCore().getModel("oSocietyModel") === undefined) {
- var oSocietiesData = this.userConfigModel.getProperty("/d/results/0");
- sap.ui.getCore().setModel(oSocietiesData, "oSocietyModel");
- }
- sap.ui.getCore().getEventBus().publish("Home", "addAdvertisements");
- sap.ui.getCore().getEventBus().publish("Home", "setFirstOrder", this.getModel("actualUsersModel"));
- },
- _setUsers: function (sChanel, sEvent, oData) { //refresh actualUserModel with the users selected in header
- var oDataModel = oData;
- var oModel = new JSONModel(oDataModel);
- this.setModel(oModel, "actualUsersModel");
- var userConfig = this.userConfigModel.getData().d.results[0];
- var actualUser = this.getModel("actualUsersModel").getData().user[0];
- this._setHeaderText();
- this.refreshUserData();
- this._setVisibleControls();
- if (userConfig.P_DISTRIBUIDOR || userConfig.P_GPV || actualUser.Suplantando) {
- this._getClientsData();
- this._getTienda();
- this._getGestorData();
- this._getFiltrosEstadisticas();
- }
- },
- _setUsersGpv: function (sChanel, sEvent, oData) { //refresh actualUserModel with the users selected in header
- var oDataModel = oData;
- var oModel = new JSONModel(oDataModel);
- this.setModel(oModel, "actualUsersModel");
- this._setHeaderText();
- this._setVisibleControls();
- },
- _getClientsData: function (oEvent) {
- var that = this;
- var aParams = {
- "idusr": this.getModel("actualUsersModel").getData().user[0].IdUser
- };
- this.loading(true);
- con.CallFunction(constants.functions.clientesSSTT, "GET", aParams, [], [], true, this, function (resp, oController) {
- if (!oController.checkErrorResponse(resp)) {
- var obj = {
- d: resp
- };
- var oModel = new JSONModel(obj);
- that.setModel(oModel, "clientesSSTTModel");
- }
- that.loading(false);
- });
- },
- _setParams: function () {
- var that = this;
- var societyModel = sap.ui.getCore().getModel("oSocietyModel");
- var aParams = {
- "Bukrs": societyModel.BUKRS,
- "User": this.getModel("actualUsersModel").getProperty("/user/0/IdUser")
- };
- con.CallFunction(constants.functions.userParams, "GET", aParams, [], [], false, this, function (resp, oController) {
- if (!oController.checkErrorResponse(resp)) {
- if (resp.results.length === 0) {
- that.goTo("errorPage");
- } else {
- var oModel = new JSONModel(resp);
- that.getOwnerComponent().setModel(oModel, "userParamModel");
- that.getOwnerComponent()._prepareUserParams();
- that._setVisibleControls();
- }
- } else {
- that.goTo("errorPage");
- }
- });
- },
- refreshUserData: function () { //go to Home, refresh table of orders and refresh counter communications
- this._setParams();
- sap.ui.getCore().getEventBus().publish("Home", "setFirstOrder", this.getModel("actualUsersModel"));
- this.onGoHome();
- this._updateCounter();
- },
- _changeRoles: function (sChanel, sEvent, oData) {
- var that = this;
- var oSocietyModel = sap.ui.getCore().getModel("oSocietyModel");
- var aParams = {
- "BackOff": oData.P_BACK_OFF,
- "FrontOff": oData.P_FRONT_OFF,
- "DesComer": oData.P_DES_COMER,
- "Distribuidor": oData.P_DISTRIBUIDOR,
- "Gpv": oData.P_GPV,
- "Bukrs": oSocietyModel.BUKRS,
- "Vkorg": oSocietyModel.VKORG
- };
- // this.loading(true);
- con.CallFunction(constants.functions.usersRole, "GET", aParams, [], [], false, this, function (resp, oController) {
- if (!oController.checkErrorResponse(resp)) {
- that._setRole(oData);
- location.reload();
- }
- // that.loading(false);
- });
- },
- _setRole: function (oData) { //save role information and set text Label
- var i;
- var sText = "";
- var size = 0;
- for (i in oData) {
- if (oData[i]) {
- size++;
- }
- }
- var count = 0;
- for (i in oData) {
- if (oData[i]) {
- sText = sText + i;
- if (count < size - 1) {
- sText = sText + ", ";
- }
- count++;
- }
- }
- this.oLabelRole.setText(sText);
- this.setModel(new JSONModel(oData), "actualRolesModel");
- },
- _updateCounter: function (sChanel, sEvent, oData) {
- this._getCommunications();
- },
- _getCommunications: function () {
- var that = this;
- var oUsersModel = this.getModel("actualUsersModel");
- var oSocietyModel = sap.ui.getCore().getModel("oSocietyModel");
- var aFilters = [];
- if (oUsersModel !== undefined) {
- var gestores = [];
- $.each(oUsersModel.getData().user, function (i, n) {
- gestores.push(n.IdUser);
- });
- aFilters.push(new Filter("IdUser", FilterOperator.EQ, Helper.baseEncryptArray(gestores)));
- }
- // Se añaden los filtros por sociedad
- aFilters.push(new Filter("Bukrs", FilterOperator.EQ, oSocietyModel ? oSocietyModel.BUKRS : null));
- aFilters.push(new Filter("Vkorg", FilterOperator.EQ, oSocietyModel ? oSocietyModel.VKORG : null));
- // this.loading(true);
- con.Read(constants.entity.comunicados, {}, aFilters, [], true, this, function (resp, oController) { //get data of communication (only no read communications)
- if (!oController.checkErrorResponse(resp)) {
- that.setModel(new JSONModel(resp), "communicationsModel");
- that._updateCommunicationsCounter();
- }
- // that.loading(false);
- });
- },
- _updateCommunicationsCounter: function () {
- if (this.getModel("communicationsModel")) {
- var communications = this.getModel("communicationsModel").getData().results;
- if (Helper.currentMessage) {
- $.each(communications, function (i, n) {
- if (n.IdComunicado === Helper.currentMessage) {
- n.Leido = "true";
- }
- });
- delete Helper.currentMessage;
- }
- var communicationsNoRead = $.grep(communications, function (n) {
- return n.Leido === "false";
- });
- this.oInfoLabelCommunications.setVisible(communicationsNoRead.length > 0);
- this.oInfoLabelCommunications.setText(communicationsNoRead.length);
- }
- },
- _setHeaderText: function () {
- if (this.getModel("actualUsersModel") !== undefined) {
- var oDataModel = this.getModel("actualUsersModel").getData();
- var sName = "";
- if (oDataModel.user.length === 1) {
- sName = oDataModel.user[0].Name;
- } else {
- sName = this.getText('frontOfficeQtt', [oDataModel.user.length]);
- }
- this.oLabelUser.setText(sName);
- this.oLabelUser.setTooltip(sName);
- //guardar dato en modelo global!!!
- }
- },
- onResetValues: function () {
- this._setUserLogged(function () {});
- },
- onOpenDialog_Role: function (oEvent) {
- if (this.rolesModel !== undefined) {
- if (!this._oDialogRole) {
- dialogRoleController.setRootController(this);
- this._oDialogRole = sap.ui.xmlfragment("Fragment.dialogRole", dialogRoleController);
- this.getView().addDependent(this._oDialogRole);
- }
- this.rolesModel.setProperty("/title", this.getText("roles"));
- this._oDialogRole.setModel(this.rolesModel);
- sap.ui.getCore().getEventBus().publish("dialogRoles", "setRoles", this.getModel("actualRolesModel").getData());
- this._oDialogRole.open();
- }
- },
- onOpenDialog_Society: function (oEvent) {
- var oSocietiesData = this.userConfigModel.getProperty("/d");
- if (!this._oDialogSociety) {
- dialogSocietyController.setRootController(this);
- this._oDialogSociety = sap.ui.xmlfragment("Fragment.dialogSociety", dialogSocietyController);
- this.getView().addDependent(this._oDialogSociety);
- var oSocietyModel = new JSONModel(oSocietiesData);
- this._oDialogSociety.setModel(oSocietyModel);
- }
- if (oSocietiesData.results.length > 1) {
- sap.ui.getCore().getEventBus().publish("dialogSociety", "setSocieties");
- this._oDialogSociety.open();
- }
- },
- onOpenDialog_FrontOffice: function (oEvent) {
- var that = this;
- this._getUsersFrontOffice(function (data) {
- that.setModel(new JSONModel(data), "usersFOModel");
- if (!that._oDialogFO) {
- dialogFrontOfficeController.setRootController(that);
- that._oDialogFO = sap.ui.xmlfragment("Fragment.dialogFrontOffice", dialogFrontOfficeController);
- that.getView().addDependent(that._oDialogFO);
- }
- that.getModel("usersFOModel").setProperty("/title", that.getText("frontOffice"));
- that._oDialogFO.setModel(that.getModel("usersFOModel"));
- sap.ui.getCore().getEventBus().publish("dialogFrontOffice", "setUsersFrontOffice", that.getModel("actualUsersModel").getData());
- that._oDialogFO.open();
- });
- },
- _getUsersFrontOffice: function (callback) {
- var that = this;
- var oSocietyModel = sap.ui.getCore().getModel("oSocietyModel");
- var aParams = {
- "Bukrs": oSocietyModel.BUKRS,
- "Vkorg": oSocietyModel.VKORG
- };
- // this.loading(true);
- con.CallFunction(constants.functions.gestorSociedad, "GET", aParams, [], [], false, this, function (resp, oController) {
- if (!oController.checkErrorResponse(resp)) {
- callback(resp);
- }
- // that.loading(false);
- });
- },
- onOpenDialog_Distributor: function (oEvent) {
- var that = this;
- this._getDistributors(function (data) {
- if (!that._oDialogD) {
- dialogDistributorController.setRootController(that);
- that._oDialogD = sap.ui.xmlfragment("Fragment.dialogDistributor", dialogDistributorController);
- that.getView().addDependent(that._oDialogD);
- }
- that.getModel("actualUsersModel").setProperty("/title", that.getText("distribuidores"));
- sap.ui.getCore().getEventBus().publish("dialogDistributor", "setUsersDistributor", data);
- that._oDialogD.open();
- });
- },
- onOpenDialog_Serhs: function (oEvent) {
- var that = this;
- this._getDistributors(function (data) {
- if (!that._oDialogSerhs) {
- dialogSerhsController.setRootController(that);
- that._oDialogSerhs = sap.ui.xmlfragment("Fragment.dialogSerhs", dialogSerhsController);
- that.getView().addDependent(that._oDialogSerhs);
- }
- that.getModel("actualUsersModel").setProperty("/title", that.getText("serhs"));
- sap.ui.getCore().getEventBus().publish("dialogSerhs", "setUsersSerhs", data);
- that._oDialogSerhs.open();
- });
- },
- _getDistributors: function (callback) {
- var that = this;
- var oModel = this.getModel("actualUsersModel");
- if (oModel !== undefined) {
- var FO = oModel.getProperty("/user");
- var oSocietyModel = sap.ui.getCore().getModel("oSocietyModel");
- var gestores = [];
- $.each(FO, function (i, n) {
- gestores.push(n.IdUser);
- })
- var aParams = {
- "$expand": [constants.expand.solicitantesInterlocutores]
- };
- var aFilters = [];
- aFilters.push(new Filter("Bukrs", FilterOperator.EQ, oSocietyModel.BUKRS));
- aFilters.push(new Filter("Vkorg", FilterOperator.EQ, oSocietyModel.VKORG));
- aFilters.push(new Filter("Gestores", FilterOperator.EQ, Helper.baseEncryptArray(gestores)));
- this.loading(true);
- con.Read(constants.entity.suplantarUsuario, aParams, aFilters, [], true, this, function (resp, oController) {
- if (!oController.checkErrorResponse(resp)) {
- callback(resp);
- }
- that.loading(false);
- });
- }
- },
- onGoTo: function (oEvent) {
- var sView = oEvent.getParameter("item").getKey();
- var that = this;
- if (this._isViewForm()) {
- this._openDialogConfirmation("cancelForm", function () {
- that.goTo(sView);
- });
- } else {
- that.goTo(sView);
- }
- },
- onGoCommunications: function () {
- var that = this;
- if (this._isViewForm()) {
- this._openDialogConfirmation("cancelForm", function () {
- that.goTo("communications");
- });
- } else {
- that.goTo("communications");
- }
- },
- onGoHome: function () {
- var that = this;
- if (this._isViewForm()) {
- this._openDialogConfirmation("cancelForm", function () {
- that.goTo("home");
- });
- } else {
- that.goTo("home");
- }
- },
- onCollapseExpandPress: function (forced) {
- var sideExpanded = this.oToolPage.getSideExpanded();
- this.oToolPage.setSideExpanded(!sideExpanded);
- },
- onPressShoppping: function () {
- var that = this;
- if (this._isViewForm()) {
- this._openDialogConfirmation("cancelForm", function () {
- // that.goTo("shopping");
- // sap.ui.getCore().getEventBus().publish("Shopping", "onCreateOrder");
- that.onCreateOrder();
- });
- } else {
- // this.goTo("shopping");
- // sap.ui.getCore().getEventBus().publish("Shopping", "onCreateOrder");
- this.onCreateOrder();
- }
- },
- onCreateOrder: function () {
- if (!this._oDialogCreateOrder) {
- this._oDialogCreateOrder = sap.ui.xmlfragment("Fragment.shopping.dialogCreateOrder", dialogCreateOrderController);
- this.getView().addDependent(this._oDialogCreateOrder);
- dialogCreateOrderController.setRootController(this);
- }
- this._oDialogCreateOrder.open();
- },
- _isViewForm: function () {
- return (window.viewName === "message" || (window.viewName === "order" && window.orderPermission !== "read") || window.viewName ===
- "products" || window.viewName === "manualDelivery");
- },
- navLegal: function (oEvent) {
- var model = this.getModel("footerModel");
- var obj = model.getProperty("/" + oEvent.getSource().getKey());
- var url = window.location.origin + this.formatter.getHrefDoc(obj);
- window.open(url, "_blank");
- },
- navTodoDamm: function (oEvent) {
- var key = oEvent.getSource().getKey();
- var url = "";
- switch (key) {
- case 'media':
- url = "https://hosteleria.damm.es";
- break;
- case 'corp':
- url = "http://www.dammcorporate.com/es";
- break;
- case 'link':
- url = "http://www.damm.es";
- break;
- default:
- break;
- }
- if (url !== "") {
- window.open(url, "_blank");
- }
- },
- doLogout: function () {
- var urlLogOffService = "/destinations/logout"; //"https://sgdsgwdlh001:44300/sap/public/bc/icf/logoff"; //"http://<server>:<port>/sap/public/bc/icf/logoff";
- var urlGateway = "/destinations/logoutGW"; //"http://<server>:<port>/<serviceURL>";
- $.ajax({
- type: "GET",
- url: urlLogOffService, //Clear SSO cookies: SAP Provided service to do that
- }).done(function (data) { //Now clear the authentication header stored in the browser
- if (!document.execCommand("ClearAuthenticationCache")) { //"ClearAuthenticationCache" will work only for IE. Below code for other browsers
- $.ajax({
- type: "GET",
- url: urlGateway, //any URL to a Gateway service
- username: 'dummy', //dummy credentials: when request fails, will clear the authentication header
- password: 'dummy',
- statusCode: {
- 401: function () {
- //This empty handler function will prevent authentication pop-up in chrome/firefox
- sap.m.URLHelper.redirect("/logout.html", false);
- }
- },
- error: function () {
- //alert('reached error of wrong username password')
- }
- })
- }
- });
- /* $.ajax({
- "type" : 'GET',
- "url": "/services/userapi/logout",
- "success": function() { window.location.replace("/logout.html"); }
- });*/
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement