UNPKG

uhppoted

Version:

NodeJS module wrapper for the interface to UHPPOTE TCP/IP Wiegand Access Controllers

78 lines (70 loc) 2.67 kB
const dict = new Map([ ['unknown', 'unknown'], // event type ['eventNone', 'none'], ['eventSwipe', 'card swipe'], ['eventDoor', 'door'], ['eventAlarm', 'alarm'], ['eventMissing', '<missing>'], ['eventOverwritten', '<overwritten>'], // event direction ['directionIn', 'in'], ['directionOut', 'out'], // event reason ['swipe', 'swipe'], ['swipeOpen', 'swipe open'], ['swipeClose', 'swipe close'], ['swipeDenied', 'swipe:denied (system)'], ['noAccess', 'no access rights'], ['incorrectPassword', 'incorrect password'], ['antiPassback', 'anti-passback'], ['moreCards', 'more cards'], ['firstCardOpen', 'first card open'], ['doorNormallyClosed', 'door is normally closed'], ['interlock', 'interlock'], ['notInAllowedTimePeriod', 'not in allowed time period'], ['invalidTimezone', 'invalid timezone'], ['accessDenied', 'access denied'], ['pushbuttonOk', 'push button ok'], ['doorOpened', 'door opened'], ['doorClosed', 'door closed'], ['supervisorDoorOpen', 'door opened (supervisor password)'], ['controllerPowerOn', 'controller power on'], ['controllerReset', 'controller reset'], ['pushbuttonDoorLocked', 'pushbutton invalid (door locked)'], ['pushbuttonOffline', 'pushbutton invalid (offline)'], ['pushbuttonInterlock', 'pushbutton invalid (interlock)'], ['pushbuttonThreat', 'pushbutton invalid (threat)'], ['doorOpenTooLong', 'door open too long'], ['forcedOpen', 'forced open'], ['fire', 'fire'], ['forcedClosed', 'forced closed'], ['theftPrevention', 'theft prevention'], ['zone24x7', '24x7 zone'], ['emergency', 'emergency'], ['remoteOpenDoor', 'remote open door'], ['usbOpenDoor', 'remote open door (USB reader)'], ['reserved', '(reserved)'], // doors ['normallyOpen', 'normally open'], ['normallyClosed', 'normally closed'], ['controlled', 'controlled'], // errors ['invalidDeviceID', 'invalid controller ID'], ['invalidCardNumber', 'invalid card number'], ['invalidCardPIN', 'invalid card keypad PIN'], ['invalidCardIndex', 'invalid card index'], ['invalidDoor', 'invalid door'], ['invalidEventIndex', 'invalid event index'], ['invalidFunctionCode', 'invalid protocol function code'], ['invalidDoorControl', 'invalid door control'], ['invalidPermission', 'invalid time profile for door'], ['invalidTaskType', 'invalid task type'], ['noReply', 'no reply'], ['noBroadcastReply', 'no reply to broadcasted request'], ['invalidBroadcastReply', 'invalid reply to broadcasted request'], ['timeout', 'timeout'], ['eventMissing', 'event does not exist'], ['eventOverwritten', 'event overwritten'] ]) exports = module.exports = dict