c5a27c51bb3e19da3f425acdc96627b8d5ce3f34
[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 _0x4a3c=['update','emit','removeListener','register','./voiceQueue.events','remove'];(function(_0x48985b,_0x1933f1){var _0x21ed2b=function(_0x5468df){while(--_0x5468df){_0x48985b['push'](_0x48985b['shift']());}};_0x21ed2b(++_0x1933f1);}(_0x4a3c,0x13c));var _0xc4a3=function(_0xfc8c5d,_0xfeed56){_0xfc8c5d=_0xfc8c5d-0x0;var _0x1cbc21=_0x4a3c[_0xfc8c5d];return _0x1cbc21;};'use strict';var VoiceQueueEvents=require(_0xc4a3('0x0'));var events=['save',_0xc4a3('0x1'),_0xc4a3('0x2')];function createListener(_0x353760,_0x132afa){return function(_0x296209){_0x132afa[_0xc4a3('0x3')](_0x353760,_0x296209);};}function removeListener(_0xea7843,_0x5785ed){return function(){VoiceQueueEvents[_0xc4a3('0x4')](_0xea7843,_0x5785ed);};}exports[_0xc4a3('0x5')]=function(_0x26db49){for(var _0x3a4100=0x0,_0x4b1c84=events['length'];_0x3a4100<_0x4b1c84;_0x3a4100++){var _0x596b01=events[_0x3a4100];var _0xc11c29=createListener('voiceQueue:'+_0x596b01,_0x26db49);VoiceQueueEvents['on'](_0x596b01,_0xc11c29);}};