title: How to Combine factories to single factory in angularjs
body: <p>In the <code>service.js</code> file I have created two factories. Please let me know how to combine these two factories to one. So that I can import only one factory in my controller.</p>
  
  <pre><code>.factory('DeliveryReport', function($resource, API_URL) {
      return $resource(API_URL  + 'security/:userId/:timestamp/listOfDeliveries', {
        userId : '@userId',
        timestamp : '@timestamp'
      }, {
        update: {
          method: 'PUT'
        }
      });
    })
  
    .factory('GuestReport', function($resource, API_URL) {
      return $resource(API_URL  + 'security/:userId/:timestamp/listOfGuests', {
        userId : '@userId',
        timestamp : '@timestamp'
      }, {
        update: {
          method: 'PUT'
        }
      });
    })
  </code></pre>