function parseUrlEncoded (body, indent, trim) {
  var bodySnippet = 'request.bodyFields = {',
    enabledBodyList = _.reject(body, 'disabled'),
    bodyDataMap;
  if (!_.isEmpty(enabledBodyList)) {
    bodyDataMap = _.map(enabledBodyList, function (value) {
      return `${indent}'${sanitize(value.key, trim)}': '${sanitize(value.value, trim)}'`;
    });
    bodySnippet += '\n' + bodyDataMap.join(',\n') + '\n';
  }
  bodySnippet += '};';
  return bodySnippet;
}
/**
 * Parses Url encoded data
 *
 * @param {Object} body body data
 * @param {String} indent indentation required for code snippet
 * @param {Boolean} trim indicates whether to trim string or not
 */
Parses Url encoded data
@param {Object} body body data
@param {String} indent indentation required for code snippet
@param {Boolean} trim indicates whether to trim string or not
Parses Url encoded data @param { Object } body body data @param { String } indent indentation required for code snippet @param { Boolean } trim indicates whether to trim string or not
function parseUrlEncoded (body, indent, trim) {
  var bodySnippet = 'request.bodyFields = {',
    enabledBodyList = _.reject(body, 'disabled'),
    bodyDataMap;
  if (!_.isEmpty(enabledBodyList)) {
    bodyDataMap = _.map(enabledBodyList, function (value) {
      return `${indent}'${sanitize(value.key, trim)}': '${sanitize(value.value, trim)}'`;
    });
    bodySnippet += '\n' + bodyDataMap.join(',\n') + '\n';
  }
  bodySnippet += '};';
  return bodySnippet;
}
function parseUrlEncoded ( body , indent , trim ) { var bodySnippet = 'request.bodyFields = {' , enabledBodyList = _ . reject ( body , 'disabled' ) , bodyDataMap ; if ( ! _ . isEmpty ( enabledBodyList ) ) { bodyDataMap = _ . map ( enabledBodyList , function ( value ) { return ` ${ indent } ${ sanitize ( value . key , trim ) } ${ sanitize ( value . value , trim ) } ` ; } ) ; bodySnippet += '\n' + bodyDataMap . join ( ',\n' ) + '\n' ; } bodySnippet += '};' ; return bodySnippet ; }
Parses Url encoded data
 @param {Object} body body data
 @param {String} indent indentation required for code snippet
 @param {Boolean} trim indicates whether to trim string or not
Parses Url encoded data @param { Object } body body data @param { String } indent indentation required for code snippet @param { Boolean } trim indicates whether to trim string or not