Angular-resource to require