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 _0x1698=['length','voiceExtension:','update','emit','removeListener'];(function(_0x150d5e,_0x5a86fb){var _0x23b9a1=function(_0x3e6cb2){while(--_0x3e6cb2){_0x150d5e['push'](_0x150d5e['shift']());}};_0x23b9a1(++_0x5a86fb);}(_0x1698,0x1c4));var _0x8169=function(_0x4fa291,_0x56e289){_0x4fa291=_0x4fa291-0x0;var _0x506d9b=_0x1698[_0x4fa291];return _0x506d9b;};'use strict';var VoiceExtensionEvents=require('./voiceExtension.events');var events=['save','remove',_0x8169('0x0')];function createListener(_0x3f509f,_0x5aaed7){return function(_0x58b69e){_0x5aaed7[_0x8169('0x1')](_0x3f509f,_0x58b69e);};}function removeListener(_0x1a6bcc,_0x4aed65){return function(){VoiceExtensionEvents[_0x8169('0x2')](_0x1a6bcc,_0x4aed65);};}exports['register']=function(_0x443782){for(var _0x1efbbc=0x0,_0x1c7e16=events[_0x8169('0x3')];_0x1efbbc<_0x1c7e16;_0x1efbbc++){var _0x42d312=events[_0x1efbbc];var _0x14ef1c=createListener(_0x8169('0x4')+_0x42d312,_0x443782);VoiceExtensionEvents['on'](_0x42d312,_0x14ef1c);}};