Solved object not defined issue, now service is accesible from xhr namespace