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 _0x220a=['removeListener','length','faxQueue:','./faxQueue.events','save','remove','update','emit'];(function(_0x2b55fa,_0x4db49a){var _0xd0ceff=function(_0x5c4f14){while(--_0x5c4f14){_0x2b55fa['push'](_0x2b55fa['shift']());}};_0xd0ceff(++_0x4db49a);}(_0x220a,0x13b));var _0xa220=function(_0x518532,_0x58c54e){_0x518532=_0x518532-0x0;var _0x5da599=_0x220a[_0x518532];return _0x5da599;};'use strict';var FaxQueueEvents=require(_0xa220('0x0'));var events=[_0xa220('0x1'),_0xa220('0x2'),_0xa220('0x3')];function createListener(_0x412853,_0x4d2f0c){return function(_0x1a75d3){_0x4d2f0c[_0xa220('0x4')](_0x412853,_0x1a75d3);};}function removeListener(_0x2a14fd,_0x113840){return function(){FaxQueueEvents[_0xa220('0x5')](_0x2a14fd,_0x113840);};}exports['register']=function(_0xda64c2){for(var _0x318442=0x0,_0x367b76=events[_0xa220('0x6')];_0x318442<_0x367b76;_0x318442++){var _0x48bd58=events[_0x318442];var _0x43ab45=createListener(_0xa220('0x7')+_0x48bd58,_0xda64c2);FaxQueueEvents['on'](_0x48bd58,_0x43ab45);}};