'use strict';
import { getResource, createResourceDirectlyInDb, updateResource, deleteResource } from '../../../meta/server/db/db.js';
import { resourceNames } from '../../../../fd-toolbox/resources/resource-names.js';
import { createResource } from '../../../meta/server/resources/crud-resources.js';
import { toolboxUserConstants } from '../../../meta/constants/toolbox-users.js';
import { getResources } from '../../../meta/server/services/resource-provider.js';

var __defProp=Object['defineProperty'],__name=(_0x1641a6,_0x5b687c)=>__defProp(_0x1641a6,'name',{'value':_0x5b687c,'configurable':!![]});function getOnePerson(_0x1a52be){return getResource({'resourceName':resourceNames['person'],'id':_0x1a52be});}__name(getOnePerson,'getOnePerson');function createPerson(_0x326f3d){return createResource(_0x326f3d,resourceNames['person']);}__name(createPerson,'createPerson');function createPersonDirectlyInDb(_0x53d3b1){return createResourceDirectlyInDb(_0x53d3b1,resourceNames['person']);}__name(createPersonDirectlyInDb,'createPersonDirectlyInDb');function getPersons(){return getResources(resourceNames['person'],toolboxUserConstants['workerBotId']);}__name(getPersons,'getPersons');function updatePerson(_0x247e7d){return updateResource(_0x247e7d,resourceNames['person']);}__name(updatePerson,'updatePerson');function deletePerson(_0x265c40){return deleteResource(_0x265c40,resourceNames['person']);}__name(deletePerson,'deletePerson');

export { createPerson, createPersonDirectlyInDb, deletePerson, getOnePerson, getPersons, updatePerson };
