'use strict'

angular.module('payrollhero.api').factory 'WorksitesService', (PhRestangularV2, RestangularObjectCache) ->
  class Worksite
    # just a placeholder, no methods for this class yet.
    nothing: ->
      null

  PhRestangularV2.extendModel 'worksites', (model) ->
    _.defaults(new Worksite(),model)

  RestangularObjectCache.track 'worksites', service: PhRestangularV2

  return PhRestangularV2.service('worksites')
