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 _0xbe2c=['register','length','mailInteraction:','./mailInteraction.events','remove','update','emit','removeListener'];(function(_0x551924,_0x3618ac){var _0xaf15be=function(_0x32ccba){while(--_0x32ccba){_0x551924['push'](_0x551924['shift']());}};_0xaf15be(++_0x3618ac);}(_0xbe2c,0xbb));var _0xcbe2=function(_0x2463d4,_0x122560){_0x2463d4=_0x2463d4-0x0;var _0x32c467=_0xbe2c[_0x2463d4];return _0x32c467;};'use strict';var MailInteractionEvents=require(_0xcbe2('0x0'));var events=['save',_0xcbe2('0x1'),_0xcbe2('0x2')];function createListener(_0x38af0b,_0x29c350){return function(_0x1df0c2){_0x29c350[_0xcbe2('0x3')](_0x38af0b,_0x1df0c2);};}function removeListener(_0x3df729,_0x105d44){return function(){MailInteractionEvents[_0xcbe2('0x4')](_0x3df729,_0x105d44);};}exports[_0xcbe2('0x5')]=function(_0x18c332){for(var _0x568ece=0x0,_0x5ad0fc=events[_0xcbe2('0x6')];_0x568ece<_0x5ad0fc;_0x568ece++){var _0x39db5e=events[_0x568ece];var _0x5275a9=createListener(_0xcbe2('0x7')+_0x39db5e,_0x18c332);MailInteractionEvents['on'](_0x39db5e,_0x5275a9);}};