import { LEADS_STATUS } from '../../../utills/constant';

const ringing = LEADS_STATUS['ringing'];
const notReachable = LEADS_STATUS['notReachable'];
const switchOff = LEADS_STATUS['switchOff'];
const interested = LEADS_STATUS['interested'];
const scheduled_sv = LEADS_STATUS['scheduled_sv'];
const scheduled_vc = LEADS_STATUS['scheduled_vc'];
const scheduled_obm = LEADS_STATUS['scheduled_obm'];
const visit_sv = LEADS_STATUS['visit_sv'];
const visit_vc = LEADS_STATUS['visit_vc'];
const visit_obm = LEADS_STATUS['visit_obm'];
const didNotShowUp = LEADS_STATUS['didNotShowUp'];
const tokenDone = LEADS_STATUS['tokenDone'];
const talkDone = LEADS_STATUS['talkDone'];
const bookingDone = LEADS_STATUS['bookingDone'];
const notInterested = LEADS_STATUS['notInterested'];
const broker = LEADS_STATUS['broker'];
const fake = LEADS_STATUS['fake'];
const bookingCancelled = LEADS_STATUS['bookingCancelled'];

export const statusOperations: { [key: number]: string[] } = {
  0: [],
  [ringing.id]: [
    'follow_up_at',
    'remark',
  ],
  [notReachable.id]: [
    'follow_up_at',
    'remark',
  ],
  [switchOff.id]: [
    'follow_up_at',
    'remark',
  ],
  [interested.id]: [
    'which_configuration_you_are_looking_for_',
    'possession',
    'min_budget',
    'follow_up_at',
    'remark',
  ],

  [scheduled_sv.id]: [
    'which_configuration_you_are_looking_for_',
    'possession',
    'min_budget',
    'assign_field_sales_id',
    'scheduled_at',
    'schedule_time',
    'remark',
  ],
  [scheduled_vc.id]: [
    'which_configuration_you_are_looking_for_',
    'possession',
    'min_budget',
    'assign_field_sales_id',
    'scheduled_at',
    'schedule_time',
    'remark',
  ],
  [scheduled_obm.id]: [
    'which_configuration_you_are_looking_for_',
    'possession',
    'min_budget',
    'assign_field_sales_id',
    'scheduled_at',
    'schedule_time',
    'remark',
  ],

  [visit_sv.id]: [
    'which_configuration_you_are_looking_for_',
    'possession',
    'min_budget',
    'site_visited_at',
    'status',
    'project',
    'follow_up_at',
    'remark',
  ],
  [visit_vc.id]: [
    'which_configuration_you_are_looking_for_',
    'possession',
    'min_budget',
    'site_visited_at',
    'status',
    'project',
    'follow_up_at',
    'remark',
  ],
  [visit_obm.id]: [
    'which_configuration_you_are_looking_for_',
    'possession',
    'min_budget',
    'site_visited_at',
    'status',
    'project',
    'follow_up_at',
    'remark',
  ],

  [didNotShowUp.id]: ['follow_up_at', 'remark'],

  [tokenDone.id]: [
    'token_amount',
    'token_date',
    'which_configuration_you_are_looking_for_',
    'carpet_area',
    'unit',
    'pricing',
    'remark',
  ],

  [talkDone.id]: [
    'which_configuration_you_are_looking_for_',
    'possession',
    'min_budget',
    'follow_up_at',
    'remark',
  ],

  [bookingDone.id]: [
    'booking_applicants',
    'booking_amount',
    'booked_at',
    'brokerage',
    'passback_amount',
    'which_configuration_you_are_looking_for_',
    'carpet_area',
    'unit',
    'agreement_value',
    'sourcing',
    'closing',
    'booking_images',
    'remark',
  ],

  [notInterested.id]: ['remark'],
  [broker.id]: ['remark'],
  [fake.id]: ['remark'],
  [bookingCancelled.id]: ['remark'],
};
