File: //proc/self/root/home/arjun/projects/buyercall/buyercall/assets/vue/widgets/Workflows/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,
currentPage: 1,
perPage: 5,
pageOptions: [5, 10, 25, 50, 100],
filter: null,
filterOn: [],
sortBy: 'updatedOn',
sortDesc: false,
fields: [
{
key: 'name',
sortable: true,
},
{
key: 'description',
sortable: true,
},
{
key: 'type',
sortable: true,
},
{
key: 'createdOn',
sortable: true,
},
{
key: 'updatedOn',
sortable: true,
},
{
key: 'updated_by',
sortable: true,
},
{
key: 'created_by',
sortable: true,
},
'status',
'is_active',
'action',
],
};
export const leadScoreSelectOptions = [
{
label: 'is greater than or equal to',
value: 'GT',
},
{
label: 'is less than or equal to',
value: 'LT',
},
{
label: 'is equal to',
value: 'EQ',
},
];
export const leadTypeSelectOptions = [
{
label: 'equal to (in)',
value: 'EQ',
},
{
label: 'not equal to (not in)',
value: 'NEQ',
},
];
export const leadTypeValueOptions = [
{
label: 'Customer',
value: 'customer',
},
{
label: 'Prospect',
value: 'prospect',
},
{
label: 'Lead',
value: 'lead',
},
];
export const leadTypeASelectOptions = [
{
label: 'equal to (in)',
value: 'EQ',
},
{
label: 'not equal to (not in)',
value: 'NEQ',
},
];
export const leadTypeAValueOptions = [
{
label: 'Customer',
value: 'customer',
},
{
label: 'Prospect',
value: 'prospect',
},
{
label: 'Lead',
value: 'lead',
},
];
export const contactChannelValueOptions = [
// {
// label: 'Phone call',
// value: 'Phone call',
// },
// {
// label: 'SMS',
// value: 'SMS',
// },
{
label: 'Chat',
value: 'chat',
},
// {
// label: 'Web form',
// value: 'Web form',
// },
{
label: 'Email',
value: 'email',
},
// {
// label: 'Integration',
// value: 'Integration',
// },
// {
// label: 'Import',
// value: 'Import',
// },
// {
// label: 'API',
// value: 'API',
// },
];
export const contactBirthdayValueOptions = [
{
label: "today's date",
value: 'TODAY',
},
{
label: '5 days before',
value: '5 days before',
},
{
label: '5 days after',
value: '5 days after',
},
];
export const contactBirthdaySelectOptions = [
{
label: 'equal to (in)',
value: 'EQ',
},
];
export const workflowConditions = [
{
value: 'SCORE',
label: 'intent score',
},
{
value: 'LEAD_TYPE',
label: 'Type',
},
{
value: 'CONTACT_STATUS_TAG',
label: ' status tag',
},
{
value: 'SOURCE',
label: 'source',
},
{
value: 'CHANNEL',
label: 'channel',
},
{
value: 'BIRTHDAY',
label: 'birthday',
},
{
label: 'credit score',
value: 'CREDIT_SCORE',
},
{
label: 'income',
value: 'INCOME',
},
{
label: 'interaction count',
value: 'INTERACTION_COUNT',
},
{
label: 'created date',
value: 'CREATED_DATE',
},
];
export const createdDateSelectOptions = [
{
label: 'equal to',
value: 'EQ',
},
];
export const createdDateValueOptions = [
{
label: '1 day later',
value: '1 day later',
},
{
label: '2 days later',
value: '2 days later',
},
{
label: '5 days after',
value: '5 days after',
},
{
label: '10 days later',
value: '10 days later',
},
{
label: '20 days later',
value: '20 days later',
},
];
export const creditScoreSelectOptions = [
{
label: 'equal to',
value: 'EQ',
},
{
label: 'greater than',
value: 'GT',
},
{
label: 'less than',
value: 'LT',
},
];
export const workflowActions = [
{
value: 'AGENT',
label: 'Assign the contact to',
},
{
value: 'TAGS',
label: 'Assign The following status tags to the contact',
},
{
value: 'INTENT_SCORE',
label: 'Assign intent score to contact',
},
{
value: 'SEND_EMAIL',
label: 'Send email to contact',
},
];
export const leadScoreValueOptions = [
{
label: 'cold',
value: 'cold',
},
{
label: 'warm',
value: 'warm',
},
{
label: 'hot',
value: 'hot',
},
];