 'use strict'
 
 angular.module('taarifaWaterpointsApp')
+
   .factory 'ApiResource', ($resource) ->
     (resource, args) ->
       $resource "/api/#{resource}/:id"

          isArray: false
        update:
          method: 'PUT'
  .factory 'Waterpoint', (ApiResource) ->
    ApiResource 'waterpoints'
  .factory 'Facility', (ApiResource) ->
    ApiResource 'facilities'
  .factory 'Request', (ApiResource) ->
    ApiResource 'requests'
  .factory 'Service', (ApiResource) ->
    ApiResource 'services'
  .factory 'Map', (Waterpoint) ->
    # Initially center on Dar es Salaam
    @center =

            label: "Save"
            class: "btn btn-primary"
          return fields

  # Get an angular-dynamic-forms compatible form description from a Service
  # given a service code
  .factory 'RequestForm', (Service) ->
