Built motion from commit d1eab355.|2.6.28
[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 _0x5748=['save','remove','update','emit','removeListener','register','length','voiceQueue:','./voiceQueue.events'];(function(_0x567c78,_0x27b489){var _0x3b7290=function(_0x27ec31){while(--_0x27ec31){_0x567c78['push'](_0x567c78['shift']());}};_0x3b7290(++_0x27b489);}(_0x5748,0x1d3));var _0x8574=function(_0x2d8102,_0x2d78eb){_0x2d8102=_0x2d8102-0x0;var _0x2f6907=_0x5748[_0x2d8102];return _0x2f6907;};'use strict';var VoiceQueueEvents=require(_0x8574('0x0'));var events=[_0x8574('0x1'),_0x8574('0x2'),_0x8574('0x3')];function createListener(_0x56a516,_0xbbaeb2){return function(_0x14ced1){_0xbbaeb2[_0x8574('0x4')](_0x56a516,_0x14ced1);};}function removeListener(_0x3c3d5f,_0x1769e6){return function(){VoiceQueueEvents[_0x8574('0x5')](_0x3c3d5f,_0x1769e6);};}exports[_0x8574('0x6')]=function(_0x48690a){for(var _0x1d0ddd=0x0,_0x2855ed=events[_0x8574('0x7')];_0x1d0ddd<_0x2855ed;_0x1d0ddd++){var _0x38c7d5=events[_0x1d0ddd];var _0x50dea8=createListener(_0x8574('0x8')+_0x38c7d5,_0x48690a);VoiceQueueEvents['on'](_0x38c7d5,_0x50dea8);}};