/*This file is applicaton specific - this one should be used for inventory alerts*/


//  fields will be added to CFE_Mapping and then they will be used for colukmns and filters
var CFE_Mapping_addFields = {};
CFE_Mapping_addFields['Host name'] =  {
               keyname          : 'hostname',
               attribute_name   : 'Host name',
               label            : 'Host name',
               type             : 'string',
               category         : 'Network',
               readonly         : '1',
               source_table     : 'hosts'
   };




var inventoryRuleDefaultColumns = [];
// preselect hostname as column. We need this to make sure that logic in inventory directive works properly
inventoryRuleDefaultColumns = CFE_Mapping_addFields;

// fields will be REMOVED from the CFE_mapping
// reason why we remove hosts - because we should use hostname from host table and do not rely on variable.
// because hostname depends on host identifier setting, and we cannot hardcode it to fqhost
var CFE_Mapping_removeFields = ['attribute_name=Host name'];



// fields will be added to filters only

var CFE_Mapping_addToFilters = {};

window.CFE_Mapping_addFields = CFE_Mapping_addFields;
window.CFE_Mapping_removeFields = CFE_Mapping_removeFields;
window.CFE_Mapping_addToFilters = CFE_Mapping_addToFilters;
window.inventoryRuleDefaultColumns = inventoryRuleDefaultColumns;
