'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=(_0x3436ed,_0x39efe0)=>__defProp(_0x3436ed,'name',{'value':_0x39efe0,'configurable':!![]});async function getAddresses(){return getResourcesByName(resourceNames['address']);}__name(getAddresses,'getAddresses');async function getAddressById(_0x38fdd1){return getResource({'resourceName':resourceNames['address'],'id':_0x38fdd1});}__name(getAddressById,'getAddressById');async function createAddress(_0x51befd){return createResource(_0x51befd,resourceNames['address']);}__name(createAddress,'createAddress');async function deleteAddress(_0x3979f0){return deleteResource(resourceNames['address'],_0x3979f0);}__name(deleteAddress,'deleteAddress');async function updateAddress(_0x2be5f0){return updateResource(_0x2be5f0,resourceNames['address']);}__name(updateAddress,'updateAddress');

export { createAddress, deleteAddress, getAddressById, getAddresses, updateAddress };
