'use strict';
import { ODataBuilder } from '../../../fd-toolbox/odata/odata-builders.js';
import { oDataOperators } from '../../../fd-toolbox/enums/enums.js';
import { getCurrentWorkspaceId } from '../../meta/server/providers/current-workspace-id-provider.js';
import { oDataComparisonTypes } from '../../../fd-toolbox/odata/odata-enums.js';
import { getOData } from '../../meta/server/repositories/odata-db.js';
import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
import { getResourceMeta } from '../../meta/server/services/metas.js';
import { userDtoProps } from '../../fd-app-toolbox/user-dto.js';

var __defProp=Object['defineProperty'],__name=(_0xc5d897,_0x5d677f)=>__defProp(_0xc5d897,'name',{'value':_0x5d677f,'configurable':!![]});async function get(_0x44f946){let _0x283d83=new ODataBuilder(_0x44f946);_0x283d83['filter'](userDtoProps['homeWorkspaceId'],await getCurrentWorkspaceId(),oDataOperators['equal'],{'comparisonType':oDataComparisonTypes['equal']});const _0x5d02cf=await getResourceMeta(resourceNames['user']);return getOData(_0x5d02cf['resourceName'],_0x5d02cf['orderBys'],_0x283d83['build']());}__name(get,'get');

export { get as getUsers };
