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 _0xe191=['removeListener','register','length','mailInteraction:','./mailInteraction.events','update'];(function(_0x2a354f,_0x477219){var _0x3dd213=function(_0x3dbabe){while(--_0x3dbabe){_0x2a354f['push'](_0x2a354f['shift']());}};_0x3dd213(++_0x477219);}(_0xe191,0x1ea));var _0x1e19=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe191[_0x3dd15e];return _0x231fd0;};'use strict';var MailInteractionEvents=require(_0x1e19('0x0'));var events=['save','remove',_0x1e19('0x1')];function createListener(_0x2eec83,_0x496df7){return function(_0x5c2cb6){_0x496df7['emit'](_0x2eec83,_0x5c2cb6);};}function removeListener(_0x28c6b2,_0x58da9d){return function(){MailInteractionEvents[_0x1e19('0x2')](_0x28c6b2,_0x58da9d);};}exports[_0x1e19('0x3')]=function(_0x505a61){for(var _0x2c6786=0x0,_0x5c993a=events[_0x1e19('0x4')];_0x2c6786<_0x5c993a;_0x2c6786++){var _0x28d0e6=events[_0x2c6786];var _0x4202eb=createListener(_0x1e19('0x5')+_0x28d0e6,_0x505a61);MailInteractionEvents['on'](_0x28d0e6,_0x4202eb);}};