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 _0x9f2a=['register','length','faxQueue:','./faxQueue.events','remove','update','removeListener'];(function(_0x3653c7,_0xadb356){var _0x58a021=function(_0x20b237){while(--_0x20b237){_0x3653c7['push'](_0x3653c7['shift']());}};_0x58a021(++_0xadb356);}(_0x9f2a,0xc7));var _0xa9f2=function(_0x24203e,_0x9f488a){_0x24203e=_0x24203e-0x0;var _0x3a9174=_0x9f2a[_0x24203e];return _0x3a9174;};'use strict';var FaxQueueEvents=require(_0xa9f2('0x0'));var events=['save',_0xa9f2('0x1'),_0xa9f2('0x2')];function createListener(_0x3d0486,_0x330100){return function(_0x1724f5){_0x330100['emit'](_0x3d0486,_0x1724f5);};}function removeListener(_0x30beef,_0x494435){return function(){FaxQueueEvents[_0xa9f2('0x3')](_0x30beef,_0x494435);};}exports[_0xa9f2('0x4')]=function(_0xf99eb1){for(var _0x50d39a=0x0,_0x144ba6=events[_0xa9f2('0x5')];_0x50d39a<_0x144ba6;_0x50d39a++){var _0x354247=events[_0x50d39a];var _0x324c5d=createListener(_0xa9f2('0x6')+_0x354247,_0xf99eb1);FaxQueueEvents['on'](_0x354247,_0x324c5d);}};