// Generated by CoffeeScript 1.12.5
import Ember from 'ember';

import PagedRemoteArray from 'ember-cli-dunlop/utils/paged-remote-array';

export var filters = Ember.Object.create({
  filter_calls: 0,
  s: 'event_timestamp desc'
});

export default Ember.Route.extend({
  queryParams: {
    event_key: {
      refreshModel: true
    }
  },
  modelName: 'panda/action-event',
  setupController: function(controller) {
    controller.set('filters', filters);
    return this._super.apply(this, arguments);
  },
  model: function(params) {
    return PagedRemoteArray.create({
      modelName: this.modelName,
      store: this.store,
      filters: filters
    });
  }
});
