import ApplicationAdapter from 'web-client/adapters/application';
import injectService from 'ember-service/inject';

export default ApplicationAdapter.extend({
  api: injectService(),

  buildPath(id) {
    return `/kraken/channels/${id}/analytics/lifetime`;
  },

  findRecord(store, type, id) {
    let path = this.buildPath(id);
    return this.get('api').authRequest('get', path, {}, { version: 5 });
  }
});
