mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* move delegation credential repository to features * mv credential repository to features * update imports * mv * fix * fix * fix * fix * fix * update imports * update imports * update eslint rule * fix * fix * mv getConnectedDestinationCalendars * fix import errors * mv getCalendarsEvents * remove getUsersCredentials * wip * revert eslint rule change for now * fix type checks * fix * format * cleanup * fix * fix * fix * fix * fix tests * migrate getUserAvailability * migrate * fix tests * fix type checks * fix * fix * migrate crmManager * update imports * migrate raqbUtils to appstore * migrate getLuckyUser to features * migrate findTeamMembersMatchingAttributeLogic to appstore * update imports * fix * fix * fix test * fix unit tests * fix * fix * add eslint config
19 lines
937 B
TypeScript
19 lines
937 B
TypeScript
import type { QualifiedHostsService } from "@calcom/features/bookings/lib/host-filtering/findQualifiedHostsWithDelegationCredentials";
|
|
import { DI_TOKENS } from "@calcom/features/di/tokens";
|
|
import { prismaModule } from "@calcom/prisma/prisma.module";
|
|
|
|
import { createContainer } from "../di";
|
|
import { bookingRepositoryModule } from "../modules/Booking";
|
|
import { filterHostsModule } from "../modules/FilterHosts";
|
|
import { qualifiedHostsModule } from "../modules/QualifiedHosts";
|
|
|
|
const container = createContainer();
|
|
container.load(DI_TOKENS.PRISMA_MODULE, prismaModule);
|
|
container.load(DI_TOKENS.BOOKING_REPOSITORY_MODULE, bookingRepositoryModule);
|
|
container.load(DI_TOKENS.FILTER_HOSTS_SERVICE_MODULE, filterHostsModule);
|
|
container.load(DI_TOKENS.QUALIFIED_HOSTS_SERVICE_MODULE, qualifiedHostsModule);
|
|
|
|
export function getQualifiedHostsService() {
|
|
return container.get<QualifiedHostsService>(DI_TOKENS.QUALIFIED_HOSTS_SERVICE);
|
|
}
|