"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

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

var _getLocale = require("../../../../utils/getLocale");

var _treeNode = require("../../components/menu-tree/tree-node");

var _getUserInfo = (0, _bsGlobal.getUserInfo)(),
    IsLeader = _getUserInfo.IsLeader,
    IsBoss = _getUserInfo.IsBoss,
    IsRoot = _getUserInfo.IsRoot,
    Role = _getUserInfo.Role,
    IsHrbp = _getUserInfo.IsHrbp;

var mamagementAuthority = IsBoss || IsRoot && Role !== 4 || IsLeader || IsHrbp;

var getMenus = function getMenus() {
  return [{
    icon: 'my-interview',
    label: (0, _getLocale.getLocale)('Ooo_Mo_My1on1'),
    key: 'myInterview',
    href: '#/interview?reactRouterName=myInterview'
  }, {
    icon: 'todo',
    label: (0, _getLocale.getLocale)('Ooo_Tas_ActionPlans'),
    key: 'todos',
    href: '#/interview?reactRouterName=todos'
  }, {
    icon: 'template',
    label: (0, _getLocale.getLocale)('Ooo_Mo_Templates'),
    key: 'template',
    href: '#/interview?reactRouterName=template'
  }, {
    icon: '',
    label: (0, _getLocale.getLocale)('Ooo_Mo_Administ'),
    key: 'manage-interview-group',
    type: _treeNode.GROUP_NAME_NODE,
    href: '',
    isShow: mamagementAuthority
  }, {
    icon: 'setting',
    label: (0, _getLocale.getLocale)('Rep_NewS_onManage'),
    key: 'management',
    href: '#/interview?reactRouterName=management',
    isShow: mamagementAuthority
  }, {
    icon: 'yibiao',
    label: (0, _getLocale.getLocale)('Ooo_Ddb_Dashboard'),
    key: 'dashboard',
    href: '#/interview?reactRouterName=dashboard',
    isShow: mamagementAuthority
  }];
};

var _default = getMenus;
exports["default"] = _default;