"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCategories = exports.saveApplicationsBuilderSetting = exports.getApplicationsBuilderSetting = void 0;
const api_agent_1 = __importDefault(require("@/utils/api-agent"));
const getApplicationsBuilderSetting = (params) => new Promise((resolve) => {
    api_agent_1.default.get('/applications/builder-setting-searchs', params, (rs) => {
        resolve(rs);
    });
});
exports.getApplicationsBuilderSetting = getApplicationsBuilderSetting;
const saveApplicationsBuilderSetting = (params) => new Promise((resolve) => {
    api_agent_1.default.put('/applications/builder-setting', params, (rs) => {
        resolve(rs);
    });
});
exports.saveApplicationsBuilderSetting = saveApplicationsBuilderSetting;
const getCategories = (params) => new Promise((resolve) => {
    api_agent_1.default.get('/components/category-types', params, (rs) => {
        resolve(rs);
    });
});
exports.getCategories = getCategories;
