meshblu-connector-skype
Version:
20 lines (16 loc) • 540 B
text/coffeescript
http = require 'http'
_ = require 'lodash'
class StartMeeting
constructor: ({}) ->
throw new Error 'missing required parameter: connector' unless ?
do: (job, callback) =>
{audioEnabled, videoEnabled} = _.get job, 'data', {}
.startMeeting {audioEnabled, videoEnabled}, (error, meeting) =>
return callback error if error?
callback null, {
metadata:
code: 200
status: http.STATUS_CODES[200]
data: meeting
}
module.exports = StartMeeting