'use strict';

module.exports =
{
	base_name		: 'sms',
	action_name		: 'sms/{id}',

	send: function() {
		return this.action(...arguments);
	},

	getResponses: function(/* dynamic */) {
		var params = this.parseBaseParams(arguments);
		return this.quiubas.network.get( [ this.action_name + '/responses', { 'id': params.id } ], params.params, params.success, params.error );
	},
};


'use strict';

module.exports =
{
	base_name		: 'sms',
	action_name		: 'sms/{id}',

	send: function() {
		return this.action.apply(this, arguments);
	},

	getResponses: function(/* dynamic */) {
		var params = this.parseBaseParams(arguments);
		return this.quiubas.network.get( [ this.action_name + '/responses', { 'id': params.id } ], params.params, params.success, params.error );
	},
};


Add Node <5 support by removing spread operator