22abfd0496ebe1fc6f907d734d8edffa380b911e
[motion2.git] / server / api / voiceExtension / voiceExtension.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x6fe9=['save','remove','update','emit','removeListener','register','length','./voiceExtension.events'];(function(_0x4816bd,_0xc5b815){var _0x3328c9=function(_0x2c9860){while(--_0x2c9860){_0x4816bd['push'](_0x4816bd['shift']());}};_0x3328c9(++_0xc5b815);}(_0x6fe9,0xe7));var _0x96fe=function(_0x3511d3,_0x4107ae){_0x3511d3=_0x3511d3-0x0;var _0x5d6321=_0x6fe9[_0x3511d3];return _0x5d6321;};'use strict';var VoiceExtensionEvents=require(_0x96fe('0x0'));var events=[_0x96fe('0x1'),_0x96fe('0x2'),_0x96fe('0x3')];function createListener(_0x128a9a,_0x3406ed){return function(_0x58b3a7){_0x3406ed[_0x96fe('0x4')](_0x128a9a,_0x58b3a7);};}function removeListener(_0x4b50ac,_0x2a3076){return function(){VoiceExtensionEvents[_0x96fe('0x5')](_0x4b50ac,_0x2a3076);};}exports[_0x96fe('0x6')]=function(_0x43c14d){for(var _0x28251f=0x0,_0x869154=events[_0x96fe('0x7')];_0x28251f<_0x869154;_0x28251f++){var _0x25e0fb=events[_0x28251f];var _0x643b43=createListener('voiceExtension:'+_0x25e0fb,_0x43c14d);VoiceExtensionEvents['on'](_0x25e0fb,_0x643b43);}};