import https from '../utils/https'

// 团队总业绩   /api/v1/level_three/overview/overall_team_performance
export const getOverallTeamPerformance = (params) => {
  return https.post('/api/v1/level_three/overview/overall_team_performance', params)
}
// 活跃组数  /api/v1/level_three/overview/total_group_count
export const getTotalGroupCount = (params) => {
  return https.post('/api/v1/level_three/overview/total_group_count', params)
}

// 团队转化率   /api/v1/level_three/overview/center_conversion_rate
export const getConversionRate = (params) => {
  return https.post('/api/v1/level_three/overview/center_conversion_rate', params)
}

// 总通话次数  /api/v1/level_three/overview/total_call_count
export const getTotalCallCount = (params) => {
  return https.post('/api/v1/level_three/overview/total_call_count', params)
}

// 获取新增客户数量、已加微客户数量以及新增客户与昨日对比情况   /api/v1/level_three/overview/new_customer
export const getNewCustomer = (params) => {
  return https.post('/api/v1/level_three/overview/new_customer', params)
}

// 获取团队本期定金转化率、本月的定金转化率以及本期与上期的定金转化率对比情况  /api/v1/level_three/overview/deposit_conversion_rate
export const getDepositConversionRate = (params) => {
  return https.post('/api/v1/level_three/overview/deposit_conversion_rate', params)
}

// 活跃客户沟通率  /api/v1/level_three/overview/active_customer_communication_rate
export const getActiveCustomerCommunicationRate = (params) => {
  return https.post('/api/v1/level_three/overview/active_customer_communication_rate', params)
}
// 平均应答时间  /api/v1/level_three/overview/average_answer_time
export const getAverageAnswerTime = (params) => {
  return https.post('/api/v1/level_three/overview/average_answer_time', params)
}
// 超时应答率、严重超时应答率   /api/v1/level_three/overview/timeout_rate
export const getTimeoutRate = (params) => {
  return https.post('/api/v1/level_three/overview/timeout_rate', params)
}
// 表格填写率  /api/v1/level_three/overview/table_filling_rate
export const getTableFillingRate = (params) => {
  return https.post('/api/v1/level_three/overview/table_filling_rate', params)
}
// 销售漏斗 

// 客户迫切解决的问题   /api/v1/level_three/overview/urgent_need_to_address
export const getUrgentNeedToAddress = (params) => {
  return https.post('/api/v1/level_three/overview/urgent_need_to_address', params)
}

// 团队业绩排名 /api/v1/level_three/overview/team_ranking
export const getTeamRanking = (params) => {
  return https.post('/api/v1/level_three/overview/team_ranking', params)
}

// 组业绩详情 /api/v1/level_three/overview/team_ranking_info
export const getTeamRankingInfo = (params) => {
  return https.post('/api/v1/level_three/overview/team_ranking_info', params)
}

// 异常预警   /api/v1/level_three/overview/abnormal_response_rate
export const getAbnormalResponseRate = (params) => {
  return https.post('/api/v1/level_three/overview/abnormal_response_rate', params)
}





