UNPKG

@fleetbase/fleetops-engine

Version:

Fleet & Transport Management Extension for Fleetbase

291 lines (281 loc) 12 kB
/* eslint-disable ember/no-shadow-route-definition */ import buildRoutes from 'ember-engines/routes'; export default buildRoutes(function () { this.route('virtual', { path: '/:section/:slug' }); this.route('operations', { path: '/' }, function () { this.route('order-config', function () {}); this.route('service-rates', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); this.route('orchestrator', function () {}); this.route('scheduler', function () { this.route('index', { path: '/' }); this.route('fleet-schedule'); }); this.route('orders', { path: '/' }, function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('virtual', { path: '/:slug' }); }); }); }); this.route('routes', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }); }); }); }); this.route('management', { path: '/manage' }, function () { this.route('fleets', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('vehicles'); this.route('drivers'); this.route('virtual', { path: '/:slug' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); this.route('vendors', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('personnel'); }); this.route('edit', { path: '/edit/:public_id' }); }); this.route('integrated', function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); this.route('drivers', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('positions'); this.route('activity'); this.route('schedule'); this.route('virtual', { path: '/:slug' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); this.route('vehicles', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('positions'); this.route('devices'); this.route('equipment'); this.route('schedules'); this.route('work-orders'); this.route('maintenance-history'); this.route('virtual', { path: '/:slug' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); this.route('places', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('operations'); this.route('performance'); this.route('activity'); this.route('map'); this.route('comments'); this.route('documents'); this.route('rules'); this.route('virtual', { path: '/:slug' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); this.route('contacts', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); this.route('edit', { path: '/edit/:public_id' }); }); this.route('customers', function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); this.route('fuel-reports', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); this.route('fuel-transactions', function () { this.route('index', { path: '/' }, function () { this.route('details', { path: '/:public_id' }); }); }); this.route('issues', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); this.route('edit', { path: '/edit/:public_id' }); }); }); }); this.route('connectivity', function () { this.route('fuel-providers', { path: '/fuel-integrations' }, function () { this.route('index', { path: '/' }); this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('sync'); this.route('matching'); this.route('transactions'); this.route('settings'); }); }); this.route('telematics', function () { this.route('index', { path: '/' }); this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('devices'); this.route('attachments'); this.route('sensors'); this.route('events'); this.route('logs'); }); }); this.route('devices', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('vehicle'); this.route('sensors'); this.route('events'); this.route('virtual', { path: '/:slug' }); }); }); }); this.route('sensors', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('virtual', { path: '/:slug' }); }); }); }); this.route('events', function () { this.route('details', { path: '/:public_id' }); }); this.route('tracking'); }); this.route('maintenance', function () { this.route('schedules', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('work-orders'); }); }); }); this.route('maintenances', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); }); }); this.route('work-orders', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); }); }); this.route('equipment', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); }); }); this.route('parts', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); }); }); }); }); this.route('analytics', function () { this.route('reports', function () { this.route('index', { path: '/' }, function () { this.route('new'); this.route('edit', { path: '/edit/:public_id' }); this.route('details', { path: '/:public_id' }, function () { this.route('index', { path: '/' }); this.route('result'); }); }); }); }); this.route('settings', function () { this.route('navigator-app'); this.route('notifications'); this.route('custom-fields'); this.route('avatars'); this.route('routing'); this.route('map'); this.route('orchestrator'); this.route('scheduling'); this.route('payments', function () { this.route('index', { path: '/' }); this.route('onboard'); }); }); });