import Ember from 'ember'; import config from './config/environment'; const Router = Ember.Router.extend({ location: config.locationType }); Router.map(function() { this.route('select-tenant'); this.route('tenant', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('telecom-vendor', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('gateway', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('agent', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('sequence', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('trunk', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('tag', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('area-code', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('agent-group', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('queue', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('trunk-strategy', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('auth-role', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('auth-permission', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('auth-user', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('campaign', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('trunk-attr', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('call-detail-record', function() { this.route('list'); this.route('quality-inspection'); this.route('account-report'); }); this.route('agent-status', function() { this.route('list'); }); this.route('ivr-menu', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('ivr-entry', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('sound', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('calling-list', function() { this.route('summary'); }); this.route('phone-blacklist', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('phone-whitelist', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('phone-greylist', function() { this.route('list'); this.route('create'); this.route('edit', {path: '/:id/edit'}); }); this.route('phone-alias', function() { this.route('list'); this.route('create'); }); this.route('call-satisfaction', function() { this.route('list'); }); this.route('agent-daily-idle-detail', function() { this.route('list'); }); }); export default Router;