8e6c1a0e1b0bade001de6ad56b0c5ac182311192
[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 _0xcbc8=['remove','emit','removeListener','register','voiceQueue:','./voiceQueue.events','save'];(function(_0x3e385c,_0x24e848){var _0x4c6171=function(_0x1825c7){while(--_0x1825c7){_0x3e385c['push'](_0x3e385c['shift']());}};_0x4c6171(++_0x24e848);}(_0xcbc8,0x1da));var _0x8cbc=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xcbc8[_0x3dd15e];return _0x231fd0;};'use strict';var VoiceQueueEvents=require(_0x8cbc('0x0'));var events=[_0x8cbc('0x1'),_0x8cbc('0x2'),'update'];function createListener(_0x20a1a5,_0x528e61){return function(_0xf47d61){_0x528e61[_0x8cbc('0x3')](_0x20a1a5,_0xf47d61);};}function removeListener(_0x3c9cb0,_0x81801b){return function(){VoiceQueueEvents[_0x8cbc('0x4')](_0x3c9cb0,_0x81801b);};}exports[_0x8cbc('0x5')]=function(_0x22c4e3){for(var _0x3cba83=0x0,_0x3a69d9=events['length'];_0x3cba83<_0x3a69d9;_0x3cba83++){var _0x5e9b5c=events[_0x3cba83];var _0x390398=createListener(_0x8cbc('0x6')+_0x5e9b5c,_0x22c4e3);VoiceQueueEvents['on'](_0x5e9b5c,_0x390398);}};