253c3ffe32a4e87c49f83cd46c980cc6015e4948
[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 _0x3ede=['removeListener','register','length','voiceQueue:','./voiceQueue.events','update','emit'];(function(_0x1cb9b2,_0x3db057){var _0x5d4628=function(_0x34dbad){while(--_0x34dbad){_0x1cb9b2['push'](_0x1cb9b2['shift']());}};_0x5d4628(++_0x3db057);}(_0x3ede,0x1cb));var _0xe3ed=function(_0x39c734,_0x2f3e06){_0x39c734=_0x39c734-0x0;var _0xb2a2f9=_0x3ede[_0x39c734];return _0xb2a2f9;};'use strict';var VoiceQueueEvents=require(_0xe3ed('0x0'));var events=['save','remove',_0xe3ed('0x1')];function createListener(_0x52bbde,_0x535885){return function(_0x12d440){_0x535885[_0xe3ed('0x2')](_0x52bbde,_0x12d440);};}function removeListener(_0x401874,_0xa2a30b){return function(){VoiceQueueEvents[_0xe3ed('0x3')](_0x401874,_0xa2a30b);};}exports[_0xe3ed('0x4')]=function(_0x20af53){for(var _0x25221f=0x0,_0x2ec140=events[_0xe3ed('0x5')];_0x25221f<_0x2ec140;_0x25221f++){var _0xdb6db9=events[_0x25221f];var _0x168228=createListener(_0xe3ed('0x6')+_0xdb6db9,_0x20af53);VoiceQueueEvents['on'](_0xdb6db9,_0x168228);}};