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 _0xf98b=['mailInteraction:','./mailInteraction.events','remove','emit','removeListener','length'];(function(_0x4dbda8,_0xbce830){var _0x1149ed=function(_0x299a39){while(--_0x299a39){_0x4dbda8['push'](_0x4dbda8['shift']());}};_0x1149ed(++_0xbce830);}(_0xf98b,0x1c9));var _0xbf98=function(_0x55f8b4,_0x43f30d){_0x55f8b4=_0x55f8b4-0x0;var _0x2475f9=_0xf98b[_0x55f8b4];return _0x2475f9;};'use strict';var MailInteractionEvents=require(_0xbf98('0x0'));var events=['save',_0xbf98('0x1'),'update'];function createListener(_0x402534,_0x3d8670){return function(_0x146f72){_0x3d8670[_0xbf98('0x2')](_0x402534,_0x146f72);};}function removeListener(_0x45196d,_0x17adf5){return function(){MailInteractionEvents[_0xbf98('0x3')](_0x45196d,_0x17adf5);};}exports['register']=function(_0x3e8a00){for(var _0x1e2354=0x0,_0x48b2e=events[_0xbf98('0x4')];_0x1e2354<_0x48b2e;_0x1e2354++){var _0x4324a7=events[_0x1e2354];var _0x2e6baa=createListener(_0xbf98('0x5')+_0x4324a7,_0x3e8a00);MailInteractionEvents['on'](_0x4324a7,_0x2e6baa);}};