Built motion from commit (unavailable).|2.5.13
[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 _0x7e6a=['remove','removeListener','register','length','./voiceQueue.events','save'];(function(_0x3817a9,_0x29e215){var _0x443f30=function(_0x13940b){while(--_0x13940b){_0x3817a9['push'](_0x3817a9['shift']());}};_0x443f30(++_0x29e215);}(_0x7e6a,0xac));var _0xa7e6=function(_0xef43d2,_0x2d59f6){_0xef43d2=_0xef43d2-0x0;var _0x4fd525=_0x7e6a[_0xef43d2];return _0x4fd525;};'use strict';var VoiceQueueEvents=require(_0xa7e6('0x0'));var events=[_0xa7e6('0x1'),_0xa7e6('0x2'),'update'];function createListener(_0x32ed33,_0x158a99){return function(_0x1e0df2){_0x158a99['emit'](_0x32ed33,_0x1e0df2);};}function removeListener(_0x29d3d4,_0x5101ec){return function(){VoiceQueueEvents[_0xa7e6('0x3')](_0x29d3d4,_0x5101ec);};}exports[_0xa7e6('0x4')]=function(_0x390f56){for(var _0x4115c9=0x0,_0x5562de=events[_0xa7e6('0x5')];_0x4115c9<_0x5562de;_0x4115c9++){var _0x218d2b=events[_0x4115c9];var _0x4ea76d=createListener('voiceQueue:'+_0x218d2b,_0x390f56);VoiceQueueEvents['on'](_0x218d2b,_0x4ea76d);}};