"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchApplicationTemplateContents = exports.fetchApplicationTemplates = void 0;
const api_agent_1 = __importDefault(require("@/utils/api-agent"));
const fetchApplicationTemplates = (params) => new Promise((resolve) => {
    api_agent_1.default.get('/templates/file-searchs', params, (rs) => {
        resolve(rs);
    });
});
exports.fetchApplicationTemplates = fetchApplicationTemplates;
const fetchApplicationTemplateContents = (params) => new Promise((resolve) => {
    api_agent_1.default.get('/templates/content-searchs', params, (rs) => {
        resolve(rs);
    });
});
exports.fetchApplicationTemplateContents = fetchApplicationTemplateContents;
