Built motion from commit (unavailable).|2.5.6
[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 _0x098e=['emit','removeListener','register','voiceQueueReport:','./voiceQueueReport.events','remove'];(function(_0x82129b,_0x484ae9){var _0x2ae5dc=function(_0x299e34){while(--_0x299e34){_0x82129b['push'](_0x82129b['shift']());}};_0x2ae5dc(++_0x484ae9);}(_0x098e,0x1c0));var _0xe098=function(_0x4d421c,_0x84ccf0){_0x4d421c=_0x4d421c-0x0;var _0x28bb3d=_0x098e[_0x4d421c];return _0x28bb3d;};'use strict';var VoiceQueueReportEvents=require(_0xe098('0x0'));var events=['save',_0xe098('0x1'),'update'];function createListener(_0x1660c1,_0x155add){return function(_0x1449d){_0x155add[_0xe098('0x2')](_0x1660c1,_0x1449d);};}function removeListener(_0x506fe2,_0x3a9fb9){return function(){VoiceQueueReportEvents[_0xe098('0x3')](_0x506fe2,_0x3a9fb9);};}exports[_0xe098('0x4')]=function(_0x1d12af){for(var _0x367ded=0x0,_0x4669be=events['length'];_0x367ded<_0x4669be;_0x367ded++){var _0x218667=events[_0x367ded];var _0x1a353f=createListener(_0xe098('0x5')+_0x218667,_0x1d12af);VoiceQueueReportEvents['on'](_0x218667,_0x1a353f);}};