text: "use strict";
  /**
   * Module dependencies.
   */
  const soap = require('soap');
  /**
   * SOAP NTLM authentication plugin.
   */
  
  /**
   * Configures SOAP authentication.
   *
   * @param {Object} config
   * @param {Object} options
   * @return {Object}
   */
  const request = async (config, options) => {
      // Authorize request.
      try {
          options.setSecurity(new soap.NTLMSecurity(config.authConfig.username, config.authConfig.password));
      } catch (err) {
          console.log(err.message);
      }
      return options;
  };
  
  /**
   * Expose plugin methods.
   */
  module.exports = {
      name: 'soap-ntlm',
      request
  };
  