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 _0xfe28=['./faxQueue.events','save','remove','emit','length','faxQueue:'];(function(_0x1c7481,_0x85bf87){var _0x14ca2c=function(_0x3e0961){while(--_0x3e0961){_0x1c7481['push'](_0x1c7481['shift']());}};_0x14ca2c(++_0x85bf87);}(_0xfe28,0xfc));var _0x8fe2=function(_0xecbd4b,_0xc50cf5){_0xecbd4b=_0xecbd4b-0x0;var _0x14ef74=_0xfe28[_0xecbd4b];return _0x14ef74;};'use strict';var FaxQueueEvents=require(_0x8fe2('0x0'));var events=[_0x8fe2('0x1'),_0x8fe2('0x2'),'update'];function createListener(_0x1f2349,_0x20c8d8){return function(_0x3a9a28){_0x20c8d8[_0x8fe2('0x3')](_0x1f2349,_0x3a9a28);};}function removeListener(_0x25bb7a,_0x173fca){return function(){FaxQueueEvents['removeListener'](_0x25bb7a,_0x173fca);};}exports['register']=function(_0x22be56){for(var _0x25bb9c=0x0,_0x1b732c=events[_0x8fe2('0x4')];_0x25bb9c<_0x1b732c;_0x25bb9c++){var _0x4fbf1c=events[_0x25bb9c];var _0x10e190=createListener(_0x8fe2('0x5')+_0x4fbf1c,_0x22be56);FaxQueueEvents['on'](_0x4fbf1c,_0x10e190);}};