define(["ember","app","rm"],function(a,b){return b.DownloadRoute=a.Route.extend({model:function(){var b,c,d=this;return c=d.get("session.histories").map(function(a){return b="~/%@-%@".fmt(a.get("schoolyear"),a.get("semester")),d.store.find("fileLocal",{_path_:b,Status:"init"})}),a.RSVP.Promise.all(c).then(function(a){return a.reduce(function(a,b){return a.concat(b.toArray())},[])})}})});