yoqw/web/cms/app/router.js
2020-07-03 15:40:31 +08:00

122 lines
2.7 KiB
JavaScript

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('campaign-stat', function() {
this.route('list');
});
this.route('trunk-attr', function() {
this.route('list');
this.route('create');
this.route('edit', {path: '/:id/edit'});
});
this.route('calling-list', function() {
this.route('list');
this.route('create');
this.route('edit', {path: '/:id/edit'});
});
this.route('call-detail-record', function() {
this.route('list');
});
});
export default Router;