'use strict';
import { getResourcesByName, getResource, deleteResource, updateResource } from '../../meta/server/db/db.js';
import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
import { createResource } from '../../meta/server/resources/crud-resources.js';

var __defProp=Object['defineProperty'],__name=(_0x1b2f4f,_0x153d50)=>__defProp(_0x1b2f4f,'name',{'value':_0x153d50,'configurable':!![]});async function getCountries(){return getResourcesByName(resourceNames['country']);}__name(getCountries,'getCountries');async function getCountryById(_0x59e0bc){return getResource({'resourceName':resourceNames['country'],'id':_0x59e0bc});}__name(getCountryById,'getCountryById');async function createCountry(_0x23c33f){return createResource(_0x23c33f,resourceNames['country']);}__name(createCountry,'createCountry');async function deleteCountry(_0x288ffd){return deleteResource(resourceNames['country'],_0x288ffd);}__name(deleteCountry,'deleteCountry');async function updateCountry(_0x547c66){return updateResource(_0x547c66,resourceNames['country']);}__name(updateCountry,'updateCountry');

export { createCountry, deleteCountry, getCountries, getCountryById, updateCountry };
