lib/iod.js
function(asyncRes, callback) {
			var jobId = asyncRes.jobID

			if (!jobId) return callback(null, asyncRes)
			else if (IODOpts.getResults) {
				IOD.result({
					jobId: jobId,
					majorVersion: IODOpts.majorVersion,
					retries: 3
				}, callback)
			}
			else {
				callback(null, asyncRes)
				pollUntilDone(jobId)
			}

		}
function(asyncRes, callback) {
			var jobId = asyncRes.jobID

			if (!jobId) return callback(null, asyncRes)
			else if (IODOpts.getResults) {
				IOD.result({
					jobId: jobId,
					majorVersion: IODOpts.majorVersion,
					retries: 3
				}, callback)
			}
			else {
				callback(null, asyncRes)
				pollUntilDone(jobId)
			}

		}
function ( asyncRes , callback ) { var jobId = asyncRes . jobID if ( ! jobId ) return callback ( null , asyncRes ) else if ( IODOpts . getResults ) { IOD . result ( { jobId : jobId , majorVersion : IODOpts . majorVersion , retries : 3 } , callback ) } else { callback ( null , asyncRes ) pollUntilDone ( jobId ) } }
If getResults is true and jobId is found, send IOD result request.

@param {Object} asyncRes - Async request response
@param {Function} callback - Callback(err, IOD response))
If getResults is true and jobId is found send IOD result request .