/**
 * Adapter Registry — single source of truth for which CRM and Send-Provider
 * implementations are active. Mailforge core resolves all CRM / send calls
 * through this file.
 *
 * To change a backend, swap the import and re-deploy. No code in `src/lib/` or
 * `src/modules/` should ever import an adapter directly — they always go
 * through `adapters` exported here.
 *
 * Defaults:
 *   - CRM:  generic-rest (mock-mode if not configured — useful for dev)
 *   - Send: m365       (Microsoft Graph; konfigurierbar via env oder Settings `send_provider_config`)
 *   - Send-Alt: smtp   (universal — in `adapters.config.ts` auf `smtpProvider` wechseln)
 *
 * Beiliegende Alternativ-Adapter (Beispiel-Implementierungen):
 *   - cumas       (für die Cumas365 / Nova-Plattform)
 *   - m365        (für Microsoft Graph / Exchange Online)
 */

import type { CrmAdapter } from '@/adapters/crm/interface';
import type { SendProvider } from '@/adapters/send/interface';

import { genericRestAdapter } from '@/adapters/crm/generic-rest';
// import { cumasAdapter } from "@/adapters/crm/cumas";

import { m365Provider } from '@/adapters/send/m365';

export const adapters: { crm: CrmAdapter; send: SendProvider } = {
  crm: genericRestAdapter,
  send: m365Provider,
};
