text: var amqp = require('amqplib/callback_api');
  
  var args = process.argv.slice(2);
  
  if (args.length == 0) {
    console.log("Usage: rpc_client.js num");
    process.exit(1);
  }
  
  amqp.connect('amqp://orion-rabbit', function(error0, connection) {
    if (error0) {
      throw error0;
    }
    connection.createChannel(function(error1, channel) {
      if (error1) {
        throw error1;
      }
      channel.assertQueue('', {
        exclusive: true
      }, function(error2, q) {
        if (error2) {
          throw error2;
        }
        var correlationId = generateUuid();
        var num = parseInt(args[0]);
  
        console.log(' [x] Requesting fib(%d)', num);
  
        channel.consume(q.queue, function(msg) {
          if (msg.properties.correlationId == correlationId) {
            console.log(' [.] Got %s', msg.content.toString());
            setTimeout(function() {
              connection.close();
              process.exit(0)
            }, 500);
          }
        }, {
          noAck: true
        });
        let date='02-22-22'; let time='6AM'; 
        let data = {date, time};
        channel.sendToQueue('rpc_queue',
          // Buffer.from(num.toString()),{
            
            Buffer.from( data.toString()),{
            correlationId: correlationId,
            replyTo: q.queue });
      });
    });
  });
  
  function generateUuid() {
    return Math.random().toString() +
           Math.random().toString() +
           Math.random().toString();
  }
  