// tslint:disable
/**
 * Webitel API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 24.04.0
 * Contact: support@webitel.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import * as globalImportUrl from 'url';
import globalAxios from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { BASE_PATH, BaseAPI, RequiredError, } from '../base';
/**
 * ConfigServiceApi - axios parameter creator
 * @export
 */
export const ConfigServiceApiAxiosParamCreator = function (configuration) {
    return {
        /**
         *
         * @param {LoggerCreateConfigRequest} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createConfig: async (body, options = {}) => {
            // verify required parameter 'body' is not null or undefined
            if (body === null || body === undefined) {
                throw new RequiredError('body', 'Required parameter body was null or undefined when calling createConfig.');
            }
            const localVarPath = `/logger/config`;
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'POST',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            const needsSerialization = typeof body !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(body !== undefined ? body : {})
                : body || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {number} configId
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteConfig: async (configId, options = {}) => {
            // verify required parameter 'configId' is not null or undefined
            if (configId === null || configId === undefined) {
                throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling deleteConfig.');
            }
            const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'DELETE',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {number} configId
         * @param {ConfigServicePatchConfigBody} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchConfig: async (configId, body, options = {}) => {
            // verify required parameter 'configId' is not null or undefined
            if (configId === null || configId === undefined) {
                throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling patchConfig.');
            }
            // verify required parameter 'body' is not null or undefined
            if (body === null || body === undefined) {
                throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchConfig.');
            }
            const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'PATCH',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            const needsSerialization = typeof body !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(body !== undefined ? body : {})
                : body || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {number} configId int32 domainId &#x3D; 8;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        readConfig: async (configId, options = {}) => {
            // verify required parameter 'configId' is not null or undefined
            if (configId === null || configId === undefined) {
                throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling readConfig.');
            }
            const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'GET',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {boolean} [includeExisting]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        readSystemObjects: async (includeExisting, options = {}) => {
            const localVarPath = `/logger/available_objects`;
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'GET',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (includeExisting !== undefined) {
                localVarQueryParameter['include_existing'] = includeExisting;
            }
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {number} [page]
         * @param {number} [size]
         * @param {string} [q]
         * @param {string} [sort]
         * @param {Array<string>} [fields]
         * @param {Array<'cc_queue' | 'schema' | 'users' | 'devices' | 'calendars' | 'cc_list' | 'cc_team' | 'cc_agent' | 'cc_resource' | 'cc_resource_group' | 'chat_bots' | 'cases' | 'contacts' | 'cc_list_number' | 'case_comments' | 'record_file'>} [object] NOT USED
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchConfig: async (page, size, q, sort, fields, object, options = {}) => {
            const localVarPath = `/logger/config`;
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'GET',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            if (page !== undefined) {
                localVarQueryParameter['page'] = page;
            }
            if (size !== undefined) {
                localVarQueryParameter['size'] = size;
            }
            if (q !== undefined) {
                localVarQueryParameter['q'] = q;
            }
            if (sort !== undefined) {
                localVarQueryParameter['sort'] = sort;
            }
            if (fields) {
                localVarQueryParameter['fields'] = fields;
            }
            if (object) {
                localVarQueryParameter['object'] = object;
            }
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @param {number} configId
         * @param {ConfigServiceUpdateConfigBody} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateConfig: async (configId, body, options = {}) => {
            // verify required parameter 'configId' is not null or undefined
            if (configId === null || configId === undefined) {
                throw new RequiredError('configId', 'Required parameter configId was null or undefined when calling updateConfig.');
            }
            // verify required parameter 'body' is not null or undefined
            if (body === null || body === undefined) {
                throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateConfig.');
            }
            const localVarPath = `/logger/config/{config_id}`.replace(`{${'config_id'}}`, encodeURIComponent(String(configId)));
            const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = {
                method: 'PUT',
                ...baseOptions,
                ...options,
            };
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication AccessToken required
            if (configuration && configuration.apiKey) {
                const localVarApiKeyValue = typeof configuration.apiKey === 'function'
                    ? await configuration.apiKey('X-Webitel-Access')
                    : await configuration.apiKey;
                localVarHeaderParameter['X-Webitel-Access'] = localVarApiKeyValue;
            }
            localVarHeaderParameter['Content-Type'] = 'application/json';
            localVarUrlObj.query = {
                ...localVarUrlObj.query,
                ...localVarQueryParameter,
                ...options.query,
            };
            // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
            delete localVarUrlObj.search;
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {
                ...localVarHeaderParameter,
                ...headersFromBaseOptions,
                ...options.headers,
            };
            const needsSerialization = typeof body !== 'string' ||
                localVarRequestOptions.headers['Content-Type'] === 'application/json';
            localVarRequestOptions.data = needsSerialization
                ? JSON.stringify(body !== undefined ? body : {})
                : body || '';
            return {
                url: globalImportUrl.format(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
    };
};
/**
 * ConfigServiceApi - functional programming interface
 * @export
 */
export const ConfigServiceApiFp = function (configuration) {
    return {
        /**
         *
         * @param {LoggerCreateConfigRequest} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createConfig(body, options) {
            const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).createConfig(body, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @param {number} configId
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteConfig(configId, options) {
            const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).deleteConfig(configId, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @param {number} configId
         * @param {ConfigServicePatchConfigBody} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async patchConfig(configId, body, options) {
            const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).patchConfig(configId, body, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @param {number} configId int32 domainId &#x3D; 8;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async readConfig(configId, options) {
            const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).readConfig(configId, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @param {boolean} [includeExisting]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async readSystemObjects(includeExisting, options) {
            const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).readSystemObjects(includeExisting, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @param {number} [page]
         * @param {number} [size]
         * @param {string} [q]
         * @param {string} [sort]
         * @param {Array<string>} [fields]
         * @param {Array<'cc_queue' | 'schema' | 'users' | 'devices' | 'calendars' | 'cc_list' | 'cc_team' | 'cc_agent' | 'cc_resource' | 'cc_resource_group' | 'chat_bots' | 'cases' | 'contacts' | 'cc_list_number' | 'case_comments' | 'record_file'>} [object] NOT USED
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async searchConfig(page, size, q, sort, fields, object, options) {
            const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).searchConfig(page, size, q, sort, fields, object, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
        /**
         *
         * @param {number} configId
         * @param {ConfigServiceUpdateConfigBody} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateConfig(configId, body, options) {
            const localVarAxiosArgs = await ConfigServiceApiAxiosParamCreator(configuration).updateConfig(configId, body, options);
            return (axios = globalAxios, basePath = BASE_PATH) => {
                const axiosRequestArgs = {
                    ...localVarAxiosArgs.options,
                    url: basePath + localVarAxiosArgs.url,
                };
                return axios.request(axiosRequestArgs);
            };
        },
    };
};
/**
 * ConfigServiceApi - factory interface
 * @export
 */
export const ConfigServiceApiFactory = function (configuration, basePath, axios) {
    return {
        /**
         *
         * @param {LoggerCreateConfigRequest} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createConfig(body, options) {
            return ConfigServiceApiFp(configuration)
                .createConfig(body, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {number} configId
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteConfig(configId, options) {
            return ConfigServiceApiFp(configuration)
                .deleteConfig(configId, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {number} configId
         * @param {ConfigServicePatchConfigBody} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchConfig(configId, body, options) {
            return ConfigServiceApiFp(configuration)
                .patchConfig(configId, body, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {number} configId int32 domainId &#x3D; 8;
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        readConfig(configId, options) {
            return ConfigServiceApiFp(configuration)
                .readConfig(configId, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {boolean} [includeExisting]
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        readSystemObjects(includeExisting, options) {
            return ConfigServiceApiFp(configuration)
                .readSystemObjects(includeExisting, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {number} [page]
         * @param {number} [size]
         * @param {string} [q]
         * @param {string} [sort]
         * @param {Array<string>} [fields]
         * @param {Array<'cc_queue' | 'schema' | 'users' | 'devices' | 'calendars' | 'cc_list' | 'cc_team' | 'cc_agent' | 'cc_resource' | 'cc_resource_group' | 'chat_bots' | 'cases' | 'contacts' | 'cc_list_number' | 'case_comments' | 'record_file'>} [object] NOT USED
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        searchConfig(page, size, q, sort, fields, object, options) {
            return ConfigServiceApiFp(configuration)
                .searchConfig(page, size, q, sort, fields, object, options)
                .then((request) => request(axios, basePath));
        },
        /**
         *
         * @param {number} configId
         * @param {ConfigServiceUpdateConfigBody} body
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateConfig(configId, body, options) {
            return ConfigServiceApiFp(configuration)
                .updateConfig(configId, body, options)
                .then((request) => request(axios, basePath));
        },
    };
};
/**
 * ConfigServiceApi - object-oriented interface
 * @export
 * @class ConfigServiceApi
 * @extends {BaseAPI}
 */
export class ConfigServiceApi extends BaseAPI {
    /**
     *
     * @param {LoggerCreateConfigRequest} body
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConfigServiceApi
     */
    createConfig(body, options) {
        return ConfigServiceApiFp(this.configuration)
            .createConfig(body, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {number} configId
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConfigServiceApi
     */
    deleteConfig(configId, options) {
        return ConfigServiceApiFp(this.configuration)
            .deleteConfig(configId, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {number} configId
     * @param {ConfigServicePatchConfigBody} body
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConfigServiceApi
     */
    patchConfig(configId, body, options) {
        return ConfigServiceApiFp(this.configuration)
            .patchConfig(configId, body, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {number} configId int32 domainId &#x3D; 8;
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConfigServiceApi
     */
    readConfig(configId, options) {
        return ConfigServiceApiFp(this.configuration)
            .readConfig(configId, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {boolean} [includeExisting]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConfigServiceApi
     */
    readSystemObjects(includeExisting, options) {
        return ConfigServiceApiFp(this.configuration)
            .readSystemObjects(includeExisting, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {number} [page]
     * @param {number} [size]
     * @param {string} [q]
     * @param {string} [sort]
     * @param {Array<string>} [fields]
     * @param {Array<'cc_queue' | 'schema' | 'users' | 'devices' | 'calendars' | 'cc_list' | 'cc_team' | 'cc_agent' | 'cc_resource' | 'cc_resource_group' | 'chat_bots' | 'cases' | 'contacts' | 'cc_list_number' | 'case_comments' | 'record_file'>} [object] NOT USED
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConfigServiceApi
     */
    searchConfig(page, size, q, sort, fields, object, options) {
        return ConfigServiceApiFp(this.configuration)
            .searchConfig(page, size, q, sort, fields, object, options)
            .then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @param {number} configId
     * @param {ConfigServiceUpdateConfigBody} body
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConfigServiceApi
     */
    updateConfig(configId, body, options) {
        return ConfigServiceApiFp(this.configuration)
            .updateConfig(configId, body, options)
            .then((request) => request(this.axios, this.basePath));
    }
}
//# sourceMappingURL=config-service-api.js.map