lib/constrain.js
function(res) {
    var author = _.get(res, 'envelope.user.id') || 'bot'
    return _.zipObject(cons.mandatoryFields, ['hash', 'test', author, cons.now()])
  }
function(res) {
    var author = _.get(res, 'envelope.user.id') || 'bot'
    return _.zipObject(cons.mandatoryFields, ['hash', 'test', author, cons.now()])
  }
function ( res ) { var author = _ . get ( res , 'envelope.user.id' ) || 'bot' return _ . zipObject ( cons . mandatoryFields , [ 'hash' , 'test' , author , cons . now ( ) ] ) }
Generate an object of mandatoryFields with default values for extension.
@private
@param  {JSON} [res] For the robot to extract user id.
@return {JSON} mandatoryFieldsObject with default values.
Generate an object of mandatoryFields with default values for extension .