text: import { httpMethods } from "@tix-factory/http";
  
  export default class {
  	constructor(queueItemEntityFactory) {
  		this.queueItemEntityFactory = queueItemEntityFactory;
  	}
  
      get allowAnonymous() {
          return false;
      }
   
      get name() {
          return "GetHeldQueueSize";
      }
   
      get route() {
          return `/v1/${this.name}`;
      }
   
      get method() {
          return httpMethods.post;
      }
   
      async execute(requestBody) {
  		for (let key in requestBody) {
  			if (requestBody.hasOwnProperty(key)) {
  				requestBody[key.toLowerCase()] = requestBody[key];
  			}
  		}
  
  		const count = await this.queueItemEntityFactory.getHeldQueueSize(requestBody.data);
  		return Promise.resolve(count);
      }
  };