export const ROLES = {
  DD: 'DD',
  DD_ZM: 'DD-ZM',
  RBM: 'RBM',
  ZBH: 'ZBH',
  DD_LEAD: 'DD Lead',
  DD_HEAD: 'DD Head',
  NBH: 'NBH',
  DD_ADMIN: 'DD Admin',
  LEGAL_ADMIN: 'Legal Admin',
  SUPER_ADMIN: 'Super Admin',
  DD_AM: 'DD AM',
  ASM: 'ASM',
  FINANCE: 'Finance',
  DEALER: 'Dealer',
  ARCHITECTURE: 'ARCHITECTURE',
  FDD: 'FDD',
  CCO: 'CCO',
  CEO: 'CEO'
} as const;

export const STAGES_MAP = {
  'ONBOARDING': {
    'General': ROLES.DD_ADMIN,
    'KYC': ROLES.DD_ADMIN,
    'Level 1 Interview': ROLES.RBM,
    'Level 2 Interview': ROLES.ZBH,
    'Level 3 Interview': ROLES.NBH,
    'FDD': ROLES.FDD,
    'LOI Approval': `${ROLES.DD_HEAD},${ROLES.NBH}`,
    'LOA Approval': ROLES.NBH,
    'LOI Issue': ROLES.DD_ADMIN,
    'Architecture Team Assigned': ROLES.ARCHITECTURE,
    'Architecture Document Upload': ROLES.ARCHITECTURE,
    'Architecture Team Completion': ROLES.ARCHITECTURE,
    'EOR': ROLES.DD_ADMIN,
    'Inauguration': ROLES.DD_ADMIN
  },
  'RESIGNATION': {
    'Submission': ROLES.DEALER,
    'Regional Review': ROLES.RBM,
    'ZM Review': ROLES.DD_ZM,
    'ZBH Review': ROLES.ZBH,
    'Finance Review': ROLES.FINANCE,
    'DDL Review': ROLES.DD_LEAD,
    'Approved': ROLES.DD_HEAD
  },
  'RELOCATION': {
    'Initiated': ROLES.DEALER,
    'ASM Review': ROLES.ASM,
    'ZM Review': ROLES.DD_ZM,
    'ZBH Review': ROLES.ZBH,
    'Completed': ROLES.DD_HEAD
  },
  'CONSTITUTIONAL_CHANGE': {
    'Draft': ROLES.DEALER,
    'Legal Review': ROLES.LEGAL_ADMIN,
    'Approved': ROLES.DD_HEAD
  },
  'TERMINATION': {
    'Hearing': ROLES.NBH,
    'Review': ROLES.DD_LEAD,
    'Closed': ROLES.DD_HEAD
  }
} as const;
