UNPKG

fcc-core

Version:

Fusion communication center.

11 lines (10 loc) 274 B
export default async function (xw, params) { return new Promise((resolve, reject) => { const CALLOUT_WAY = xw.getSysParam('CALLOUT_WAY') const fsWays = ['1', '2'] if (fsWays.includes(CALLOUT_WAY)) { xw.ucc.answer() resolve() } }) }