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 _0x412c=['register','length','faxMessage:','save','update','emit','removeListener'];(function(_0x328c4f,_0x401307){var _0x37a075=function(_0x40f186){while(--_0x40f186){_0x328c4f['push'](_0x328c4f['shift']());}};_0x37a075(++_0x401307);}(_0x412c,0x1a7));var _0xc412=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0x412c[_0x465028];return _0xb783d4;};'use strict';var FaxMessageEvents=require('./faxMessage.events');var events=[_0xc412('0x0'),'remove',_0xc412('0x1')];function createListener(_0x1ed2c4,_0x43f0bb){return function(_0x8d5a0a){_0x43f0bb[_0xc412('0x2')](_0x1ed2c4,_0x8d5a0a);};}function removeListener(_0x41b822,_0x3ebb29){return function(){FaxMessageEvents[_0xc412('0x3')](_0x41b822,_0x3ebb29);};}exports[_0xc412('0x4')]=function(_0xe54d0a){for(var _0x4157fd=0x0,_0x57c507=events[_0xc412('0x5')];_0x4157fd<_0x57c507;_0x4157fd++){var _0xb30c77=events[_0x4157fd];var _0x228e1b=createListener(_0xc412('0x6')+_0xb30c77,_0xe54d0a);FaxMessageEvents['on'](_0xb30c77,_0x228e1b);}};