import type { BookingAuditViewerService } from "@calcom/features/booking-audit/lib/service/BookingAuditViewerService"; import { BOOKING_AUDIT_DI_TOKENS } from "@calcom/features/booking-audit/di/tokens"; import { DI_TOKENS } from "@calcom/features/di/tokens"; import { prismaModule } from "@calcom/features/di/modules/Prisma"; import { moduleLoader as bookingAuditRepositoryModuleLoader } from "@calcom/features/booking-audit/di/BookingAuditRepository.module"; import { moduleLoader as bookingAuditViewerServiceModuleLoader } from "@calcom/features/booking-audit/di/BookingAuditViewerService.module"; import { createContainer } from "../di"; const container = createContainer(); container.load(DI_TOKENS.PRISMA_MODULE, prismaModule); bookingAuditRepositoryModuleLoader.loadModule(container); bookingAuditViewerServiceModuleLoader.loadModule(container); export function getBookingAuditViewerService() { return container.get(BOOKING_AUDIT_DI_TOKENS.BOOKING_AUDIT_VIEWER_SERVICE); }