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 _0x273c=['removeListener','register','length','faxMessage:','./faxMessage.events','save','emit'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x273c,0x193));var _0xc273=function(_0x4536a4,_0x55af7b){_0x4536a4=_0x4536a4-0x0;var _0x4fd1c1=_0x273c[_0x4536a4];return _0x4fd1c1;};'use strict';var FaxMessageEvents=require(_0xc273('0x0'));var events=[_0xc273('0x1'),'remove','update'];function createListener(_0x1b1292,_0x2b8f99){return function(_0x50434c){_0x2b8f99[_0xc273('0x2')](_0x1b1292,_0x50434c);};}function removeListener(_0x56b1bd,_0x485f73){return function(){FaxMessageEvents[_0xc273('0x3')](_0x56b1bd,_0x485f73);};}exports[_0xc273('0x4')]=function(_0x296e84){for(var _0x5e973c=0x0,_0xc0d42f=events[_0xc273('0x5')];_0x5e973c<_0xc0d42f;_0x5e973c++){var _0x32a571=events[_0x5e973c];var _0xa8d1bb=createListener(_0xc273('0x6')+_0x32a571,_0x296e84);FaxMessageEvents['on'](_0x32a571,_0xa8d1bb);}};