2014-11-19 12:45:56 +00:00
|
|
|
_ = require('lodash')
|
|
|
|
DEVICE_NAMES = require('./device-names.json')
|
|
|
|
|
|
|
|
exports.getDisplayName = (device) ->
|
|
|
|
for key, value of DEVICE_NAMES
|
|
|
|
if _.indexOf(value, device) isnt -1
|
|
|
|
return key
|
2014-11-19 12:50:11 +00:00
|
|
|
return 'Unknown'
|