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 _0x086a=['register','faxInteraction:','./faxInteraction.events','save','remove','emit','removeListener'];(function(_0x5bb4d6,_0x54189b){var _0x378b1f=function(_0xb48b61){while(--_0xb48b61){_0x5bb4d6['push'](_0x5bb4d6['shift']());}};_0x378b1f(++_0x54189b);}(_0x086a,0x1e5));var _0xa086=function(_0x430969,_0x14e4ad){_0x430969=_0x430969-0x0;var _0x5e7e3e=_0x086a[_0x430969];return _0x5e7e3e;};'use strict';var FaxInteractionEvents=require(_0xa086('0x0'));var events=[_0xa086('0x1'),_0xa086('0x2'),'update'];function createListener(_0x2e6292,_0x1a03b5){return function(_0x3416d6){_0x1a03b5[_0xa086('0x3')](_0x2e6292,_0x3416d6);};}function removeListener(_0x3f24b3,_0x5b7226){return function(){FaxInteractionEvents[_0xa086('0x4')](_0x3f24b3,_0x5b7226);};}exports[_0xa086('0x5')]=function(_0x1ad667){for(var _0x2fc603=0x0,_0x79c16=events['length'];_0x2fc603<_0x79c16;_0x2fc603++){var _0x37c6a7=events[_0x2fc603];var _0x59cf42=createListener(_0xa086('0x6')+_0x37c6a7,_0x1ad667);FaxInteractionEvents['on'](_0x37c6a7,_0x59cf42);}};