support for Coin ATM Radar

This commit is contained in:
Josh Harvey 2018-05-11 17:41:42 +03:00
parent 2cdc8b0d13
commit 6c3099921f
13 changed files with 262 additions and 8 deletions

View file

@ -5,7 +5,8 @@ module.exports = {
cryptoScoped,
machineScoped,
scoped,
scopedValue
scopedValue,
all
}
function matchesValue (crypto, machine, instance) {
@ -60,3 +61,7 @@ function cryptoScoped (crypto, config) {
function scoped (crypto, machine, config) {
return generalScoped(crypto, machine, config)
}
function all (code, config) {
return _.uniq(_.map('fieldValue.value', _.filter(i => i.fieldLocator.code === code, config)))
}