Move require for angular-resource to user service