wiseService/wiseService.js
/**
   * Activate a section of a source. Must be called if you want wise to query the source.
   * A section is an instance of a source, some sources can have multiple sections.
   *
   * @param {string} section - The section name
   * @param {WISESource} src - A WISESource object
   * @param {string|Array} types - An array of the types that this source supports
   */
Activate a section of a source. Must be called if you want wise to query the source.
A section is an instance of a source, some sources can have multiple sections.

@param {string} section - The section name
@param {WISESource} src - A WISESource object
@param {string|Array} types - An array of the types that this source supports
Activate a section of a source . Must be called if you want wise to query the source . A section is an instance of a source some sources can have multiple sections . @param { string } section - The section name @param { WISESource } src - A WISESource object @param { string|Array } types - An array of the types that this source supports
addSource (section, src, types) {
    if (section === undefined || src === undefined || types === undefined) {
      console.log(`ERROR - bad call to addSource for ${section}`);
      return;
    }
    internals.sources[section] = src;
    internals.sources[section].types = types;
    for (let i = 0; i < types.length; i++) {
      addType(types[i], src);
    }
  }
addSource ( section , src , types ) { if ( section === undefined || src === undefined || types === undefined ) { console . log ( ` ${ section } ` ) ; return ; } internals . sources [ section ] = src ; internals . sources [ section ] . types = types ; for ( let i = 0 ; i < types . length ; i ++ ) { addType ( types [ i ] , src ) ; } }
Activate a section of a source.
Activate a section of a source .