1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x02b9=['save','remove','removeListener','register','length','./faxQueue.events'];(function(_0x38c202,_0x299906){var _0xb66482=function(_0x55374d){while(--_0x55374d){_0x38c202['push'](_0x38c202['shift']());}};_0xb66482(++_0x299906);}(_0x02b9,0x1c1));var _0x902b=function(_0x3b0f61,_0x5c9bcf){_0x3b0f61=_0x3b0f61-0x0;var _0x3d3a78=_0x02b9[_0x3b0f61];return _0x3d3a78;};'use strict';var FaxQueueEvents=require(_0x902b('0x0'));var events=[_0x902b('0x1'),_0x902b('0x2'),'update'];function createListener(_0x4f0a3b,_0x33c0bc){return function(_0x391868){_0x33c0bc['emit'](_0x4f0a3b,_0x391868);};}function removeListener(_0x5a462f,_0x3879ee){return function(){FaxQueueEvents[_0x902b('0x3')](_0x5a462f,_0x3879ee);};}exports[_0x902b('0x4')]=function(_0x435369){for(var _0x1f89ed=0x0,_0x4e6c76=events[_0x902b('0x5')];_0x1f89ed<_0x4e6c76;_0x1f89ed++){var _0x39744f=events[_0x1f89ed];var _0x296c88=createListener('faxQueue:'+_0x39744f,_0x435369);FaxQueueEvents['on'](_0x39744f,_0x296c88);}};