HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/buyercall/assets/vue/widgets/contactManagement/constants.js
export const ROOT_ACTION_SET_WINDOW_WIDTH = 'ROOT_ACTION_SET_WINDOW_WIDTH';
export const ROOT_ACTION_SET_ERROR_MESSAGE = 'ROOT_ACTION_SET_ERROR_MESSAGE';
export const ROOT_ACTION_SET_SUCCESS_MESSAGE =
  'ROOT_ACTION_SET_SUCCESS_MESSAGE';
export const ROOT_ACTION_RESET_SUCCESS_AND_ERROR_MESSAGE =
  'ROOT_ACTION_RESET_SUCCESS_AND_ERROR_MESSAGE';

export const ROOT_ACTION_SET_BREADCRUMB = 'ROOT_ACTION_SET_BREADCRUMB';

export const ROOT_MUTATION_SET_WINDOW_WIDTH = 'ROOT_MUTATION_SET_WINDOW_WIDTH';
export const ROOT_MUTATION_SET_ERROR_MESSAGE =
  'ROOT_MUTATION_SET_ERROR_MESSAGE';
export const ROOT_MUTATION_SET_SUCCESS_MESSAGE =
  'ROOT_MUTATION_SET_SUCCESS_MESSAGE';

export const ROOT_MUTATION_SET_BREADCRUMB = 'ROOT_MUTATION_SET_BREADCRUMB';

export const ROOT_GETTER = 'ROOT_GETTER';
export const ROOT_GETTER_ISMOBILE_VIEW = 'ROOT_GETTER_ISMOBILE_VIEW';
export const ROOT_GETTER_GET_BREADCRUMBS = 'ROOT_GETTER_GET_BREADCRUMBS';

export const listTableConfig = {
  totalRows: 1,
  currentPaged: 1,
  perPage: 10,
  pageOptions: [5, 10, 25, 50, 100],
  filter: null,
  filterOn: ['email', 'id'],
  sortBy: 'updatedOn',
  sortDesc: false,
  fields: [

    {
      key: '0',
      label:'No',
      sortable: true,
      tdClass: 'custom-width-classNo'
    },
    {
      key: '1',
      label:'Name',
      sortable: true,
      tdClass: 'custom-width-class'
    },
    {
      key: '2',
      label: 'Phone',
      sortable: false,
      tdClass: 'custom-width-class'
    },

    {
      key: '3',
      label: 'Email',
      sortable: false,
      tdClass: 'custom-width-class'
    },

    {
      key: '4',
      label: 'Source Type',
      sortable: false,
      tdClass: 'custom-width-class'
    },
    {
      key: '5',
      label: 'Created On',
      sortable: true,
      tdClass: 'custom-width-date'
    },
    {
      key: '6',
      label: 'Updated On',
      sortable: true,
      tdClass: 'custom-width-date'
    },
    {
      key: '7',
      label: 'Status',
      sortable: false,
      tdClass: 'custom-width-class'
    },
    {
      key: '8',
      label: 'Assigned Agent',
      sortable: false,
      tdClass: 'custom-width-class'
    },
    {
      key: '9',
      label: 'Creditscore',
      sortable: false,
      tdClass: 'custom-width-class'
    },
    'action',
  ],
  sampleTemplate:[
    {
        "firstname": "John",
        "lastname": "Doe",
        "status": "application approved",
        "marketing_source": "3pl - auto loan option",
        "agent_assigned_id": "6",
        "agent_assigned_text": "Boo Number",
        "phonenumber": "+12345678908",
        "email": "john.doe@example.com",
        "note": "This is a test note",
        "address1": "123 Main St",
        "address2": "Apt 4",
        "city": "Cityville",
        "state": "ST",
        "country": "US",
        "zip": "12345",
        "birthday": "01/01/1990",
        "donotcall": false,
        "unsubscribed": false
    }
   
],
sampleTemplateHeading:[
  'firstname',
  'lastname',
  'status',
  'marketing_source',
  'agent_assigned_id',
  'agent_assigned_text',
  'phonenumber',
  'email',
  'note',
  'address1',
  'address2',
  'city',
  'state',
  'country',
  'zip',
  'birthday',
  'donotcall',
  'unsubscribed',
],
downloadAllCSV:
  [
    'No',
    'Name',
    'Phone',
    'Email',
    'Source Type',
    'Created On',
    'Updated On',
    'Status',
    'Assigned Agent',
    'Creditscore',
  ],
 // constants.js

 CSV_KEYS : ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],

 SEARCH_KEYS :['0', '1', '2', '3', '4', '5', '6', '7','8','9'],

 State : [
  {
    "text": "Alabama",
    "value": "Alabama"
  },
  {
    "text": "Alaska",
    "value": "Alaska"
  },
  {
    "text": "Arizona",
    "value": "Arizona"
  },
  {
    "text": "Arkansas",
    "value": "Arkansas"
  },
  {
    "text": "California",
    "value": "California"
  },
  {
    "text": "Colorado",
    "value": "Colorado"
  },
  {
    "text": "Connecticut",
    "value": "Connecticut"
  },
  {
    "text": "Delaware",
    "value": "Delaware"
  },
  {
    "text": "Florida",
    "value": "Florida"
  },
  {
    "text": "Georgia",
    "value": "Georgia"
  },
  {
    "text": "Hawaii",
    "value": "Hawaii"
  },
  {
    "text": "Idaho",
    "value": "Idaho"
  },
  {
    "text": "Illinois",
    "value": "Illinois"
  },
  {
    "text": "Indiana",
    "value": "Indiana"
  },
  {
    "text": "Iowa",
    "value": "Iowa"
  },
  {
    "text": "Kansas",
    "value": "Kansas"
  },
  {
    "text": "Kentucky",
    "value": "Kentucky"
  },
  {
    "text": "Louisiana",
    "value": "Louisiana"
  },
  {
    "text": "Maine",
    "value": "Maine"
  },
  {
    "text": "Maryland",
    "value": "Maryland"
  },
  {
    "text": "Massachusetts",
    "value": "Massachusetts"
  },
  {
    "text": "Michigan",
    "value": "Michigan"
  },
  {
    "text": "Minnesota",
    "value": "Minnesota"
  },
  {
    "text": "Mississippi",
    "value": "Mississippi"
  },
  {
    "text": "Missouri",
    "value": "Missouri"
  },
  {
    "text": "Montana",
    "value": "Montana"
  },
  {
    "text": "Nebraska",
    "value": "Nebraska"
  },
  {
    "text": "Nevada",
    "value": "Nevada"
  },
  {
    "text": "New Hampshire",
    "value": "New Hampshire"
  },
  {
    "text": "New Jersey",
    "value": "New Jersey"
  },
  {
    "text": "New Mexico",
    "value": "New Mexico"
  },
  {
    "text": "New York",
    "value": "New York"
  },
  {
    "text": "North Carolina",
    "value": "North Carolina"
  },
  {
    "text": "North Dakota",
    "value": "North Dakota"
  },
  {
    "text": "Ohio",
    "value": "Ohio"
  },
  {
    "text": "Oklahoma",
    "value": "Oklahoma"
  },
  {
    "text": "Oregon",
    "value": "Oregon"
  },
  {
    "text": "Pennsylvania",
    "value": "Pennsylvania"
  },
  {
    "text": "Rhode Island",
    "value": "Rhode Island"
  },
  {
    "text": "South Carolina",
    "value": "South Carolina"
  },
  {
    "text": "South Dakota",
    "value": "South Dakota"
  },
  {
    "text": "Tennessee",
    "value": "Tennessee"
  },
  {
    "text": "Texas",
    "value": "Texas"
  },
  {
    "text": "Utah",
    "value": "Utah"
  },
  {
    "text": "Vermont",
    "value": "Vermont"
  },
  {
    "text": "Virginia",
    "value": "Virginia"
  },
  {
    "text": "Washington",
    "value": "Washington"
  },
  {
    "text": "West Virginia",
    "value": "West Virginia"
  },
  {
    "text": "Wisconsin",
    "value": "Wisconsin"
  },
  {
    "text": "Wyoming",
    "value": "Wyoming"
  }
],

vechiclecondition : [
  {
    "text": "Excellent",
    "value": "Excellent"
  },
  {
    "text": "Good",
    "value": "Good"
  },
  {
    "text": "Fair",
    "value": "Fair"
  },
  {
    "text": "Poor",
    "value": "poor"
  },
  {
    "text": "Unknown",
    "value": "Unknown"
  },
],
vechiclestatus : [
  {
    "text": "New",
    "value": "New"
  },
  {
    "text": "Used",
    "value": "Used"
  },
],

fieldsCredit: [

  {
    key: 'transaction_id',
    label:'Transcation Id',
    sortable: true,
    
  },
  {
    key: 'credit_bureau',
    label:'Credit Bureau',
    sortable: true,
  },
  {
    key: 'product_type',
    label: 'Product Type',
    sortable: false,
  },

  {
    key: 'credit_score',
    label: 'Credit Score',
    sortable: false,
  },

  {
    key: 'description',
    label: 'Description',
    sortable: false,
  },
  {
    key: 'created_on',
    label: 'Created On',
    sortable: true,
  },
  'action',
],

  
};