             end_date: end.format('YYYY-MM-DD')
           AdminBookingService.query(params).then (bookings) ->
             b.resourceId = b.person_id for b in bookings
-            console.log bookings
             callback(bookings)
     ]
 

      $scope.getCompanyPromise().then (company) ->
        params = {company: company}
        AdminPersonService.query(params).then (people) ->
          $scope.people = people
          resources = for p in people
            id: p.id
            title: p.name
          uiCalendarConfig.calendars.resourceCalendar.fullCalendar('refetchEvents')
          callback(resources)

    $scope.updateBooking = (booking, delta) ->
      booking.person_id = booking.resourceId
      booking.start = booking.start.add(delta)
      booking.end = booking.end.add(delta)
      booking = booking.$update()
      booking.resourceId = booking.person_id

    $scope.editBooking = (booking) ->
      ModalForm.edit

          booking.resourceId = booking.person_id
          booking.start = new_booking.start
          booking.end = new_booking.end
          uiCalendarConfig.calendars.resourceCalendar.fullCalendar('updateEvent', booking)

  link = (scope, element, attrs) ->
