* Pure helpers for the CRM campaign screens (CampaignList + CampaignDetail). Reads the stored template / mixed config with the same rules as `CRMQueueService` so the screen shows what the queue will actually send. No React, no IPC — covered by `src/__tests__/campaignView.test.ts`
// Source: https://github.com/babyvibe/deplao-builder | License: MIT | Copyright 2026 babyvibe
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Pure helpers for the CRM campaign screens (CampaignList + CampaignDetail).
*
* Reads the stored template / mixed config with the same rules as
* `CRMQueueService` so the screen shows what the queue will actually send.
* No React, no IPC — covered by `src/__tests__/campaignView.test.ts`.
*/
import { parseMarkup } from '../../../services/crm/message-markup';
import {
DEFAULT_CAMPAIGN_SEND_OPTIONS,
planBlockSend,
readCampaignSendOptions,
type BlockSendPlan,
type CampaignSendOptions,
} from '../../../shared/campaignSendPlan';
import { CAMPAIGN_MIN_CONTACT_DELAY_SECONDS, effectiveContactDelayRange } from '../../../s
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key