function resolveValues(obj) {
  var ret = {};
  return Promise.all(Object.keys(obj).map(function (k) {
    var val = (0, _promisify["default"])(obj[k]);
    return val.then(function (v) {
      return ret[k] = v;
    });
  })).then(function () {
    return ret;
  });
}
resolves all values if they are promises
returns equal object with resolved