Built motion from commit 092f8824.|2.5.49
[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 _0x503a=['update','emit','voiceQueueReport:','./voiceQueueReport.events','save'];(function(_0x533fd9,_0x37a07d){var _0x4c011c=function(_0x1dc5f0){while(--_0x1dc5f0){_0x533fd9['push'](_0x533fd9['shift']());}};_0x4c011c(++_0x37a07d);}(_0x503a,0x19d));var _0xa503=function(_0x1dab5f,_0x10cd21){_0x1dab5f=_0x1dab5f-0x0;var _0x40c2f3=_0x503a[_0x1dab5f];return _0x40c2f3;};'use strict';var VoiceQueueReportEvents=require(_0xa503('0x0'));var events=[_0xa503('0x1'),'remove',_0xa503('0x2')];function createListener(_0x5863ce,_0x3a2264){return function(_0x2f244f){_0x3a2264[_0xa503('0x3')](_0x5863ce,_0x2f244f);};}function removeListener(_0x1a5435,_0x86018e){return function(){VoiceQueueReportEvents['removeListener'](_0x1a5435,_0x86018e);};}exports['register']=function(_0x47f11d){for(var _0x1eb8d1=0x0,_0x1943d7=events['length'];_0x1eb8d1<_0x1943d7;_0x1eb8d1++){var _0x4428de=events[_0x1eb8d1];var _0x18a066=createListener(_0xa503('0x4')+_0x4428de,_0x47f11d);VoiceQueueReportEvents['on'](_0x4428de,_0x18a066);}};