   '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]


    # safety check !!
    if entry.val.match /^(?:137\.229\.|199\.165\.)/
      usermsg = "Blocking CIDRs begining with 137.229. or 199.165. not allowed. "+
        " If this is time critical ask a human for help; otherwise open a ticket."
      notifySubscribers "Request by #{who} failed safety check: #{fullcmd}\nReason: #{usermsg}"
      return msg.reply usermsg

  else if extra = l_val.match /^([a-zA-Z][a-zA-Z0-9\.]+)$/
    entry.type = 'domain'


modulename = 'fw'
fwdata_file = modulename + ".json"
safety_fail_note = 'If this is time critical ask a human; otherwise please open a ticket.'
displayfmt = '%-4s %-50s %-15s %s'
timefmt = 'YYYY-MM-DD HH:mm:ss ZZ'
svcQueueIntervalMs = 300 * 1000
