'use strict';

var Dialog = require("../dialog");

module.exports = function(apiToken, botId) {
  this.apiToken = apiToken;
  this.botId    = botId;

  this.outgoing = function() {
    // ...

    return Dialog.track(apiToken, botId, payload);
  },

  this.incoming = function() {
    // ...

    return Dialog.track(apiToken, botId, payload);
  }
};

'use strict';

var Dialog = require("../dialog");

module.exports = function(apiToken, botId) {
  this.apiToken = apiToken;
  this.botId    = botId;

  // @param {Object} response
  this.outgoing = function(payload) {
    return Dialog.track(apiToken, botId, payload);
  },

  // @param {Object} payload
  this.incoming = function(payload) {
    return Dialog.track(apiToken, botId, payload);
  }
};

Fix function arity