outbound.js
2.98 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
126
127
128
129
130
131
132
133
134
135
import { http } from '@/main'
const url = '/rop-scrm-entmicro/router'
// 智能外呼任务分页
const getTaskList = params => {
params.method = 'entmicro.api.outbound.task.page'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
// 统计:所有任务的执行状态
const getStatusStatistics = params => {
params.method = 'entmicro.api.outbound.task.status'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 设置外呼数量
const setOutBoundNum = params => {
params.method = 'entmicro.api.outbound.task.outBoundNum'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 创建外呼执行任务
const createExecuteTask = params => {
params.method = 'entmicro.api.outbound.call.create.execute.task'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取机器人列表
const getRobotList = params => {
params.method = 'entmicro.api.outbound.call.robot.list.query'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
// 获取呼叫电话列表
const getCallerList = params => {
params.method = 'entmicro.api.outbound.call.caller.numbers.query'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
// 智能外呼任务详情-基本信息
const taskbaseDetails = params => {
params.method = 'entmicro.api.outbound.task.detail'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 智能外呼任务详情-手机号状态列表分页
const getphoneStatusList = params => {
params.method = 'entmicro.api.outbound.task.phoneStatus.page'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 下载手机号状态列表
const downloadPhoneList = params => {
params.method = 'entmicro.api.outbound.task.phoneStatus.download'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 执行任务状态变更
const updateStatus = params => {
params.method = 'entmicro.api.outbound.call.execute.task.status.update'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 导入手机号更新添加状态接口
const updatePhoneStatus = params => {
params.method = 'entmicro.api.outbound.call.import.update.phone.status'
return http({
url,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取外呼数量
const getOutBoundNum = params => {
params.method = 'entmicro.api.outbound.task.getOutBoundNum'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
export default { getTaskList, getStatusStatistics, setOutBoundNum, createExecuteTask, getRobotList, getCallerList ,taskbaseDetails ,getphoneStatusList,downloadPhoneList,updateStatus,updatePhoneStatus,getOutBoundNum}