function Amqp(saslPlainUri, autoSettleMessages) {
  var autoSettleMode = autoSettleMessages ? amqp10.Constants.receiverSettleMode.autoSettle : amqp10.Constants.receiverSettleMode.settleOnDisposition;
  this._amqp = new amqp10.Client(amqp10.Policy.merge({
    senderLink: {
      reattach: {
        retries: 0,
        forever: false
      }
    },
    receiverLink: {
      attach: {
        receiverSettleMode: autoSettleMode,
      }
    }
  }, amqp10.Policy.EventHub));
  
  this._connectPromise = null;
  this._receiverPromise = null;
  this._receiver = null;
  this._sender = null;
  
  this.uri = saslPlainUri;
}
/*Codes_SRS_NODE_COMMON_AMQP_16_001: [The Amqp constructor shall accept two parameters:
A SASL-Plain URI to be used to connect to the IoT Hub instance
A Boolean indicating whether the client should automatically settle messages:
	True if the messages should be settled automatically
	False if the caller intends to manually settle messages] */
[The Amqp constructor shall accept two parameters:
A SASL-Plain URI to be used to connect to the IoT Hub instance
A Boolean indicating whether the client should automatically settle messages:
True if the messages should be settled automatically
False if the caller intends to manually settle messages]
[ The Amqp constructor shall accept two parameters : A SASL - Plain URI to be used to connect to the IoT Hub instance A Boolean indicating whether the client should automatically settle messages : True if the messages should be settled automatically False if the caller intends to manually settle messages ]
function Amqp(saslPlainUri, autoSettleMessages) {
  var autoSettleMode = autoSettleMessages ? amqp10.Constants.receiverSettleMode.autoSettle : amqp10.Constants.receiverSettleMode.settleOnDisposition;
  this._amqp = new amqp10.Client(amqp10.Policy.merge({
    senderLink: {
      reattach: {
        retries: 0,
        forever: false
      }
    },
    receiverLink: {
      attach: {
        receiverSettleMode: autoSettleMode,
      }
    }
  }, amqp10.Policy.EventHub));
  this._connectPromise = null;
  this._receiverPromise = null;
  this._receiver = null;
  this._sender = null;
  this.uri = saslPlainUri;
}
function Amqp ( saslPlainUri , autoSettleMessages ) { var autoSettleMode = autoSettleMessages ? amqp10 . Constants . receiverSettleMode . autoSettle : amqp10 . Constants . receiverSettleMode . settleOnDisposition ; this . _amqp = new amqp10 . Client ( amqp10 . Policy . merge ( { senderLink : { reattach : { retries : 0 , forever : false } } , receiverLink : { attach : { receiverSettleMode : autoSettleMode , } } } , amqp10 . Policy . EventHub ) ) ; this . _connectPromise = null ; this . _receiverPromise = null ; this . _receiver = null ; this . _sender = null ; this . uri = saslPlainUri ; }
Codes_SRS_NODE_COMMON_AMQP_16_001: [The Amqp constructor shall accept two parameters:
A SASL-Plain URI to be used to connect to the IoT Hub instance
A Boolean indicating whether the client should automatically settle messages:
True if the messages should be settled automatically
False if the caller intends to manually settle messages]
Codes_SRS_NODE_COMMON_AMQP_16_001 : [ The Amqp constructor shall accept two parameters : A SASL - Plain URI to be used to connect to the IoT Hub instance A Boolean indicating whether the client should automatically settle messages : True if the messages should be settled automatically False if the caller intends to manually settle messages ]