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 _0xa1b4=['emit','register','length','./faxQueue.events','save','remove','update'];(function(_0xe45118,_0x5dffbc){var _0x15e15d=function(_0x17eaec){while(--_0x17eaec){_0xe45118['push'](_0xe45118['shift']());}};_0x15e15d(++_0x5dffbc);}(_0xa1b4,0xff));var _0x4a1b=function(_0x27530d,_0x46480a){_0x27530d=_0x27530d-0x0;var _0x59e561=_0xa1b4[_0x27530d];return _0x59e561;};'use strict';var FaxQueueEvents=require(_0x4a1b('0x0'));var events=[_0x4a1b('0x1'),_0x4a1b('0x2'),_0x4a1b('0x3')];function createListener(_0x544d8c,_0x5e84d7){return function(_0x3dbc99){_0x5e84d7[_0x4a1b('0x4')](_0x544d8c,_0x3dbc99);};}function removeListener(_0x531de4,_0x45da07){return function(){FaxQueueEvents['removeListener'](_0x531de4,_0x45da07);};}exports[_0x4a1b('0x5')]=function(_0x3fff4a){for(var _0x3788cd=0x0,_0x5532c6=events[_0x4a1b('0x6')];_0x3788cd<_0x5532c6;_0x3788cd++){var _0x30c54c=events[_0x3788cd];var _0x2ac768=createListener('faxQueue:'+_0x30c54c,_0x3fff4a);FaxQueueEvents['on'](_0x30c54c,_0x2ac768);}};