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 _0xfeb6=['register','faxMessage:','./faxMessage.events','save','update','emit','removeListener'];(function(_0x8e8ca7,_0x5a5e07){var _0x561381=function(_0x2f4bda){while(--_0x2f4bda){_0x8e8ca7['push'](_0x8e8ca7['shift']());}};_0x561381(++_0x5a5e07);}(_0xfeb6,0xa3));var _0x6feb=function(_0x16478b,_0x1198e9){_0x16478b=_0x16478b-0x0;var _0x2fc270=_0xfeb6[_0x16478b];return _0x2fc270;};'use strict';var FaxMessageEvents=require(_0x6feb('0x0'));var events=[_0x6feb('0x1'),'remove',_0x6feb('0x2')];function createListener(_0x56d763,_0x1112c1){return function(_0x1d9d1c){_0x1112c1[_0x6feb('0x3')](_0x56d763,_0x1d9d1c);};}function removeListener(_0x3ded68,_0x4916c4){return function(){FaxMessageEvents[_0x6feb('0x4')](_0x3ded68,_0x4916c4);};}exports[_0x6feb('0x5')]=function(_0x12864d){for(var _0x35dc34=0x0,_0x4369bd=events['length'];_0x35dc34<_0x4369bd;_0x35dc34++){var _0x55ce49=events[_0x35dc34];var _0x518e4e=createListener(_0x6feb('0x6')+_0x55ce49,_0x12864d);FaxMessageEvents['on'](_0x55ce49,_0x518e4e);}};