// Faraday Penetration Test IDE
// Copyright (C) 2013  Infobyte LLC (http://www.infobytesec.com/)
// See the file 'doc/LICENSE' for the license information
function(doc) {
  if(doc.type=="Interface"){
    if(doc.parent != 'null') {
      var hid =  doc._id.substring(0, doc._id.indexOf('.'));
      emit(hid, 1); 
    }
  }
}
