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 _0xc0f4=['removeListener','register','length','faxMessage:','./faxMessage.events','save','remove','update','emit'];(function(_0x4d8ed9,_0x2ae284){var _0x1e2140=function(_0x9cca89){while(--_0x9cca89){_0x4d8ed9['push'](_0x4d8ed9['shift']());}};_0x1e2140(++_0x2ae284);}(_0xc0f4,0x1cf));var _0x4c0f=function(_0x3f65c4,_0x315d6b){_0x3f65c4=_0x3f65c4-0x0;var _0x4cb6ee=_0xc0f4[_0x3f65c4];return _0x4cb6ee;};'use strict';var FaxMessageEvents=require(_0x4c0f('0x0'));var events=[_0x4c0f('0x1'),_0x4c0f('0x2'),_0x4c0f('0x3')];function createListener(_0x3f5740,_0x28a2a3){return function(_0x129824){_0x28a2a3[_0x4c0f('0x4')](_0x3f5740,_0x129824);};}function removeListener(_0x1aa347,_0x6daef6){return function(){FaxMessageEvents[_0x4c0f('0x5')](_0x1aa347,_0x6daef6);};}exports[_0x4c0f('0x6')]=function(_0xf09c5a){for(var _0x17b4f0=0x0,_0x2d0af6=events[_0x4c0f('0x7')];_0x17b4f0<_0x2d0af6;_0x17b4f0++){var _0x50ab92=events[_0x17b4f0];var _0x547cdb=createListener(_0x4c0f('0x8')+_0x50ab92,_0xf09c5a);FaxMessageEvents['on'](_0x50ab92,_0x547cdb);}};