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 _0x533f=['save','remove','update','register','length','./mailInteraction.events'];(function(_0x6a0266,_0x1552d6){var _0x309e00=function(_0x17c1d1){while(--_0x17c1d1){_0x6a0266['push'](_0x6a0266['shift']());}};_0x309e00(++_0x1552d6);}(_0x533f,0x1a3));var _0xf533=function(_0x503790,_0x525c78){_0x503790=_0x503790-0x0;var _0x388092=_0x533f[_0x503790];return _0x388092;};'use strict';var MailInteractionEvents=require(_0xf533('0x0'));var events=[_0xf533('0x1'),_0xf533('0x2'),_0xf533('0x3')];function createListener(_0x8cc07b,_0x517149){return function(_0x2bdf38){_0x517149['emit'](_0x8cc07b,_0x2bdf38);};}function removeListener(_0x421d38,_0x481453){return function(){MailInteractionEvents['removeListener'](_0x421d38,_0x481453);};}exports[_0xf533('0x4')]=function(_0x982827){for(var _0x412cad=0x0,_0x3366ff=events[_0xf533('0x5')];_0x412cad<_0x3366ff;_0x412cad++){var _0x29b87a=events[_0x412cad];var _0x262834=createListener('mailInteraction:'+_0x29b87a,_0x982827);MailInteractionEvents['on'](_0x29b87a,_0x262834);}};