fbfb67db7b80ebd0b4896736f512f0884eaf5616
[motion2.git] / server / api / voiceQueue / voiceQueue.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 _0x7355=['voiceQueue:','save','remove','update','emit','removeListener','register'];(function(_0x2869fa,_0x160b29){var _0x4d5892=function(_0x565631){while(--_0x565631){_0x2869fa['push'](_0x2869fa['shift']());}};_0x4d5892(++_0x160b29);}(_0x7355,0xe1));var _0x5735=function(_0x23e185,_0x2e0d35){_0x23e185=_0x23e185-0x0;var _0x398e5b=_0x7355[_0x23e185];return _0x398e5b;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x5735('0x0'),_0x5735('0x1'),_0x5735('0x2')];function createListener(_0x292c04,_0x6b8803){return function(_0x19fe74){_0x6b8803[_0x5735('0x3')](_0x292c04,_0x19fe74);};}function removeListener(_0x59432e,_0x4978a7){return function(){VoiceQueueEvents[_0x5735('0x4')](_0x59432e,_0x4978a7);};}exports[_0x5735('0x5')]=function(_0x3ff405){for(var _0x3927bf=0x0,_0x3ddf36=events['length'];_0x3927bf<_0x3ddf36;_0x3927bf++){var _0x43c5a5=events[_0x3927bf];var _0x44d2b6=createListener(_0x5735('0x6')+_0x43c5a5,_0x3ff405);VoiceQueueEvents['on'](_0x43c5a5,_0x44d2b6);}};