/* global truex */
import Service from 'ember-service';

export default Service.extend({
  _initialized: false,

  init() {
    this._super(...arguments);

    if (typeof truex !== 'undefined') {
      this._initialized = true;
    }
  },

  isInitialized() {
    return this._initialized;
  },

  client() {
    return truex.client(...arguments);
  }
});
