define(["ember","app","broad","core/utilities/math.helper","mm","rm"],function(a,b,c,d,e){return b.ApplicationRoute=a.Route.extend({beforeModel:function(){console.log("application-route-mixin beforeModel");var a=this.controllerFor("application");a.set("dialog-name-loading","dialog-name-loading-"+d.newGuid()),c.on("loading",function(b){a.send("startLoading",b)}).on("loaded",function(b){a.send("stopLoading",b)}).on("tokenExpired",function(b){a.send("tokenExpired",b)}).on("notice",function(b){a.send("notice",b)}),e.listener.on("upgrading",function(){console.log("client upgrading!")}),e.listener.on("upgraded",function(){console.log("client upgraded!"),a.send("reload")}),console.log(b.version),e.post({version:b.version},{module:"instruction"})},model:function(){return e.request(!0,{module:"version",action:"get"}).then(function(c){console.log("app.version.client: "),console.log(c),b.version.set("client",a.Object.create(c)),e.post({},{module:"splash",action:"hide"})})},actions:{loading:function(){console.log("application-route-mixin loading"),c.trigger("loading"),this.router.one("didTransition",function(){c.trigger("loaded")})},willTransition:function(a){console.log("application-route-mixin willTransition"),this.controllerFor("application").set("attemptedTransition",a)},didTransition:function(){console.log("application-route-mixin didTransition"),this.controllerFor("application").set("activeTransition",this.controllerFor("application").get("attemptedTransition"))}}})});