Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/*jshint -W083 */
import JsSIP from 'jssip';
JsSIP.debug.enable('JsSIP:*');
let useragent /* jssip instance */;
let runningConfiguration /* jssip configuration */;
let makecall /* callback for registered jssip */;
let cachedPCConfig /* cached peer connection config */;
module.exports = controller => {
controller.registerTrigger('findDatabase::instantSearch', 'softphone', (args, callback) => {
callback();
let [text, modal] = args;
if (!/phone|limpar|configuração/i.test(text)) {
return;
}