import Ember from 'ember'
import PagedRemoteArray from 'ember-cli-dunlop/utils/paged-remote-array'
export 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: (controller) ->
    controller.set 'filters', filters
    @_super arguments...

  model: (params) ->
    PagedRemoteArray.create
      modelName:   @modelName
      store:       @store
      filters:     filters
