import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../../utils/index.js";
//#region src/components/productExtension/fields/SelectResourcesTable/server.ts
const getFormTypes = function() {
	var _ref = _asyncToGenerator(function* (params, config) {
		let { data } = yield request.getRequest().get("/shop/form", params, config);
		return (data === null || data === void 0 ? void 0 : data.list) || [];
	});
	return function getFormTypes(_x, _x2) {
		return _ref.apply(this, arguments);
	};
}();
const getAllResource = function() {
	var _ref2 = _asyncToGenerator(function* (params, config) {
		let { data } = yield request.getRequest().get("/shop/schedule/relation/resource", params, config);
		return (data === null || data === void 0 ? void 0 : data.list) || [];
	});
	return function getAllResource(_x3, _x4) {
		return _ref2.apply(this, arguments);
	};
}();
//#endregion
export { getAllResource, getFormTypes };
