import { ConfigParser } from '@fc/config' ; import { RabbitmqConfig } from '@fc/rabbitmq' ; const env = new ConfigParser ( process . env , 'Broker' ) ; export default { payloadEncoding : 'base64' , queue : env . string ( 'QUEUE' ) , queueOptions : { durable : true } , requestTimeout : parseInt ( process . env . REQUEST_TIMEOUT , 10 ) , urls : env . json ( 'URLS' ) , } as RabbitmqConfig ;