Built motion from commit (unavailable).|2.4.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 _0x64f7=['save','emit','removeListener','./voiceQueue.events'];(function(_0x2070da,_0x45e586){var _0x4f9fe1=function(_0x5b6f2a){while(--_0x5b6f2a){_0x2070da['push'](_0x2070da['shift']());}};_0x4f9fe1(++_0x45e586);}(_0x64f7,0x11b));var _0x764f=function(_0x1c465e,_0x10b044){_0x1c465e=_0x1c465e-0x0;var _0x511f24=_0x64f7[_0x1c465e];return _0x511f24;};'use strict';var VoiceQueueEvents=require(_0x764f('0x0'));var events=[_0x764f('0x1'),'remove','update'];function createListener(_0x5b8785,_0x3c69eb){return function(_0x496cf9){_0x3c69eb[_0x764f('0x2')](_0x5b8785,_0x496cf9);};}function removeListener(_0x2c3e20,_0x4edf53){return function(){VoiceQueueEvents[_0x764f('0x3')](_0x2c3e20,_0x4edf53);};}exports['register']=function(_0x463f8c){for(var _0x461f4e=0x0,_0x531481=events['length'];_0x461f4e<_0x531481;_0x461f4e++){var _0x5a0d80=events[_0x461f4e];var _0x51cf4c=createListener('voiceQueue:'+_0x5a0d80,_0x463f8c);VoiceQueueEvents['on'](_0x5a0d80,_0x51cf4c);}};