code: function createInvokeQueue(modules) {
  
  	return modules
  		.map((mod) => mod._invokeQueue)
  		.reduce((acc, res) => acc.concat(res), []);
  
  }
docs: Runs recursively through modules and their dependency-modules
  and creates an array with args to process later by ProvideService-instance ($provide).
  @param  {Object} module Module instance
  @return {Array}        Array of objects containing register args.