define(["ember","emberdata","rm"],function(a,b,c){{var d=a.get;a.String.fmt,a.EnumerableUtils.indexOf}return b.Adapter.extend({defaultSerializer:null,find:function(a,b,d){return c.find(type.typeKey,{id:d})},findMany:function(){},findAll:function(){},findQuery:function(a,b,d){var e="";return d._path_&&(e=d._path_,delete d._path_),c.find(this._buildRepoName(e,b),d).then(function(a){return""!=e&&a.forEach(function(a){a._path_=e}),a})},_buildRepoName:function(a,b){return(a?a+"/":"")+b.typeKey},_updateRepository:function(a,b,d){return c.put(this._buildRepoName(d.get("_path_"),b),d.toHash({includeId:!0}))},createRecord:function(a,b,c){return this._updateRepository(a,b,c)},updateRecord:function(a,b,c){return this._updateRepository(a,b,c)},deleteRecord:function(a,b,e){return c.remove(this._buildRepoName(e._path_,b),d(e,"id"))}})});