f4a7286ecc124a205ed46ab0b307040fe8841766
[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 _0xebe6=['save','remove','update','emit','length','voiceQueue:','./voiceQueue.events'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0xebe6,0x13a));var _0x6ebe=function(_0xc25389,_0x4d62c4){_0xc25389=_0xc25389-0x0;var _0x4c5850=_0xebe6[_0xc25389];return _0x4c5850;};'use strict';var VoiceQueueEvents=require(_0x6ebe('0x0'));var events=[_0x6ebe('0x1'),_0x6ebe('0x2'),_0x6ebe('0x3')];function createListener(_0x229b70,_0x12699e){return function(_0x80db7b){_0x12699e[_0x6ebe('0x4')](_0x229b70,_0x80db7b);};}function removeListener(_0x39e8bf,_0x2196da){return function(){VoiceQueueEvents['removeListener'](_0x39e8bf,_0x2196da);};}exports['register']=function(_0x1c3c2c){for(var _0x2a63a5=0x0,_0x1226b9=events[_0x6ebe('0x5')];_0x2a63a5<_0x1226b9;_0x2a63a5++){var _0x3f0cdd=events[_0x2a63a5];var _0x4f8750=createListener(_0x6ebe('0x6')+_0x3f0cdd,_0x1c3c2c);VoiceQueueEvents['on'](_0x3f0cdd,_0x4f8750);}};