1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0xab46=['register','update','emit','removeListener'];(function(_0x4fdcc0,_0x560a01){var _0xc0ce94=function(_0x36ea12){while(--_0x36ea12){_0x4fdcc0['push'](_0x4fdcc0['shift']());}};_0xc0ce94(++_0x560a01);}(_0xab46,0x181));var _0x6ab4=function(_0x348e46,_0x5187dc){_0x348e46=_0x348e46-0x0;var _0x58b74f=_0xab46[_0x348e46];return _0x58b74f;};'use strict';var VoiceExtensionEvents=require('./voiceExtension.events');var events=['save','remove',_0x6ab4('0x0')];function createListener(_0x532b90,_0x436128){return function(_0x557e79){_0x436128[_0x6ab4('0x1')](_0x532b90,_0x557e79);};}function removeListener(_0x343404,_0x5db52e){return function(){VoiceExtensionEvents[_0x6ab4('0x2')](_0x343404,_0x5db52e);};}exports[_0x6ab4('0x3')]=function(_0x14f36d){for(var _0xed953b=0x0,_0x1d99c9=events['length'];_0xed953b<_0x1d99c9;_0xed953b++){var _0x1501c7=events[_0xed953b];var _0x4c3571=createListener('voiceExtension:'+_0x1501c7,_0x14f36d);VoiceExtensionEvents['on'](_0x1501c7,_0x4c3571);}};