   taxCategoryId = 'TODO'
   customerGroupId = 'TODO'
 
-  @productType().then(@taxCategory()).then(@customerGroup()).then (pId)->
-    console.log pId
+  allIds = Q.all [@productType(), @taxCategory(), @customerGroup()]
+  allIds.spread (pId, taxCategoryId, customerGroupId)->
+    console.log productTypeId
+    console.log taxCategoryId
+    console.log customerGroupId
 
   for k,row of xmljs.row
     v =

{parseString} = require 'xml2js'
Config = require('../config').config
Rest = require('sphere-node-connect').Rest
OAuth2 = require('sphere-node-connect').OAuth2
Q = require('q')

# Define XmlImport object

  "<?xml?><root>#{raw}</root>"

exports.XmlImport.prototype.transform = (xml, callback)->
  that = this
  parseString xml, (err, result)->
    console.log('Error on parsing XML:' + err) if err
    that.mapProducts(result.root, callback)

exports.XmlImport.prototype.mapProducts = (xmljs, callback)->
  products = []
