import request from '@/utils/request'

// 查询企业用户坐席列表
export function listCompanyVoiceCaller(query) {
  return request({
    url: '/company/companyVoiceCaller/list',
    method: 'get',
    params: query
  })
}

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

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

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

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

// 导出企业用户坐席
export function exportCompanyVoiceCaller(query) {
  return request({
    url: '/company/companyVoiceCaller/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
  })
}




