Built motion from commit e6806ed6.|2.6.0
[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 _0x84f6=['register','length','voiceQueue:','save','update','emit','removeListener'];(function(_0x4b7895,_0x3c4f5d){var _0x264180=function(_0xe0e861){while(--_0xe0e861){_0x4b7895['push'](_0x4b7895['shift']());}};_0x264180(++_0x3c4f5d);}(_0x84f6,0x8f));var _0x684f=function(_0x5c4585,_0x3d0eab){_0x5c4585=_0x5c4585-0x0;var _0x21dede=_0x84f6[_0x5c4585];return _0x21dede;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x684f('0x0'),'remove',_0x684f('0x1')];function createListener(_0x7a676a,_0xb67998){return function(_0x20e6f5){_0xb67998[_0x684f('0x2')](_0x7a676a,_0x20e6f5);};}function removeListener(_0x4cf265,_0x4640d2){return function(){VoiceQueueEvents[_0x684f('0x3')](_0x4cf265,_0x4640d2);};}exports[_0x684f('0x4')]=function(_0x526fc0){for(var _0x5928eb=0x0,_0x5a1c94=events[_0x684f('0x5')];_0x5928eb<_0x5a1c94;_0x5928eb++){var _0x165aa5=events[_0x5928eb];var _0x6ed7aa=createListener(_0x684f('0x6')+_0x165aa5,_0x526fc0);VoiceQueueEvents['on'](_0x165aa5,_0x6ed7aa);}};