updated service.js
enhanced queue service to support PULL queues