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 _0x2cf2=['remove','emit','removeListener','./faxMessage.events','save'];(function(_0x2fa780,_0x3b4273){var _0x5bc479=function(_0x1bb077){while(--_0x1bb077){_0x2fa780['push'](_0x2fa780['shift']());}};_0x5bc479(++_0x3b4273);}(_0x2cf2,0x189));var _0x22cf=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0x2cf2[_0x5b644e];return _0x49c6bf;};'use strict';var FaxMessageEvents=require(_0x22cf('0x0'));var events=[_0x22cf('0x1'),_0x22cf('0x2'),'update'];function createListener(_0x495990,_0x5e5577){return function(_0x2a9988){_0x5e5577[_0x22cf('0x3')](_0x495990,_0x2a9988);};}function removeListener(_0x4c3997,_0x41dba6){return function(){FaxMessageEvents[_0x22cf('0x4')](_0x4c3997,_0x41dba6);};}exports['register']=function(_0x13b711){for(var _0x2d96aa=0x0,_0x22c182=events['length'];_0x2d96aa<_0x22c182;_0x2d96aa++){var _0xf23a9a=events[_0x2d96aa];var _0x303942=createListener('faxMessage:'+_0xf23a9a,_0x13b711);FaxMessageEvents['on'](_0xf23a9a,_0x303942);}};