Built motion from commit (unavailable).|2.5.29
[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 _0x1d47=['update','removeListener','length','voiceQueueReport:','./voiceQueueReport.events'];(function(_0x577d25,_0x4ef79c){var _0x21c69d=function(_0x1c3340){while(--_0x1c3340){_0x577d25['push'](_0x577d25['shift']());}};_0x21c69d(++_0x4ef79c);}(_0x1d47,0x1a8));var _0x71d4=function(_0x376b45,_0x5964fb){_0x376b45=_0x376b45-0x0;var _0x2341b3=_0x1d47[_0x376b45];return _0x2341b3;};'use strict';var VoiceQueueReportEvents=require(_0x71d4('0x0'));var events=['save','remove',_0x71d4('0x1')];function createListener(_0x12f4d2,_0x587999){return function(_0xb33f38){_0x587999['emit'](_0x12f4d2,_0xb33f38);};}function removeListener(_0x5a99e4,_0x3a709a){return function(){VoiceQueueReportEvents[_0x71d4('0x2')](_0x5a99e4,_0x3a709a);};}exports['register']=function(_0x27fc8e){for(var _0x53d598=0x0,_0x432cdb=events[_0x71d4('0x3')];_0x53d598<_0x432cdb;_0x53d598++){var _0x10daf4=events[_0x53d598];var _0x2b123c=createListener(_0x71d4('0x4')+_0x10daf4,_0x27fc8e);VoiceQueueReportEvents['on'](_0x10daf4,_0x2b123c);}};