define(["emberdata","app","ajax","modelmixin","../base/template"],function(a,b,c,d,e){var f=a.attr;return b.FinalTemplate=a.Model.extend(d,e,{lastpublishtime:f("date"),pages:a.hasMany("finalTemplatePage")}),b.FinalTemplate.reopenClass({methods:{find:{map:"BBC.History.GetTemplate"},query:{map:"BBC.History.GetTemplate",args:{schoolyear:"Term",semester:"Session",id:"TemplateID"}}}}),b.FinalTemplate});