   '10.9.192.252': 'Juneau-1'
   '10.9.192.253': 'Juneau-2'
 
+# borrowed from
+# http://stackoverflow.com/questions/9796764/how-do-i-sort-an-array-with-coffeescript
 sortBy = (key, a, b, r) ->
   r = if r then 1 else -1
   return -1*r if a[key] > b[key]


modulename = 'fw'
fwdata_file = modulename + ".json"
displayfmt = '%-4s %-50s %-15s %s'
timefmt = 'YYYY-MM-DD HH:mm:ss ZZ'
svcQueueIntervalMs = 300 * 1000


    # safety check !!
    if entry.val.toLowerCase().match /(?:alaska|uaf)\.edu$/
      usermsg = "Blocking alaska.edu or uaf.edu is not allowed. #{safety_fail_note}"
      logmsg = "#{modulename}: Request by #{who} failed safety check: #{fullcmd}"
      robot.logger.info logmsg
      notifySubscribers "#{logmsg}\nReason: #{usermsg}"
      #msg.reply usermsg
      return

  else
    entry.type = 'url'
