Built motion from commit 9d0783e6.|2.6.13
[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 _0x3c7b=['remove','update','removeListener','length','voiceQueueReport:','./voiceQueueReport.events','save'];(function(_0x2ec461,_0x5f588a){var _0x28603d=function(_0x21114b){while(--_0x21114b){_0x2ec461['push'](_0x2ec461['shift']());}};_0x28603d(++_0x5f588a);}(_0x3c7b,0x11d));var _0xb3c7=function(_0x1fcfe3,_0xe00c7b){_0x1fcfe3=_0x1fcfe3-0x0;var _0x2f0a1b=_0x3c7b[_0x1fcfe3];return _0x2f0a1b;};'use strict';var VoiceQueueReportEvents=require(_0xb3c7('0x0'));var events=[_0xb3c7('0x1'),_0xb3c7('0x2'),_0xb3c7('0x3')];function createListener(_0x22a73c,_0x4e4405){return function(_0x4a83a4){_0x4e4405['emit'](_0x22a73c,_0x4a83a4);};}function removeListener(_0x5b34ef,_0x234fe5){return function(){VoiceQueueReportEvents[_0xb3c7('0x4')](_0x5b34ef,_0x234fe5);};}exports['register']=function(_0x396a46){for(var _0x5b810b=0x0,_0x255f3d=events[_0xb3c7('0x5')];_0x5b810b<_0x255f3d;_0x5b810b++){var _0x341a27=events[_0x5b810b];var _0x1851a5=createListener(_0xb3c7('0x6')+_0x341a27,_0x396a46);VoiceQueueReportEvents['on'](_0x341a27,_0x1851a5);}};