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 _0xe8ac=['register','length','./faxQueue.events','save','remove','update','emit','removeListener'];(function(_0x39c102,_0xb1e59d){var _0x10a5c4=function(_0x4af9ef){while(--_0x4af9ef){_0x39c102['push'](_0x39c102['shift']());}};_0x10a5c4(++_0xb1e59d);}(_0xe8ac,0xea));var _0xce8a=function(_0x1c6426,_0x39c71b){_0x1c6426=_0x1c6426-0x0;var _0x39bd8d=_0xe8ac[_0x1c6426];return _0x39bd8d;};'use strict';var FaxQueueEvents=require(_0xce8a('0x0'));var events=[_0xce8a('0x1'),_0xce8a('0x2'),_0xce8a('0x3')];function createListener(_0x250e22,_0x5d5bcc){return function(_0x272887){_0x5d5bcc[_0xce8a('0x4')](_0x250e22,_0x272887);};}function removeListener(_0x2c5bdc,_0x328125){return function(){FaxQueueEvents[_0xce8a('0x5')](_0x2c5bdc,_0x328125);};}exports[_0xce8a('0x6')]=function(_0x4156a5){for(var _0x4654e4=0x0,_0x3f6f82=events[_0xce8a('0x7')];_0x4654e4<_0x3f6f82;_0x4654e4++){var _0xff9272=events[_0x4654e4];var _0x28f007=createListener('faxQueue:'+_0xff9272,_0x4156a5);FaxQueueEvents['on'](_0xff9272,_0x28f007);}};