/*
 * @Author: zc
 * @description 话务管理 - 通话记录
 */
import request from '@/utils/request';
/**
 * @description 分页通话记录列表
 * @param {object} params
 * @return {*}
 */
export const callLogPaged = (params?: object) => {
	return request({
		url: `/api/v1/IPPbx/calls/call-list`,
		method: 'get',
		params,
	});
};
/**
 * @description 分页通话记录基础信息
 * @return {*}
 */
export const callBaseData = () => {
	return request({
		url: `/api/v1/IPPbx/calls/basedata`,
		method: 'get',
	});
};
/**
 * @description 查询可关联工单
 * @param {object} params
 * @return {*}
 */
export const callLogOrder = (params?: object) => {
	return request({
		url: `/api/v1/IPPbx/canlink-order`,
		method: 'get',
		params,
	});
};
/**
 * @description 查询可关联回访
 * @param {object} params
 * @return {*}
 */
export const callLogVisit = (params?: object) => {
	return request({
		url: `/api/v1/IPPbx/canlink-ordervisit`,
		method: 'get',
		params,
	});
};
/**
 * @description 提交关联
 * @param {object} data
 * @return {*}
 */
export const callLogLink = (data: object) => {
	return request({
		url: `/api/v1/IPPbx/link-callrecord`,
		method: 'post',
		data,
	});
};
