import type { DepartmentProfile } from '../../reports/types'; import { bigSmallPlugin } from '../../reports/bigSmall'; import { selfTasksPlugin } from '../../reports/selfTasks'; import { effectivenessPlugin } from '../../reports/effectiveness'; import { newTemplatesPlugin } from '../../reports/newTemplates'; import { planOverduePlugin } from '../../reports/planOverdue'; import { singleTimePlugin } from './singleTime'; import { waitingControlPlugin } from './waitingControl'; import { overduePlugin } from './overdue'; import { completedPlugin } from './completed'; import { workloadPlugin } from './workload'; import { currentTasksPlugin } from './currentTasks'; import { salesOriginalColumnWidths } from './columnWidths'; import { withAppendFromConfig, withMenuTitle } from './pluginUtils'; import { deleteOldReportsPlugin } from '../../reports/deleteOldReports'; export const salesOriginalProfile: DepartmentProfile = { id: 'salesOriginal', reportColumnWidths: salesOriginalColumnWidths, reportSheetExtras: { freezeHeader: true, appendDates: true, }, plugins: [ withAppendFromConfig(bigSmallPlugin, ['createBigSmallTasksReport']), singleTimePlugin, waitingControlPlugin, overduePlugin, withAppendFromConfig(selfTasksPlugin, ['buildSelfAssignedTasksReport']), planOverduePlugin, workloadPlugin, currentTasksPlugin, completedPlugin, withMenuTitle( withAppendFromConfig(effectivenessPlugin, ['saveDateRange', 'repPreviousWeek']), '🔟 🆕 Лист эффективности' ), withMenuTitle( withAppendFromConfig(newTemplatesPlugin, ['createNewTemplatesRepors']), '1️⃣1️⃣ 🆕 Новые шаблоны' ), deleteOldReportsPlugin, ], };