const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  serverConfig: state => state.serverConfig.config, // 配置信息
  token: state => state.user.token,
  rolecode: state => state.user.rolecode, //角色编号
  rolename: state => state.user.rolename, //用户角色
  avatar: state => state.user.avatar, // 头像
  userid: state => state.user.userid, // 当前用户id
  username: state => state.user.name, // 用户名
  userRole: state => state.user.userRole, // 角色权限
  seatflag: state => state.user.seatflag, // 坐席标识
  usercode: state => state.user.usercode, // 工号
  extension: state => state.user.extension, // 分机号
  groupid: state => state.user.groupid, // 坐席组id
  groupcode: state => state.user.groupcode, // 坐席组code
  menus: state => state.user.menus, // 菜单
  mobile: state => state.user.mobile, //电话

  telIsConnected: state => state.telWebsocket.telIsConnected, // 是否建立话务websocket链接
  telMessageData: state => state.telWebsocket.telMessageData, // 话务 websocket 接收的数据
  telIsLogin: state => state.telWebsocket.telIsLogin, // 是否签入
  telSeatState: state => state.telWebsocket.telSeatState, // 坐席状态
  telLineState: state => state.telWebsocket.telLineState, // 线路状态
  telTopRightState: state => state.telWebsocket.telTopRightState, // 右上角状态信息
  telTopRightLamp: state => state.telWebsocket.telTopRightLamp, // 右上角指示灯状态
  telCallNum: state => state.telWebsocket.telCallNum, // 电话号码
  telCallType: state => state.telWebsocket.telCallType, // 通话类型
  telIsVisCallout: state => state.telWebsocket.telIsVisCallout, // 外呼操作面板是否显示
  telOutboundScreen: state => state.telWebsocket.telOutboundScreen, // 外呼操作面板是否显示
  telCallTime: state => state.telWebsocket.telCallTime, // 通话时间
  telMonitor: state => state.telWebsocket.telMonitor, // 监听操作是否成功
  monitorState: state => state.telWebsocket.monitorState, //状态监控
  monitorAgent: state => state.telWebsocket.monitorAgent, //监控的坐席工号
  telIsVisTask: state => state.telWebsocket.telIsVisTask, // 任务信息是否显示
  telIsVisTaskFirst: state => state.telWebsocket.telIsVisTaskFirst, // 任务信息是否第一次显示
  telTaskIsRefresh: state => state.telWebsocket.telTaskIsRefresh, // 是否刷新右上角外呼任务信息/自动外呼监控/外呼分配/我的呼叫任务

  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,

  linesConnected: state => state.lineChatSocket.linesConnected, // 是否连接
  errorMsg: state => state.lineChatSocket.errorMsg, // 错误信息
  messageCon: state => state.lineChatSocket.messageCon, // 消息内容
  // session:state =>  state.lineChatSocket.userList.find(session => session.sessionid === currentSessionId),
  isActive: state => state.lineChatSocket.isActive, // 聊天列表是否选中
  noticeMsg: state => state.lineChatSocket.noticeMsg, // 注意提示信息
  listCode: state => state.lineChatSocket.listCode, // 客户code
  userList: state => state.lineChatSocket.userList, // 聊天成员信息
  currentSessionId: state => state.lineChatSocket.currentSessionId, // 聊天成员会话id
  currentName: state => state.lineChatSocket.currentName, // 聊天成员会话name
  chatUserCode: state => state.lineChatSocket.chatUserCode, // 客服code
  collUserCode: state => state.lineChatSocket.collUserCode // 同事code

}
export default getters
