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 _0xd2a9=['length','faxMessage:','./faxMessage.events','save','remove','update','removeListener','register'];(function(_0xa1e3e3,_0x29fe0e){var _0xc980e9=function(_0x1f5adc){while(--_0x1f5adc){_0xa1e3e3['push'](_0xa1e3e3['shift']());}};_0xc980e9(++_0x29fe0e);}(_0xd2a9,0xb2));var _0x9d2a=function(_0x53cfc8,_0x246412){_0x53cfc8=_0x53cfc8-0x0;var _0x94d4ff=_0xd2a9[_0x53cfc8];return _0x94d4ff;};'use strict';var FaxMessageEvents=require(_0x9d2a('0x0'));var events=[_0x9d2a('0x1'),_0x9d2a('0x2'),_0x9d2a('0x3')];function createListener(_0x46ebc0,_0x293baa){return function(_0x4cb5f5){_0x293baa['emit'](_0x46ebc0,_0x4cb5f5);};}function removeListener(_0x2f0888,_0x5645c6){return function(){FaxMessageEvents[_0x9d2a('0x4')](_0x2f0888,_0x5645c6);};}exports[_0x9d2a('0x5')]=function(_0x1358a0){for(var _0x88b142=0x0,_0xb310bf=events[_0x9d2a('0x6')];_0x88b142<_0xb310bf;_0x88b142++){var _0x199d20=events[_0x88b142];var _0x1f632f=createListener(_0x9d2a('0x7')+_0x199d20,_0x1358a0);FaxMessageEvents['on'](_0x199d20,_0x1f632f);}};