/*
 * @Author: zc
 * @description 分机组设置（wex）
 * @version:
 * @Date: 2022-08-26 14:43:22
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-11-10 11:51:09
 */
import request from '/@/utils/request';
/**
 * @description 获取分机组列表
 * @param {object} params
 * @return {*}
 */
export const getGroupList = (params?: object) => {
    return request({
        url: '/api/v1/Pbx/telgroup-list',
        method: 'get',
        params: params,
    });
};
/**
 * @description 查询分机列表
 * @param {object} params
 * @return {*}
 */
export const getTelsListWex = (params?: object) => {
    return request({
        url: '/api/v1/Pbx/query-tel-list',
        method: 'get',
        params: params,
    });
};
/**
 * @description 配置wex分机组
 * @return {*}
 * @param data
 */
export const editWexGroup = (data: object) => {
    return request({
        url: '/api/v1/Pbx/add-update-telgroup',
        method: 'post',
        data
    });
};
/**
 * @description 配置wex分机组
 * @return {*}
 * @param telNo
 */
export const getGroup = (telNo: string) => {
    return request({
        url: `/api/v1/Pbx/telgroup/${telNo}`,
        method: 'get'
    });
};