mirror of https://github.com/sipwise/ngcp-csc.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.9 KiB
125 lines
3.9 KiB
Ext.define('NgcpCsc.store.NavigationTree', {
|
|
extend: 'Ext.data.TreeStore',
|
|
|
|
storeId: 'NavigationTree',
|
|
|
|
fields: [{
|
|
name: 'text'
|
|
}],
|
|
|
|
root: {
|
|
expanded: true,
|
|
children: [{
|
|
text: 'Conversations',
|
|
iconCls: 'x-fa fa-phone',
|
|
viewType: 'conversations',
|
|
routeId: 'inbox',
|
|
acl: ['administrator', 'restricted'], //TODO define real roles, which should be delivered along with user info after successfull login
|
|
leaf: true
|
|
}, {
|
|
text: 'Addressbook',
|
|
iconCls: 'x-fa fa-book',
|
|
viewType: 'addressbook',
|
|
routeId: 'addressbook',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Call Forward',
|
|
iconCls: 'x-fa fa-angle-double-right',
|
|
viewType: 'callforward',
|
|
routeId: 'callforward',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Call Blocking',
|
|
iconCls: 'x-fa fa-ban',
|
|
routeId: 'callblocking',
|
|
acl: ['administrator'],
|
|
children: [{
|
|
text: 'Incoming',
|
|
iconCls: 'x-fa fa-arrow-circle-o-left',
|
|
viewType: 'incoming',
|
|
routeId: 'callblocking/incoming',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Outgoing',
|
|
iconCls: 'x-fa fa-arrow-circle-o-right',
|
|
viewType: 'outgoing',
|
|
routeId: 'callblocking/outgoing',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Privacy',
|
|
iconCls: 'x-fa fa-user-secret',
|
|
viewType: 'privacy',
|
|
routeId: 'callblocking/privacy',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}]
|
|
}, {
|
|
text: 'Reminder',
|
|
iconCls: 'x-fa fa-sticky-note',
|
|
viewType: 'reminder',
|
|
routeId: 'reminder',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Password',
|
|
iconCls: 'x-fa fa-key',
|
|
viewType: 'password',
|
|
routeId: 'password',
|
|
acl: ['administrator', 'restricted', 'host'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Theme Roller',
|
|
iconCls: 'x-fa fa-paint-brush',
|
|
viewType: 'themeroller',
|
|
routeId: 'themeroller',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Pbx Config',
|
|
iconCls: 'x-fa fa-cog',
|
|
routeId: 'pbxconfig',
|
|
acl: ['administrator', 'restricted', 'host'],
|
|
children: [{
|
|
text: 'Seats',
|
|
iconCls: 'x-fa fa-home',
|
|
viewType: 'seats',
|
|
routeId: 'pbxconfig/seats',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Groups',
|
|
iconCls: 'x-fa fa-users',
|
|
viewType: 'groups',
|
|
routeId: 'pbxconfig/groups',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Devices',
|
|
iconCls: 'x-fa fa-fax',
|
|
viewType: 'devices',
|
|
routeId: 'pbxconfig/devices',
|
|
acl: ['administrator'],
|
|
leaf: true
|
|
}, {
|
|
text: 'Auto Attendant',
|
|
iconCls: 'x-fa fa-microphone',
|
|
viewType: 'autoattendant',
|
|
routeId: 'pbxconfig/autoattendant',
|
|
acl: ['administrator', 'restricted', 'host'],
|
|
leaf: true
|
|
}]
|
|
}, {
|
|
text: 'Account',
|
|
iconCls: 'x-fa fa-desktop',
|
|
viewType: 'account',
|
|
routeId: 'account',
|
|
acl: ['administrator', 'restricted', 'host'],
|
|
leaf: true
|
|
}]
|
|
}
|
|
});
|