define(["ember","mm","underscore"],function(a,b){var c,d,e;return c=b.comn({module:"instruction",action:"fileRoot"}),e=b.comn({module:"instruction",action:"resolveUserFolder"}).then(function(a){return a.relativePath}),d=function(a){var b,d;return d=a.split("/"),"~"===d[0]?(d.shift(),b=e):b=c,b.then(function(a){return""+a+"/"+d.join("/")})},a.CoreObject.extend({setProfile:function(a){return b.comn(a,{module:"repoManager",action:"setProfile"})},getProfiles:function(){return b.comn({module:"repoManager",action:"getProfiles"})},find:function(a,c){return d(a).then(function(a){return b.comn(a,c,{module:"repoManager",action:"find"})})},patch:function(a,c){return d(a).then(function(a){return b.comn(a,c,{module:"repoManager",action:"patch"})})},put:function(a,c){return d(a).then(function(a){return b.comn(a,c,{module:"repoManager",action:"put"})})},remove:function(a,c){return d(a).then(function(a){return b.comn(a,c,{module:"repoManager",action:"remove"})})}}).create()});