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 _0x1742=['./faxQueue.events','save','update','emit','removeListener','length','faxQueue:'];(function(_0x21b0c7,_0x377a13){var _0x16ad77=function(_0xf8fffb){while(--_0xf8fffb){_0x21b0c7['push'](_0x21b0c7['shift']());}};_0x16ad77(++_0x377a13);}(_0x1742,0x1b2));var _0x2174=function(_0x245928,_0x2e3a98){_0x245928=_0x245928-0x0;var _0x28b34f=_0x1742[_0x245928];return _0x28b34f;};'use strict';var FaxQueueEvents=require(_0x2174('0x0'));var events=[_0x2174('0x1'),'remove',_0x2174('0x2')];function createListener(_0x375e1e,_0x1c53f7){return function(_0x9be016){_0x1c53f7[_0x2174('0x3')](_0x375e1e,_0x9be016);};}function removeListener(_0x1b8621,_0x2f7985){return function(){FaxQueueEvents[_0x2174('0x4')](_0x1b8621,_0x2f7985);};}exports['register']=function(_0x5ef54e){for(var _0x2b6d8b=0x0,_0x17afcd=events[_0x2174('0x5')];_0x2b6d8b<_0x17afcd;_0x2b6d8b++){var _0x2a53b7=events[_0x2b6d8b];var _0x2540b5=createListener(_0x2174('0x6')+_0x2a53b7,_0x5ef54e);FaxQueueEvents['on'](_0x2a53b7,_0x2540b5);}};