UNPKG

fcc-core

Version:

Fusion communication center.

30 lines (29 loc) 752 B
import BaseException from '../../../errors/base-exception' export default async function (xw, params) { await xw.validate(params, { MEMBERS: [ { type: 'array', required: true } ], MEETING_ID: [ { type: 'string', required: true } ], MEETING_SNO: [ { type: 'string', required: true } ], ONOFF: [ { type: 'string', required: true } ] }) return new Promise((resolve, reject) => { xw.ajaxRequest([{ service: params.ONOFF === '1' ? 'E2601106' : 'E2601105', MEETING_ID: params.MEETING_ID, MEETING_SNO: params.MEETING_SNO, MEMBERS: params.MEMBERS }]).then(data => { if (data.code === '0') { resolve() } }) }) }