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 _0x6d19=['length','faxQueue:','save','remove','update','emit','removeListener','register'];(function(_0x2faddb,_0xc18b78){var _0x273c05=function(_0x1a3785){while(--_0x1a3785){_0x2faddb['push'](_0x2faddb['shift']());}};_0x273c05(++_0xc18b78);}(_0x6d19,0x9a));var _0x96d1=function(_0x2272b5,_0x362458){_0x2272b5=_0x2272b5-0x0;var _0x110156=_0x6d19[_0x2272b5];return _0x110156;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0x96d1('0x0'),_0x96d1('0x1'),_0x96d1('0x2')];function createListener(_0x1c5d8b,_0x38f8ce){return function(_0x56c3d0){_0x38f8ce[_0x96d1('0x3')](_0x1c5d8b,_0x56c3d0);};}function removeListener(_0x2fa24a,_0x12ab92){return function(){FaxQueueEvents[_0x96d1('0x4')](_0x2fa24a,_0x12ab92);};}exports[_0x96d1('0x5')]=function(_0x4a1d1b){for(var _0x56d5ce=0x0,_0x437666=events[_0x96d1('0x6')];_0x56d5ce<_0x437666;_0x56d5ce++){var _0x4e0fce=events[_0x56d5ce];var _0x48b3bf=createListener(_0x96d1('0x7')+_0x4e0fce,_0x4a1d1b);FaxQueueEvents['on'](_0x4e0fce,_0x48b3bf);}};