3380e8f41211481040273b5bc4db6754ed746b64
[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 _0x0473=['length','voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener','register'];(function(_0xfe7873,_0x456a2c){var _0x5e0e33=function(_0x326c53){while(--_0x326c53){_0xfe7873['push'](_0xfe7873['shift']());}};_0x5e0e33(++_0x456a2c);}(_0x0473,0x77));var _0x3047=function(_0x3c1644,_0x133737){_0x3c1644=_0x3c1644-0x0;var _0x2d5645=_0x0473[_0x3c1644];return _0x2d5645;};'use strict';var VoiceQueueEvents=require(_0x3047('0x0'));var events=[_0x3047('0x1'),_0x3047('0x2'),_0x3047('0x3')];function createListener(_0x36ad38,_0x60194d){return function(_0x3755e3){_0x60194d[_0x3047('0x4')](_0x36ad38,_0x3755e3);};}function removeListener(_0x19b232,_0x2ba3c9){return function(){VoiceQueueEvents[_0x3047('0x5')](_0x19b232,_0x2ba3c9);};}exports[_0x3047('0x6')]=function(_0x33da4d){for(var _0x2185ec=0x0,_0x30b902=events[_0x3047('0x7')];_0x2185ec<_0x30b902;_0x2185ec++){var _0x514937=events[_0x2185ec];var _0x524e51=createListener(_0x3047('0x8')+_0x514937,_0x33da4d);VoiceQueueEvents['on'](_0x514937,_0x524e51);}};