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 _0x736e=['./faxMessage.events','remove','emit','removeListener','register','length','faxMessage:'];(function(_0x2230bf,_0x50ffc6){var _0x1818a4=function(_0x402f0d){while(--_0x402f0d){_0x2230bf['push'](_0x2230bf['shift']());}};_0x1818a4(++_0x50ffc6);}(_0x736e,0xbd));var _0xe736=function(_0x134b51,_0x422f2e){_0x134b51=_0x134b51-0x0;var _0x17d8bb=_0x736e[_0x134b51];return _0x17d8bb;};'use strict';var FaxMessageEvents=require(_0xe736('0x0'));var events=['save',_0xe736('0x1'),'update'];function createListener(_0xb61ff2,_0xf9cb57){return function(_0x1d70b4){_0xf9cb57[_0xe736('0x2')](_0xb61ff2,_0x1d70b4);};}function removeListener(_0x297abb,_0x3d01da){return function(){FaxMessageEvents[_0xe736('0x3')](_0x297abb,_0x3d01da);};}exports[_0xe736('0x4')]=function(_0x683b88){for(var _0x52f0d5=0x0,_0x40eff9=events[_0xe736('0x5')];_0x52f0d5<_0x40eff9;_0x52f0d5++){var _0x22f386=events[_0x52f0d5];var _0x3cb330=createListener(_0xe736('0x6')+_0x22f386,_0x683b88);FaxMessageEvents['on'](_0x22f386,_0x3cb330);}};