define(["emberdata","app","ajax","modelmixin","../base/template"],function(a,b,c,d,e){var f=a.attr;return b.GardenTemplate=a.Model.extend(d,e,{PublictemplateID:f("string"),GardenID:f("number"),Isdistribution:f("boolean",{defaultValue:!1})}),b.GardenTemplate.reopenClass({methods:{create:{map:"BBC.GardenTemplate.AddGardenTemplate"},update:{map:"BBC.GardenTemplate.UpdateGardenTemplate"},"delete":{map:"BBC.GardenTemplate.DeleteGardenTemplateByID"},find:{map:"BBC.GardenTemplate.GetGardenTemplateByID"},query:{map:"BBC.GardenTemplate.GetGardenTemplates",args:{schoolyear:"Term",semester:"Session",grade:"Grade"}}},checkPublicTemplate:function(a,b,d){return c.send({method:"BBC.GardenTemplate.CheckPublicTemplate",data:{TemplateID:a,Term:b,Grade:d}})},distributionGardenTemplate:function(a){return c.send({method:"BBC.GardenTemplate.DistributionGardenTemplate",data:{ID:a}})}}),b.GardenTemplate});