// Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ import type { EntityModule } from '#desktop/components/CommonSimpleEntityList/types.ts' import { EntityType } from '#desktop/components/CommonSimpleEntityList/types.ts' const modules = import.meta.glob(['./*.ts', '!./index.ts'], { eager: true, import: 'default', }) const entityModules = Object.entries(modules).reduce( // eslint-disable-next-line @typescript-eslint/no-unused-vars (acc, [_, module]) => { acc[module.type] = module return acc }, {} as Record, ) export default entityModules