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/ChannelsNew/store/phonewidget/index.js
import mutations from './mutations.js';
import actions from './actions.js';
import getters from './getters.js';

const initialState = {
  channels: [],
  channelsLoading: false,
  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 default {
  namespaced: true,
  state: initialState,
  getters,
  actions,
  mutations,
};