lib/impl/getSubmissions/processListResult.js
function restrictSubmissionForSummary(submission) {
  submission.formFields = _.filter(submission.formFields, function(formField) {
    return CONSTANTS.FIELD_TYPES_INCLUDED_IN_SUMMARY.indexOf(formField.fieldId.type) >= 0;
  });

  submission.formFields = _.first(submission.formFields, CONSTANTS.NUM_FIELDS_INCLUDED_IN_SUMMARY);

  return submission;
}
function restrictSubmissionForSummary(submission) {
  submission.formFields = _.filter(submission.formFields, function(formField) {
    return CONSTANTS.FIELD_TYPES_INCLUDED_IN_SUMMARY.indexOf(formField.fieldId.type) >= 0;
  });

  submission.formFields = _.first(submission.formFields, CONSTANTS.NUM_FIELDS_INCLUDED_IN_SUMMARY);

  return submission;
}
function restrictSubmissionForSummary ( submission ) { submission . formFields = _ . filter ( submission . formFields , function ( formField ) { return CONSTANTS . FIELD_TYPES_INCLUDED_IN_SUMMARY . indexOf ( formField . fieldId . type ) >= 0 ; } ) ; submission . formFields = _ . first ( submission . formFields , CONSTANTS . NUM_FIELDS_INCLUDED_IN_SUMMARY ) ; return submission ; }
Only Includes Fields In The Summary
@param submission
@returns {Object}
Only Includes Fields In The Summary