20 lines
710 B
JavaScript
20 lines
710 B
JavaScript
import BaseRoute from '../base';
|
|
import RSVP from 'rsvp';
|
|
|
|
export default BaseRoute.extend({
|
|
perm: 'PERM_VIEW_AGENT_GROUP_CREATE',
|
|
breadcrumbs: [{route: 'agent-group.list', text: '坐席组列表'}, {text: '创建坐席组'}],
|
|
model() {
|
|
const store = this.get('store');
|
|
return RSVP.hash({
|
|
active: true,
|
|
privacy: true,
|
|
campaignWeight: 100,
|
|
trunkStrategiesList: store.ajaxGet('trunk-strategy/list',
|
|
this.get('activeListQueryParams')),
|
|
tagsList: store.ajaxGet('tag/list', this.get('activeListQueryParams')),
|
|
privacyLevelsList: store.ajaxGet('agent-group/privacyLevelsList')
|
|
});
|
|
}
|
|
});
|