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

var __defProp=Object['defineProperty'],__name=(_0x109f8e,_0x111708)=>__defProp(_0x109f8e,'name',{'value':_0x111708,'configurable':!![]});async function getPermissionPackages(){const _0x3c50cf=await getResourcesByName(resourceNames['permissionPackage']);return _0x3c50cf;}__name(getPermissionPackages,'getPermissionPackages');async function getPermissionPackage(_0x5ca8ad){const _0x212895=await findResourceById(resourceNames['permissionPackage'],_0x5ca8ad);return _0x212895;}__name(getPermissionPackage,'getPermissionPackage');async function createPermissionPackage(_0x3f4d75){const _0x131090=await createResource(_0x3f4d75,resourceNames['permissionPackage']);return _0x131090;}__name(createPermissionPackage,'createPermissionPackage');async function updatePermissionPackage(_0x1bde2f){const _0x41dd09=await updateResource(_0x1bde2f,resourceNames['permissionPackage']);return _0x41dd09;}__name(updatePermissionPackage,'updatePermissionPackage');async function hasAnyPermissionPackage(){const _0x399120=await hasAnyResource(resourceNames['permissionPackage']);return _0x399120;}__name(hasAnyPermissionPackage,'hasAnyPermissionPackage');

export { createPermissionPackage, getPermissionPackage, getPermissionPackages, hasAnyPermissionPackage, updatePermissionPackage };
