aiCall.js
2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-07 10:11:22
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-07 15:49:57
* @FilePath: \scrm-micro-home\src\api\modules\aiCall.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http } from '@/main'
const url = '/rop-scrm-entmicro/router'
//门店任务创建内容回显
const contentEcho = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.create.content.echo'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//AI外呼任务详情-客户列表多条件分页导出
const conditionExpost = params => {
params.method = 'entmicro.api.outbound.task.customer.condition.export'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//AI外呼任务详情-客户列表多条件分页
const conditionPage = params => {
params.method = 'entmicro.api.outbound.task.customer.condition.page'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//智能外呼任务分页
const taskPage = params => {
params.method = 'entmicro.api.outbound.task.page'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//门店创建外呼任务
const createTask = params => {
params.method = 'entmicro.api.outbound.call.merchant.create.task'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//更改门店外呼任务
const updateTask = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.create.content.update'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//门店外呼任务分页
const merchantTaskPage = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.page'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//门店删除外呼任务
const merchantTaskDelete = params => {
params.method = 'entmicro.api.outbound.call.merchant.task.delete'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//创建外呼任务校验客户手机号接口
const phoneCheck = params => {
params.method = 'entmicro.api.outbound.call.phone.check'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
//创建外呼任务校验客户手机号接口
const robotList = params => {
params.method = 'entmicro.api.outbound.call.robot.list.query'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
export default {
contentEcho,
conditionExpost,
conditionPage,
taskPage,
createTask,
merchantTaskPage,
merchantTaskDelete,
phoneCheck,
robotList,
updateTask
}