define(["components/calendar/module"],function(a){"use strict";a.registerController("CalendarCtrl",["$scope","$log","CalendarEvent",function(a,b,c){a.events=[],a.eventsExternal=[{title:"Office Meeting",description:"Currently busy",className:"bg-color-darken txt-color-white",icon:"fa-time"},{title:"Lunch Break",description:"No Description",className:"bg-color-blue txt-color-white",icon:"fa-pie"},{title:"URGENT",description:"urgent tasks",className:"bg-color-red txt-color-white",icon:"fa-alert"}],c.query().$promise.then(function(b){a.events=b}),a.newEvent={},a.addEvent=function(){b.log("Adding new event:",a.newEvent);var c={title:"Untitled Event",description:"no description",className:"bg-color-darken txt-color-white",icon:"fa-info"};a.newEvent=angular.extend(c,a.newEvent),a.eventsExternal.unshift(a.newEvent),a.newEvent={}}}])});