main.js
function GetFilters () {
  let result = []
  log.debug(`Fetching filters in the existing ${motionDetectors.length} detector(s)...`)
  for (let i in motionDetectors) {
    result = result.concat(motionDetectors[i].filters)
  }
  log.debug(`Getting ${result.length} filters...`)
  return result
}
function GetFilters () {
  let result = []
  log.debug(`Fetching filters in the existing ${motionDetectors.length} detector(s)...`)
  for (let i in motionDetectors) {
    result = result.concat(motionDetectors[i].filters)
  }
  log.debug(`Getting ${result.length} filters...`)
  return result
}
function GetFilters ( ) { let result = [ ] log . debug ( ` ${ motionDetectors . length } ` ) for ( let i in motionDetectors ) { result = result . concat ( motionDetectors [ i ] . filters ) } log . debug ( ` ${ result . length } ` ) return result }
Gets all the existing Filters present in the current context.
@returns {object} an Array of Filter objects.
@public
Gets all the existing Filters present in the current context .