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 _0xa5eb=['length','faxQueue:','./faxQueue.events','save','remove','update','emit','removeListener','register'];(function(_0x36cf3c,_0x317ae3){var _0x2a2c00=function(_0x4e554f){while(--_0x4e554f){_0x36cf3c['push'](_0x36cf3c['shift']());}};_0x2a2c00(++_0x317ae3);}(_0xa5eb,0x13d));var _0xba5e=function(_0x28f3c3,_0xf64fa){_0x28f3c3=_0x28f3c3-0x0;var _0x303271=_0xa5eb[_0x28f3c3];return _0x303271;};'use strict';var FaxQueueEvents=require(_0xba5e('0x0'));var events=[_0xba5e('0x1'),_0xba5e('0x2'),_0xba5e('0x3')];function createListener(_0x527f52,_0x534953){return function(_0x32ce04){_0x534953[_0xba5e('0x4')](_0x527f52,_0x32ce04);};}function removeListener(_0x5813aa,_0x2e1fa8){return function(){FaxQueueEvents[_0xba5e('0x5')](_0x5813aa,_0x2e1fa8);};}exports[_0xba5e('0x6')]=function(_0x2a6ee9){for(var _0x4201f0=0x0,_0x55f0a8=events[_0xba5e('0x7')];_0x4201f0<_0x55f0a8;_0x4201f0++){var _0x41c2ab=events[_0x4201f0];var _0x2d375a=createListener(_0xba5e('0x8')+_0x41c2ab,_0x2a6ee9);FaxQueueEvents['on'](_0x41c2ab,_0x2d375a);}};