2021-12-02 05:32:43 +00:00
|
|
|
import { frontendURL } from '../../../../helper/URLHelper';
|
|
|
|
|
|
|
|
const conversations = accountId => ({
|
|
|
|
parentNav: 'conversations',
|
|
|
|
routes: [
|
|
|
|
'home',
|
|
|
|
'inbox_dashboard',
|
|
|
|
'inbox_conversation',
|
|
|
|
'conversation_through_inbox',
|
|
|
|
'notifications_dashboard',
|
|
|
|
'label_conversations',
|
|
|
|
'conversations_through_label',
|
|
|
|
'team_conversations',
|
|
|
|
'conversations_through_team',
|
2021-12-09 05:50:14 +00:00
|
|
|
'conversation_mentions',
|
|
|
|
'conversation_through_mentions',
|
2022-01-17 03:48:54 +00:00
|
|
|
'custom_view_conversations',
|
|
|
|
'conversations_through_custom_view',
|
2021-12-02 05:32:43 +00:00
|
|
|
],
|
|
|
|
menuItems: [
|
|
|
|
{
|
|
|
|
icon: 'chat',
|
|
|
|
label: 'ALL_CONVERSATIONS',
|
|
|
|
key: 'conversations',
|
|
|
|
toState: frontendURL(`accounts/${accountId}/dashboard`),
|
|
|
|
toolTip: 'Conversation from all subscribed inboxes',
|
|
|
|
toStateName: 'home',
|
|
|
|
},
|
2021-12-09 05:50:14 +00:00
|
|
|
{
|
|
|
|
icon: 'mention',
|
|
|
|
label: 'MENTIONED_CONVERSATIONS',
|
|
|
|
key: 'conversation_mentions',
|
|
|
|
toState: frontendURL(`accounts/${accountId}/mentions/conversations`),
|
|
|
|
toStateName: 'conversation_mentions',
|
|
|
|
},
|
2021-12-02 05:32:43 +00:00
|
|
|
],
|
|
|
|
});
|
|
|
|
|
|
|
|
export default conversations;
|