import request from '@/utils/request'

// 查询企业用户坐席列表（admin专用，走 /admin/ 前缀，路由到 fs-admin 8004）
export function listCompanyVoiceCaller(query) {
  return request({
    url: '/admin/voice-seat/list',
    method: 'get',
    params: query
  })
}

// 查询企业用户坐席详细
export function getCompanyVoiceCaller(callingId) {
  return request({
    url: '/admin/voice-seat/' + callingId,
    method: 'get'
  })
}

// 新增企业用户坐席
export function addCompanyVoiceCaller(data) {
  return request({
    url: '/admin/voice-seat',
    method: 'post',
    data: data
  })
}

// 修改企业用户坐席
export function updateCompanyVoiceCaller(data) {
  return request({
    url: '/admin/voice-seat',
    method: 'put',
    data: data
  })
}

// 删除企业用户坐席
export function delCompanyVoiceCaller(callingId) {
  return request({
    url: '/admin/voice-seat/' + callingId,
    method: 'delete'
  })
}

// 导出企业用户坐席
export function exportCompanyVoiceCaller(query) {
  return request({
    url: '/admin/voice-seat/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/company/companyVoiceCaller/importTemplate',
    method: 'get'
  })
}
export function recover(data) {
  return request({
    url: '/company/companyVoiceCaller/recover',
    method: 'post',
    data: data
  })
}




