Manager Task Targets (ManagerTask)
Pre-Sales Managers create active tasks that set daily cold calling quotas for telecalling executives:
- Target Quota: Sets the daily cold call goal per executive (system default is 100 calls).
- Team Assignment: Managers can assign a task to individual agents or broadcast it across all active subordinates (
assignToAll). - Single Active Task Rule: Each pre-sales executive can have only one active task assignment at a time.
- Manager Overrides: Managers can customize a specific agent’s requirements for the day using
targetOverride(custom call target) orbacklogOverride(manually reducing an accumulated calling backlog).
Daily Snapshot Workflow (SnapshotService)
Every night at midnight, the background SnapshotService compiles verified activity across telephony logs and follow-up records into a permanent daily snapshot:
Daily Performance Snapshot (DailyPerformanceLog)
The midnight snapshot evaluates the day’s work using concrete business rules:
- Cold Calls Done: Counts verified outbound calls where the lead was in
NEWorCONTACTEDstatus and this was the agent’s first-ever call to that lead. Subsequent calls to the same lead count as follow-up activity. - Follow-Ups Done: Counts all follow-ups completed during the day.
- Missed Follow-Ups: Any follow-up scheduled for the day that remains in
SCHEDULEDorRESCHEDULEDstatus at midnight is automatically markedMISSED, and its ID is archived inmissedFollowUpIds. - Backlog Calculation: Unmet daily call targets rollover into
coldCallBacklogIn. When an agent exceeds their daily target, surplus calls are credited toward clearing accumulated backlog (coldCallBacklogCleared).