Built motion from commit f67b3b02.|2.6.31
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.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 _0x135c=['length','voiceQueueReport:','./voiceQueueReport.events','save','update','emit','removeListener','register'];(function(_0x143c0b,_0x1f3e3e){var _0x229c97=function(_0x29a856){while(--_0x29a856){_0x143c0b['push'](_0x143c0b['shift']());}};_0x229c97(++_0x1f3e3e);}(_0x135c,0xda));var _0xc135=function(_0x5b53d1,_0x4a7622){_0x5b53d1=_0x5b53d1-0x0;var _0x3a7cb5=_0x135c[_0x5b53d1];return _0x3a7cb5;};'use strict';var VoiceQueueReportEvents=require(_0xc135('0x0'));var events=[_0xc135('0x1'),'remove',_0xc135('0x2')];function createListener(_0x59bb32,_0x4d91af){return function(_0xfed959){_0x4d91af[_0xc135('0x3')](_0x59bb32,_0xfed959);};}function removeListener(_0x1d62b8,_0x4fea6a){return function(){VoiceQueueReportEvents[_0xc135('0x4')](_0x1d62b8,_0x4fea6a);};}exports[_0xc135('0x5')]=function(_0x14317c){for(var _0x42cf72=0x0,_0x2467ba=events[_0xc135('0x6')];_0x42cf72<_0x2467ba;_0x42cf72++){var _0x120204=events[_0x42cf72];var _0x2b20a4=createListener(_0xc135('0x7')+_0x120204,_0x14317c);VoiceQueueReportEvents['on'](_0x120204,_0x2b20a4);}};