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 _0xaf2b=['save','remove','removeListener','register','length','mailInteraction:','./mailInteraction.events'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0xaf2b,0xfb));var _0xbaf2=function(_0x291b77,_0x36b1c2){_0x291b77=_0x291b77-0x0;var _0x138495=_0xaf2b[_0x291b77];return _0x138495;};'use strict';var MailInteractionEvents=require(_0xbaf2('0x0'));var events=[_0xbaf2('0x1'),_0xbaf2('0x2'),'update'];function createListener(_0x20a17f,_0x22bbbd){return function(_0x559369){_0x22bbbd['emit'](_0x20a17f,_0x559369);};}function removeListener(_0x297c22,_0x4cec33){return function(){MailInteractionEvents[_0xbaf2('0x3')](_0x297c22,_0x4cec33);};}exports[_0xbaf2('0x4')]=function(_0x4ed437){for(var _0x1be0da=0x0,_0x404bb0=events[_0xbaf2('0x5')];_0x1be0da<_0x404bb0;_0x1be0da++){var _0x4ef9c9=events[_0x1be0da];var _0x352b2c=createListener(_0xbaf2('0x6')+_0x4ef9c9,_0x4ed437);MailInteractionEvents['on'](_0x4ef9c9,_0x352b2c);}};