20 lines
723 B
JavaScript
20 lines
723 B
JavaScript
import BaseRoute from '../base';
|
|
import RSVP from 'rsvp';
|
|
|
|
export default BaseRoute.extend({
|
|
perm: 'PERM_VIEW_CAMPAIGN_CREATE',
|
|
breadcrumbs: [{route: 'campaign.list', text: '外呼活动列表'}, {text: '创建外呼活动'}],
|
|
model() {
|
|
const store = this.get('store');
|
|
const activeListQueryParams = this.get('activeListQueryParams');
|
|
return RSVP.hash({
|
|
active: true,
|
|
privacy: true,
|
|
trunkStrategiesList: store.ajaxGet('trunk-strategy/list',
|
|
activeListQueryParams),
|
|
tagsList: store.ajaxGet('tag/list', activeListQueryParams),
|
|
stateMachineList: store.ajaxGet('campaign/list-state-machine')
|
|
});
|
|
}
|
|
});
|