Built motion from commit (unavailable).|2.5.21
[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 _0xf966=['register','length','voiceQueue:','./voiceQueue.events','save','remove','update','emit'];(function(_0x2f5a22,_0x5e9f03){var _0x326b70=function(_0x1b7bf9){while(--_0x1b7bf9){_0x2f5a22['push'](_0x2f5a22['shift']());}};_0x326b70(++_0x5e9f03);}(_0xf966,0x13b));var _0x6f96=function(_0x2d2b69,_0x1d421e){_0x2d2b69=_0x2d2b69-0x0;var _0x6146a2=_0xf966[_0x2d2b69];return _0x6146a2;};'use strict';var VoiceQueueEvents=require(_0x6f96('0x0'));var events=[_0x6f96('0x1'),_0x6f96('0x2'),_0x6f96('0x3')];function createListener(_0x289888,_0x50eaec){return function(_0x4e12c6){_0x50eaec[_0x6f96('0x4')](_0x289888,_0x4e12c6);};}function removeListener(_0x37b418,_0x3c505c){return function(){VoiceQueueEvents['removeListener'](_0x37b418,_0x3c505c);};}exports[_0x6f96('0x5')]=function(_0x983699){for(var _0x3c56d6=0x0,_0x1eed62=events[_0x6f96('0x6')];_0x3c56d6<_0x1eed62;_0x3c56d6++){var _0x83b6cd=events[_0x3c56d6];var _0x2a959e=createListener(_0x6f96('0x7')+_0x83b6cd,_0x983699);VoiceQueueEvents['on'](_0x83b6cd,_0x2a959e);}};