Built motion from commit (unavailable).|2.5.16
[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 _0xe806=['removeListener','register','length','voiceQueue:','./voiceQueue.events','save','remove','update','emit'];(function(_0x5e9876,_0x16052d){var _0x576c48=function(_0x338c97){while(--_0x338c97){_0x5e9876['push'](_0x5e9876['shift']());}};_0x576c48(++_0x16052d);}(_0xe806,0x1bd));var _0x6e80=function(_0x5058da,_0x1f285c){_0x5058da=_0x5058da-0x0;var _0x34526e=_0xe806[_0x5058da];return _0x34526e;};'use strict';var VoiceQueueEvents=require(_0x6e80('0x0'));var events=[_0x6e80('0x1'),_0x6e80('0x2'),_0x6e80('0x3')];function createListener(_0x43335f,_0x419197){return function(_0x52d935){_0x419197[_0x6e80('0x4')](_0x43335f,_0x52d935);};}function removeListener(_0x108fe0,_0x2b1e09){return function(){VoiceQueueEvents[_0x6e80('0x5')](_0x108fe0,_0x2b1e09);};}exports[_0x6e80('0x6')]=function(_0x3cedad){for(var _0x30c382=0x0,_0x5588cd=events[_0x6e80('0x7')];_0x30c382<_0x5588cd;_0x30c382++){var _0x36d190=events[_0x30c382];var _0x4082c8=createListener(_0x6e80('0x8')+_0x36d190,_0x3cedad);VoiceQueueEvents['on'](_0x36d190,_0x4082c8);}};