(function () {
  'use strict';

  angular
    .module('app.data')
    .factory('BookingServices', BookingServices);

  BookingServices.$inject = ['cachedResource'];

  /* @ngInject */
  function BookingServices(cachedResource) {
    // return $resource('http://rjg70.user.srcf.net/rest/booking/:Id/:from/:to',
    var date = new Date();
    date.setUTCHours(0, 0, 0, 0);
    var unixtime = Math.floor(date.getTime() / 1000);
    return cachedResource('rest/booking/:Id/:from/:to',
      {Id: '*', from: unixtime, to: null});
  }

})();

@@ -140,23 +140,18 @@
 ect = %5B'
-cachedR
+$r
 esource'
@@ -199,23 +199,18 @@
 ervices(
-cachedR
+$r
 esource)
@@ -423,15 +423,10 @@
 urn 
-cachedR
+$r
 esou

remove cachedResource on bookings