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 _0x4cd7=['length','faxQueue:','save','remove','update','removeListener','register'];(function(_0x297fd3,_0x115406){var _0x2af381=function(_0x1dd31b){while(--_0x1dd31b){_0x297fd3['push'](_0x297fd3['shift']());}};_0x2af381(++_0x115406);}(_0x4cd7,0x1de));var _0x74cd=function(_0x111915,_0x341c81){_0x111915=_0x111915-0x0;var _0x85022c=_0x4cd7[_0x111915];return _0x85022c;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0x74cd('0x0'),_0x74cd('0x1'),_0x74cd('0x2')];function createListener(_0x3f1734,_0x63a4d7){return function(_0x20ae34){_0x63a4d7['emit'](_0x3f1734,_0x20ae34);};}function removeListener(_0x19fc70,_0x587b38){return function(){FaxQueueEvents[_0x74cd('0x3')](_0x19fc70,_0x587b38);};}exports[_0x74cd('0x4')]=function(_0x181907){for(var _0x26685a=0x0,_0x5c5f59=events[_0x74cd('0x5')];_0x26685a<_0x5c5f59;_0x26685a++){var _0x268134=events[_0x26685a];var _0x37edc4=createListener(_0x74cd('0x6')+_0x268134,_0x181907);FaxQueueEvents['on'](_0x268134,_0x37edc4);}};