Built motion from commit (unavailable).|2.5.11
[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 _0x36ab=['remove','update','emit','removeListener','register','length','voiceQueue:','save'];(function(_0x315027,_0x49bc90){var _0x532db9=function(_0x3a5919){while(--_0x3a5919){_0x315027['push'](_0x315027['shift']());}};_0x532db9(++_0x49bc90);}(_0x36ab,0x157));var _0xb36a=function(_0x3c8e9a,_0x384306){_0x3c8e9a=_0x3c8e9a-0x0;var _0x2d4c57=_0x36ab[_0x3c8e9a];return _0x2d4c57;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0xb36a('0x0'),_0xb36a('0x1'),_0xb36a('0x2')];function createListener(_0x59a847,_0x57b5d2){return function(_0x217bd6){_0x57b5d2[_0xb36a('0x3')](_0x59a847,_0x217bd6);};}function removeListener(_0x41b8c4,_0x28e4a2){return function(){VoiceQueueEvents[_0xb36a('0x4')](_0x41b8c4,_0x28e4a2);};}exports[_0xb36a('0x5')]=function(_0x94a38a){for(var _0x41356f=0x0,_0x232a47=events[_0xb36a('0x6')];_0x41356f<_0x232a47;_0x41356f++){var _0x54a5f8=events[_0x41356f];var _0x3b5c61=createListener(_0xb36a('0x7')+_0x54a5f8,_0x94a38a);VoiceQueueEvents['on'](_0x54a5f8,_0x3b5c61);}};