aiSipCallPhone.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. import request from '@/utils/request'
  2. // 查询aiSIP外呼通话记录列表
  3. export function listAiSipCallPhone(query) {
  4. return request({
  5. url: '/company/aiSipCall/phone/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询aiSIP外呼通话记录详细
  11. export function getAiSipCallPhone(id) {
  12. return request({
  13. url: '/company/aiSipCall/phone/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增aiSIP外呼通话记录
  18. export function addAiSipCallPhone(data) {
  19. return request({
  20. url: '/company/aiSipCall/phone',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改aiSIP外呼通话记录
  26. export function updateAiSipCallPhone(data) {
  27. return request({
  28. url: '/company/aiSipCall/phone',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除aiSIP外呼通话记录
  34. export function delAiSipCallPhone(id) {
  35. return request({
  36. url: '/company/aiSipCall/phone/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出aiSIP外呼通话记录
  41. export function exportAiSipCallPhone(query) {
  42. return request({
  43. url: '/company/aiSipCall/phone/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 同步aiSIP外呼通话记录
  49. export function manualPull() {
  50. return request({
  51. url: '/company/aiSipCall/phone/manualPull',
  52. method: 'get'
  53. })
  54. }
  55. // 播放/下载录音(后端返回二进制流,RequestBody 取 wavfile)
  56. export function playAndDownload(data, config = {}) {
  57. return request({
  58. url: '/company/aiSipCall/phone/playAndDownload',
  59. method: 'post',
  60. data: data,
  61. responseType: 'blob',
  62. timeout: 600000,
  63. ...config
  64. })
  65. }
  66. // 查询sip执行详情
  67. export function listCVO(query) {
  68. return request({
  69. url: '/company/aiSipCall/phone/listCVO',
  70. method: 'get',
  71. params: query
  72. })
  73. }
  74. // 统计详情列表
  75. export function statisticalManagement(data) {
  76. return request({
  77. url: '/company/aiSipCall/phone/statisticalManagement',
  78. method: 'post',
  79. data: data
  80. })
  81. }
  82. // 导出aiSIP外呼通话记录
  83. export function exportStatisticalManagement(query) {
  84. return request({
  85. url: '/company/aiSipCall/phone/exportStatisticalManagement',
  86. method: 'get',
  87. params: query
  88. })
  89. }
  90. // 自动化任务sip执行计划详情列表
  91. export function companySopList(query) {
  92. return request({
  93. url: '/company/aiSipCall/phone/companySopList',
  94. method: 'get',
  95. params: query
  96. })
  97. }