File: //home/arjun/projects/buyercall/buyercall/assets/vue/widgets/Channels/store/initialConfig.js
export const root = {
pageTitle: 'Channels',
windowWidth: window.innerWidth,
errorMessage: null,
successMessage: null,
sources: [],
selectedSourceId: null,
agents: [],
sourcesLoading: false,
agentsLoading: false,
breadCrumbs: {
home: {
label: 'Home',
isLink: true,
value: '',
isVisible: true,
sort: 1,
},
'source-list': {
label: 'Source List',
isLink: false,
value: '',
isVisible: true,
sort: 2,
},
'source-add': {
label: 'Source Add',
isLink: false,
value: '',
isVisible: false,
sort: 3,
},
'source-edit': {
label: 'Source Edit',
isLink: false,
value: '',
isVisible: false,
sort: 3,
},
},
};
export const source = {
sourceDetails: null,
selectedChannelId: null,
sourceRules: null,
selectedChannel: null,
sourceDetailsLoading: false,
editSourceLoading: false,
tabSections: [
{
label: 'Details',
description: 'Manage your meta data for source',
icon: 'bxs-user-circle',
tabsToShow: ['SOURCE_INFO'],
},
{
label: 'Channels',
description: 'Setup the channels for your source',
icon: 'bx-calendar',
tabsToShow: ['SOURCE_CHANNELS'],
},
{
label: 'Rules',
description: 'Manage your rules for channels',
icon: 'bx-bell',
tabsToShow: ['SOURCE_RULES'],
},
],
availableBCSourceChannels: [
{
name: 'phonenumbers',
icon: 'bx-calendar',
buttonLabel: 'Add / Edit Numbers',
suffixLabelMedim: 'Phone Numbers',
},
{
name: 'emails',
icon: 'bx-calendar',
buttonLabel: 'Add / Edit Emails',
suffixLabelMedim: 'Email Address',
},
{
name: 'omni-channel',
icon: 'bx-calendar',
buttonLabel: 'Add / Edit Widgets',
suffixLabelMedim: 'Widgets',
},
],
};
export const phonewidget = {
selectedId: null, //identify if its add / edit mode
details: null,
detailsLoading: false,
qNumbers: [],
numberTypes: [],
areaCodes: [],
stateOptions: [],
numberSearchLoading: false,
phoneChannelEditLoading: false,
tabSections: [
{
label: 'Phone Number Settings',
description: 'Select a number and give it a friendly display name',
icon: 'bxs-user-circle',
tabsToShow: ['NUMBER_SETTINGS'],
},
{
label: 'Recording & Greetings Settings',
description:
'Manage the recording and greeting settings for the phone number',
icon: 'bx-calendar',
tabsToShow: ['RECORD_GREETING_SETTINGS'],
},
{
label: 'Voicemail Settings',
description: 'Manage the voice mail settings for the phone number',
icon: 'bx-bell',
tabsToShow: ['VOICE_MAIL_SETTINGS'],
},
],
};
export const omniwidget = {
selectedId: null, //identify if its add / edit mode
details: null,
detailsLoading: false,
editLoading: false,
tabSections: [
{
label: 'Tab 1',
description: 'Tab1 DEsc',
icon: 'bxs-user-circle',
tabsToShow: ['NUMBER_SETTINGS'],
},
{
label: 'Tab 2',
description: 'Tab2 DEsc',
icon: 'bxs-user-circle',
tabsToShow: ['NUMBER_SETTINGS'],
},
{
label: 'Tab 3',
description: 'Tab3 DEsc',
icon: 'bxs-user-circle',
tabsToShow: ['NUMBER_SETTINGS'],
},
],
};