code: function EventJobs (opts) {
    debug('EventJobs constructor');
    this._publishedEvents = opts.publishedEvents || [];
    this._subscribedEvents = opts.subscribedEvents || [];
  
    this._name = opts.name;
    if (!this._name) {
      debug('error: name required for EventJobs');
      throw new Error('name required for EventJobs');
    }
  }
docs: Used to handle all event operations
  @param {Object} opts options
  @param opts.publishedEvents array of strings of events
  which are going to be published to
  @param opts.subscribedEvents array of strings of events
  which are going to be subscribed to
  @param opts.name name of service