Was based on ngResource, it is a customizable factory of Resource class.