4f2b641458d5eac23b3649f1360a6a0da4f7c08d
[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 _0xca07=['remove','emit','register','length','voiceQueue:','./voiceQueue.events','save'];(function(_0x2a43b9,_0x2aa7ea){var _0x3b6c90=function(_0x5be37f){while(--_0x5be37f){_0x2a43b9['push'](_0x2a43b9['shift']());}};_0x3b6c90(++_0x2aa7ea);}(_0xca07,0x1c5));var _0x7ca0=function(_0x21862c,_0x11b362){_0x21862c=_0x21862c-0x0;var _0x45c4bc=_0xca07[_0x21862c];return _0x45c4bc;};'use strict';var VoiceQueueEvents=require(_0x7ca0('0x0'));var events=[_0x7ca0('0x1'),_0x7ca0('0x2'),'update'];function createListener(_0x3b7b6c,_0x243d54){return function(_0x3c4960){_0x243d54[_0x7ca0('0x3')](_0x3b7b6c,_0x3c4960);};}function removeListener(_0x277aa5,_0x3cc714){return function(){VoiceQueueEvents['removeListener'](_0x277aa5,_0x3cc714);};}exports[_0x7ca0('0x4')]=function(_0x1e1a96){for(var _0x261c57=0x0,_0x355890=events[_0x7ca0('0x5')];_0x261c57<_0x355890;_0x261c57++){var _0x3ac460=events[_0x261c57];var _0x451461=createListener(_0x7ca0('0x6')+_0x3ac460,_0x1e1a96);VoiceQueueEvents['on'](_0x3ac460,_0x451461);}};