Built motion from commit (unavailable).|2.5.5
[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 _0x6d55=['emit','register','./voiceQueueReport.events','save','remove','update'];(function(_0x59f0dc,_0x1e2497){var _0x5b5445=function(_0x57ca91){while(--_0x57ca91){_0x59f0dc['push'](_0x59f0dc['shift']());}};_0x5b5445(++_0x1e2497);}(_0x6d55,0xda));var _0x56d5=function(_0x1ecbd4,_0x556696){_0x1ecbd4=_0x1ecbd4-0x0;var _0x4e73d8=_0x6d55[_0x1ecbd4];return _0x4e73d8;};'use strict';var VoiceQueueReportEvents=require(_0x56d5('0x0'));var events=[_0x56d5('0x1'),_0x56d5('0x2'),_0x56d5('0x3')];function createListener(_0x3ae9b1,_0x599520){return function(_0x43a172){_0x599520[_0x56d5('0x4')](_0x3ae9b1,_0x43a172);};}function removeListener(_0x29d8be,_0x90c02d){return function(){VoiceQueueReportEvents['removeListener'](_0x29d8be,_0x90c02d);};}exports[_0x56d5('0x5')]=function(_0x1fc2ac){for(var _0x1d3c54=0x0,_0x548379=events['length'];_0x1d3c54<_0x548379;_0x1d3c54++){var _0x3b1839=events[_0x1d3c54];var _0x25c1f1=createListener('voiceQueueReport:'+_0x3b1839,_0x1fc2ac);VoiceQueueReportEvents['on'](_0x3b1839,_0x25c1f1);}};