     super(options)
 
   elasticio: (msg, cfg, cb, snapshot) ->
+    console.log 'elasticio'
     if msg.attachments
+      console.log 'elasticio - attachments'
       for attachment of msg.attachments
         continue if not attachment.match /xml$/i
         content = msg.attachments[attachment].content

          @returnResult false, msg, callback

  mapStock: (xmljs, channelId) ->
    stocks = []
    for k,row of xmljs.row
      sku = xmlHelpers.xmlVal row, 'code'

      if expectedQuantity
        d = @createInventoryEntry(sku, expectedQuantity, xmlHelpers.xmlVal(row, 'deliverydate'), channelId)
        stocks.push d
    console.log 'mapStock: %j', stocks
    stocks

module.exports = StockXmlImport