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 _0xce6e=['register','save','remove','update','emit'];(function(_0x2cef86,_0xbae0a6){var _0x46dfd6=function(_0x52e464){while(--_0x52e464){_0x2cef86['push'](_0x2cef86['shift']());}};_0x46dfd6(++_0xbae0a6);}(_0xce6e,0x114));var _0xece6=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xce6e[_0x3dd15e];return _0x231fd0;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=[_0xece6('0x0'),_0xece6('0x1'),_0xece6('0x2')];function createListener(_0x26b042,_0x84057e){return function(_0x86d314){_0x84057e[_0xece6('0x3')](_0x26b042,_0x86d314);};}function removeListener(_0x3620ff,_0x28ad5d){return function(){FaxInteractionEvents['removeListener'](_0x3620ff,_0x28ad5d);};}exports[_0xece6('0x4')]=function(_0x499d39){for(var _0x276984=0x0,_0xc95104=events['length'];_0x276984<_0xc95104;_0x276984++){var _0x524794=events[_0x276984];var _0x393567=createListener('faxInteraction:'+_0x524794,_0x499d39);FaxInteractionEvents['on'](_0x524794,_0x393567);}};