-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrearranger.js
35 lines (34 loc) · 3.56 KB
/
rearranger.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
let arrayIndex = [`display_name`, `route_name`, `parent`, `icon`, 'superadmin', 'admin', 'business_admin', 'business_manager', 'business_accountant', 'store_admin', 'store_manager', 'store_accountant', 'store_stocker', 'store_sales', 'store_marketing', 'customer', 'generic', 'is_addon', 'sort_order', 'unique_identifier'];
let arrayList = [
['Super-admin', '/superadmin', 0, 'mdi mdi-account-cog', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, null, 0, null],
['Dashboard', '#', 0, 'mdi mdi-store', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, null, 0, null],
['Management', '#', 0, 'mdi mdi-bookmark-box-multiple-outline', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['CRM', '#', 0, 'mdi mdi-store', 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0,0, null, 0, null],
['Accounts', '#', 0, 'mdi mdi-bank', 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Settings', '#', 0, 'mdi mdi-cog', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Employees', '#', 0, 'mdi mdi-account', 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1,0, null, 0, null],
['Stores-Operations', '#', 0, 'mdi mdi-store', 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0,0, null, 0, null],
['Subscriptions', '#', 0, 'mdi mdi-cog', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Currencies', '/currencies', 1, 'mdi mdi-currency-usd', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
// ['Businesses', '/businesses', 1, 'mdi mdi-bank', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, null, 0, null],
['Admins', '/superadmin/admin', 1, 'mdi mdi-account-heart', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Customer-care', '/superadmin/cares', 1, 'mdi mdi-account-heart', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Home', '/home', 2, 'mdi mdi-home', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1, null, 0, null],
['Departments', '/departments', 3, 'mdi mdi-graph-outline', 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Categories', '/categories', 3, 'mdi mdi-store', 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Items', '/items', 3, 'mdi mdi-french-fries', 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0,0, null, 0, null],
['Stores', '/stores', 3, 'mdi mdi-store', 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Businesses', '/businesses', 3, 'mdi mdi-store', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Clients', '/clients', 3, 'mdi mdi-account-tie-outline', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Personels', '/personels', 4, 'mdi mdi-account', 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,0, null, 0, null],
['Customers', '/customers', 4, 'mdi mdi-account-tie-outline', 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0,0, null, 0, null],
['Stock In', '/stocks/in', 8, 'mdi mdi-storefront-plus', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Invoices', '/invoices', 5, 'mdi mdi-file-table-box-multiple', 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['POS', '/pos', 2, 'mdi mdi-sale', 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0,0, null, 0, null],
['Packages', '/superadmin/packages', 9, 'mdi mdi-sale', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Subscribers', '/superadmin/subscribers', 9, 'mdi mdi-sale', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Payments', '/superadmin/packages', 9, 'mdi mdi-sale', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Menus', '/menus', 6, 'mdi mdi-list', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
['Language', '/superadmin/packages', 9, 'mdi mdi-sale', 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, null, 0, null],
];
module.exports = { arrayIndex, arrayList };