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 _0xee88=['register','./mailInteraction.events','remove','update','emit'];(function(_0x100e55,_0x53a8e1){var _0x18635a=function(_0x5b6ae1){while(--_0x5b6ae1){_0x100e55['push'](_0x100e55['shift']());}};_0x18635a(++_0x53a8e1);}(_0xee88,0xf1));var _0x8ee8=function(_0x23516b,_0x4f9de4){_0x23516b=_0x23516b-0x0;var _0x45d5fe=_0xee88[_0x23516b];return _0x45d5fe;};'use strict';var MailInteractionEvents=require(_0x8ee8('0x0'));var events=['save',_0x8ee8('0x1'),_0x8ee8('0x2')];function createListener(_0x3ce53a,_0x153fe8){return function(_0x5a63c5){_0x153fe8[_0x8ee8('0x3')](_0x3ce53a,_0x5a63c5);};}function removeListener(_0x25ba4c,_0x5c15bf){return function(){MailInteractionEvents['removeListener'](_0x25ba4c,_0x5c15bf);};}exports[_0x8ee8('0x4')]=function(_0x28e6f6){for(var _0x4c985a=0x0,_0x2f5efd=events['length'];_0x4c985a<_0x2f5efd;_0x4c985a++){var _0x425af7=events[_0x4c985a];var _0x4b12dd=createListener('mailInteraction:'+_0x425af7,_0x28e6f6);MailInteractionEvents['on'](_0x425af7,_0x4b12dd);}};