Built motion from commit 092f8824.|2.5.49
[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 _0x3053=['save','remove','update','removeListener','register','voiceQueue:','./voiceQueue.events'];(function(_0x485f53,_0x104081){var _0x480f1e=function(_0x2d61d2){while(--_0x2d61d2){_0x485f53['push'](_0x485f53['shift']());}};_0x480f1e(++_0x104081);}(_0x3053,0xae));var _0x3305=function(_0x45ce08,_0x59dcc7){_0x45ce08=_0x45ce08-0x0;var _0x23dff2=_0x3053[_0x45ce08];return _0x23dff2;};'use strict';var VoiceQueueEvents=require(_0x3305('0x0'));var events=[_0x3305('0x1'),_0x3305('0x2'),_0x3305('0x3')];function createListener(_0xf21228,_0x4bb4b8){return function(_0x9dce25){_0x4bb4b8['emit'](_0xf21228,_0x9dce25);};}function removeListener(_0x1d5748,_0x3731de){return function(){VoiceQueueEvents[_0x3305('0x4')](_0x1d5748,_0x3731de);};}exports[_0x3305('0x5')]=function(_0x2eb236){for(var _0x3e59=0x0,_0x487ea4=events['length'];_0x3e59<_0x487ea4;_0x3e59++){var _0x5b3f01=events[_0x3e59];var _0x2451a4=createListener(_0x3305('0x6')+_0x5b3f01,_0x2eb236);VoiceQueueEvents['on'](_0x5b3f01,_0x2451a4);}};