"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.saveUserPhoto = exports.saveTenantLogo = exports.saveBrowserIcon = exports.getUserInfoFun = void 0;

var _request = require("../../utils/request");

var _bsGlobal = require("../../utils/bs-global");

var getUserInfoFun = function getUserInfoFun() {
  return (0, _request.rpost)("v1")("manage/user/profile?toUserId=".concat((0, _bsGlobal.getUserInfo)().Id));
};

exports.getUserInfoFun = getUserInfoFun;

var saveUserPhoto = function saveUserPhoto(params) {
  return (0, _request.rpost)("v1")("manage/user/avatar", params, {
    headers: {
      "Content-Type": "multipart/form-data"
    }
  });
};

exports.saveUserPhoto = saveUserPhoto;

var saveTenantLogo = function saveTenantLogo(params) {
  return (0, _request.rpost)("v1")("tenant/update/logo", params, {
    headers: {
      "Content-Type": "multipart/form-data"
    }
  });
};

exports.saveTenantLogo = saveTenantLogo;

var saveBrowserIcon = function saveBrowserIcon(params) {
  return (0, _request.rpost)("v1")("tenant/update/browerIcon", params, {
    headers: {
      "Content-Type": "multipart/form-data"
    }
  });
};

exports.saveBrowserIcon = saveBrowserIcon;