Built motion from commit (unavailable).|2.5.28
[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 _0xb5c2=['save','removeListener','length','voiceQueueReport:'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0xb5c2,0x15c));var _0x2b5c=function(_0x22a8d7,_0x72dab7){_0x22a8d7=_0x22a8d7-0x0;var _0x2eff08=_0xb5c2[_0x22a8d7];return _0x2eff08;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0x2b5c('0x0'),'remove','update'];function createListener(_0x306c6b,_0x4b3159){return function(_0x27db90){_0x4b3159['emit'](_0x306c6b,_0x27db90);};}function removeListener(_0x39d66e,_0x4b2c60){return function(){VoiceQueueReportEvents[_0x2b5c('0x1')](_0x39d66e,_0x4b2c60);};}exports['register']=function(_0x14f7e6){for(var _0x101e2b=0x0,_0x3aba87=events[_0x2b5c('0x2')];_0x101e2b<_0x3aba87;_0x101e2b++){var _0x30ed58=events[_0x101e2b];var _0x51a11a=createListener(_0x2b5c('0x3')+_0x30ed58,_0x14f7e6);VoiceQueueReportEvents['on'](_0x30ed58,_0x51a11a);}};