Built motion from commit fe909640.|2.6.8
[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 _0xc723=['emit','removeListener','register','length','voiceQueue:','./voiceQueue.events','save','update'];(function(_0x3207aa,_0xe86a72){var _0x51758f=function(_0x9ff790){while(--_0x9ff790){_0x3207aa['push'](_0x3207aa['shift']());}};_0x51758f(++_0xe86a72);}(_0xc723,0x16d));var _0x3c72=function(_0x149055,_0x42bd96){_0x149055=_0x149055-0x0;var _0x2862bf=_0xc723[_0x149055];return _0x2862bf;};'use strict';var VoiceQueueEvents=require(_0x3c72('0x0'));var events=[_0x3c72('0x1'),'remove',_0x3c72('0x2')];function createListener(_0x166b4d,_0x2a95c7){return function(_0x255c89){_0x2a95c7[_0x3c72('0x3')](_0x166b4d,_0x255c89);};}function removeListener(_0x220e4b,_0x4424fd){return function(){VoiceQueueEvents[_0x3c72('0x4')](_0x220e4b,_0x4424fd);};}exports[_0x3c72('0x5')]=function(_0x1a54fe){for(var _0x2c9352=0x0,_0x3972fb=events[_0x3c72('0x6')];_0x2c9352<_0x3972fb;_0x2c9352++){var _0x4bbf2c=events[_0x2c9352];var _0x50546d=createListener(_0x3c72('0x7')+_0x4bbf2c,_0x1a54fe);VoiceQueueEvents['on'](_0x4bbf2c,_0x50546d);}};