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 _0x5aa1=['length','faxQueue:','./faxQueue.events','save','remove','update','emit','removeListener','register'];(function(_0x2e8a34,_0x224b5c){var _0x1d853d=function(_0x2cfa57){while(--_0x2cfa57){_0x2e8a34['push'](_0x2e8a34['shift']());}};_0x1d853d(++_0x224b5c);}(_0x5aa1,0x158));var _0x15aa=function(_0x525833,_0xe65722){_0x525833=_0x525833-0x0;var _0x2dc53e=_0x5aa1[_0x525833];return _0x2dc53e;};'use strict';var FaxQueueEvents=require(_0x15aa('0x0'));var events=[_0x15aa('0x1'),_0x15aa('0x2'),_0x15aa('0x3')];function createListener(_0x17bceb,_0x59900f){return function(_0x42916f){_0x59900f[_0x15aa('0x4')](_0x17bceb,_0x42916f);};}function removeListener(_0x4c8d14,_0x1970a5){return function(){FaxQueueEvents[_0x15aa('0x5')](_0x4c8d14,_0x1970a5);};}exports[_0x15aa('0x6')]=function(_0x21b0ed){for(var _0x4cc83a=0x0,_0xd6a173=events[_0x15aa('0x7')];_0x4cc83a<_0xd6a173;_0x4cc83a++){var _0x59e364=events[_0x4cc83a];var _0x38ea20=createListener(_0x15aa('0x8')+_0x59e364,_0x21b0ed);FaxQueueEvents['on'](_0x59e364,_0x38ea20);}};