|
|
|
@ -5,10 +5,17 @@ import { ContactsService } from './services/contacts';
|
|
|
|
import { Migrator } from './db/migrator';
|
|
|
|
import { Migrator } from './db/migrator';
|
|
|
|
import { Metrics } from './services/metrics';
|
|
|
|
import { Metrics } from './services/metrics';
|
|
|
|
import { AllowedGroups } from './services/allowed-groups';
|
|
|
|
import { AllowedGroups } from './services/allowed-groups';
|
|
|
|
import { db } from './db';
|
|
|
|
import { db, ensureUserExists } from './db';
|
|
|
|
import { handleMetricsRequest } from './http/metrics';
|
|
|
|
import { handleMetricsRequest } from './http/metrics';
|
|
|
|
import { handleHealthRequest } from './http/health';
|
|
|
|
import { handleHealthRequest } from './http/health';
|
|
|
|
import { startServices } from './http/bootstrap';
|
|
|
|
import { startServices } from './http/bootstrap';
|
|
|
|
|
|
|
|
import { normalizeWhatsAppId, isGroupId } from './utils/whatsapp';
|
|
|
|
|
|
|
|
import { IdentityService } from './services/identity';
|
|
|
|
|
|
|
|
import { ResponseQueue } from './services/response-queue';
|
|
|
|
|
|
|
|
import { AdminService } from './services/admin';
|
|
|
|
|
|
|
|
import { CommandService } from './services/command';
|
|
|
|
|
|
|
|
import { TaskService } from './tasks/service';
|
|
|
|
|
|
|
|
import { RateLimiter } from './services/rate-limit';
|
|
|
|
|
|
|
|
|
|
|
|
// Bun is available globally when running under Bun runtime
|
|
|
|
// Bun is available globally when running under Bun runtime
|
|
|
|
declare global {
|
|
|
|
declare global {
|
|
|
|
|