66 lines
1.7 KiB
JavaScript
66 lines
1.7 KiB
JavaScript
import { frontendURL } from '../../helper/URLHelper';
|
|
|
|
const common = accountId => ({
|
|
routes: [
|
|
'home',
|
|
'inbox_dashboard',
|
|
'inbox_conversation',
|
|
'conversation_through_inbox',
|
|
'notifications_dashboard',
|
|
'profile_settings',
|
|
'profile_settings_index',
|
|
'label_conversations',
|
|
'conversations_through_label',
|
|
'team_conversations',
|
|
'conversations_through_team',
|
|
'notifications_index',
|
|
],
|
|
menuItems: {
|
|
assignedToMe: {
|
|
icon: 'chat',
|
|
label: 'CONVERSATIONS',
|
|
hasSubMenu: false,
|
|
key: '',
|
|
toState: frontendURL(`accounts/${accountId}/dashboard`),
|
|
toolTip: 'Conversation from all subscribed inboxes',
|
|
toStateName: 'home',
|
|
},
|
|
contacts: {
|
|
icon: 'book-contacts',
|
|
label: 'CONTACTS',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/contacts`),
|
|
toStateName: 'contacts_dashboard',
|
|
},
|
|
notifications: {
|
|
icon: 'alert',
|
|
label: 'NOTIFICATIONS',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/notifications`),
|
|
toStateName: 'notifications_dashboard',
|
|
},
|
|
report: {
|
|
icon: 'arrow-trending-lines',
|
|
label: 'REPORTS',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/reports`),
|
|
toStateName: 'settings_account_reports',
|
|
},
|
|
campaigns: {
|
|
icon: 'megaphone',
|
|
label: 'CAMPAIGNS',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/campaigns`),
|
|
toStateName: 'settings_account_campaigns',
|
|
},
|
|
settings: {
|
|
icon: 'settings',
|
|
label: 'SETTINGS',
|
|
hasSubMenu: false,
|
|
toState: frontendURL(`accounts/${accountId}/settings`),
|
|
toStateName: 'settings_home',
|
|
},
|
|
},
|
|
});
|
|
|
|
export default common;
|