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

var __defProp=Object['defineProperty'],__name=(_0x4c7e32,_0x57527f)=>__defProp(_0x4c7e32,'name',{'value':_0x57527f,'configurable':!![]});function getOneContact(_0x24472a){return getResource({'resourceName':resourceNames['contact'],'id':_0x24472a});}__name(getOneContact,'getOneContact');async function createContact(_0x103ab1){return createResource(_0x103ab1,resourceNames['contact']);}__name(createContact,'createContact');function updateContact(_0x2becf8){return updateResource(_0x2becf8,resourceNames['contact']);}__name(updateContact,'updateContact');function getContacts(){return getResourcesByName(resourceNames['contact']);}__name(getContacts,'getContacts');

export { createContact, getContacts, getOneContact, updateContact };
