Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { type Plan, type PlanAssignment, type Team, type User } from '@amalia/core/models';
export const makeSamplePlanAssignments = (
plans: Plan[],
teams: Team[],
users: User[],
emailPrefix: string,
): Partial<PlanAssignment>[] => [
{
plan: plans.find(({ name }) => name === 'Manager'),
user: users.find(({ email }) => email === `${emailPrefix}marvin+salesforce@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'Account Executive'),
user: users.find(({ email }) => email === `${emailPrefix}annette+salesforce@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'Manager'),
user: users.find(({ email }) => email === `${emailPrefix}dianne+salesforce@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'French Account Executive'),
user: users.find(({ email }) => email === `${emailPrefix}rachelle+salesforce@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'Account Executive'),
user: users.find(({ email }) => email === `${emailPrefix}jenny+salesforce@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'SDR'),
user: users.find(({ email }) => email === `${emailPrefix}theresa@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'SDR'),
user: users.find(({ email }) => email === `${emailPrefix}ronald@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'French Account Executive'),
user: users.find(({ email }) => email === `${emailPrefix}trevor+salesforce@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'Manager'),
user: users.find(({ email }) => email === `${emailPrefix}lewys+salesforce@amalia.io`.toLowerCase()),
mainTeamId: teams.find(({ name }) => name === 'France')!.id,
},
{
plan: plans.find(({ name }) => name === 'Hold and Release'),
user: users.find(({ email }) => email === `${emailPrefix}darrell+salesforce@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'SDR'),
user: users.find(({ email }) => email === `${emailPrefix}brooklyn+salesforce@amalia.io`.toLowerCase()),
},
{
plan: plans.find(({ name }) => name === 'Account Executive'),
user: users.find(({ email }) => email === `${emailPrefix}floyd+salesforce@amalia.io`.toLowerCase()),
},
];
|