Built motion from commit (unavailable).|2.5.22
[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 _0x0cb5=['removeListener','register','voiceQueueReport:','save','remove','update','emit'];(function(_0x1ccdc9,_0x2c9894){var _0x3f1331=function(_0x33a2c8){while(--_0x33a2c8){_0x1ccdc9['push'](_0x1ccdc9['shift']());}};_0x3f1331(++_0x2c9894);}(_0x0cb5,0x18b));var _0x50cb=function(_0xbe200f,_0x4b50eb){_0xbe200f=_0xbe200f-0x0;var _0x192597=_0x0cb5[_0xbe200f];return _0x192597;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0x50cb('0x0'),_0x50cb('0x1'),_0x50cb('0x2')];function createListener(_0x1a7021,_0x2e2805){return function(_0x580b02){_0x2e2805[_0x50cb('0x3')](_0x1a7021,_0x580b02);};}function removeListener(_0x597450,_0x57b0e1){return function(){VoiceQueueReportEvents[_0x50cb('0x4')](_0x597450,_0x57b0e1);};}exports[_0x50cb('0x5')]=function(_0x5db2dd){for(var _0x83f51c=0x0,_0x4e5dfa=events['length'];_0x83f51c<_0x4e5dfa;_0x83f51c++){var _0x429151=events[_0x83f51c];var _0x589931=createListener(_0x50cb('0x6')+_0x429151,_0x5db2dd);VoiceQueueReportEvents['on'](_0x429151,_0x589931);}};