Built motion from commit (unavailable).|2.5.1
[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 _0xcbf9=['./voiceExtension.events','save','emit','removeListener','register','length','voiceExtension:'];(function(_0x56b838,_0x1c6389){var _0x227a70=function(_0x188d88){while(--_0x188d88){_0x56b838['push'](_0x56b838['shift']());}};_0x227a70(++_0x1c6389);}(_0xcbf9,0x196));var _0x9cbf=function(_0x34a215,_0x2085b7){_0x34a215=_0x34a215-0x0;var _0x2cf955=_0xcbf9[_0x34a215];return _0x2cf955;};'use strict';var VoiceExtensionEvents=require(_0x9cbf('0x0'));var events=[_0x9cbf('0x1'),'remove','update'];function createListener(_0x3c3328,_0x21e7dd){return function(_0x5bb174){_0x21e7dd[_0x9cbf('0x2')](_0x3c3328,_0x5bb174);};}function removeListener(_0x10be26,_0x34c2be){return function(){VoiceExtensionEvents[_0x9cbf('0x3')](_0x10be26,_0x34c2be);};}exports[_0x9cbf('0x4')]=function(_0x3ea362){for(var _0x3e563c=0x0,_0xaf68f7=events[_0x9cbf('0x5')];_0x3e563c<_0xaf68f7;_0x3e563c++){var _0x4b26fe=events[_0x3e563c];var _0x96b8bf=createListener(_0x9cbf('0x6')+_0x4b26fe,_0x3ea362);VoiceExtensionEvents['on'](_0x4b26fe,_0x96b8bf);}};