code: function getPublishOptions(message){
      let publishOptions = {
        type: message.type || '',
        contentType: message.contentType,
        contentEncoding: message.contentEncoding,
        correlationId: message.correlationId || '',
        replyTo: message.replyTo || '',
        messageId: message.messageId || message.id || '',
        timestamp: message.timestamp,
        appId: message.appId || '',
        headers: message.headers || {},
        expiration: message.expiresAfter || undefined,
        persistent: message.persistent !== false
      };
      if (publishOptions.replyTo === 'amq.rabbitmq.reply-to') {
        publishOptions.headers['direct-reply-to'] = 'true';
      }
      return publishOptions;
    }
docs: /* eslint-disable complexity 
  Get publish options for the message to send to amqplib's publish call
  @private