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 _0x9984=['./mailInteraction.events','remove','update','removeListener','register'];(function(_0x167e10,_0x13a03d){var _0xcd67a3=function(_0x11a26f){while(--_0x11a26f){_0x167e10['push'](_0x167e10['shift']());}};_0xcd67a3(++_0x13a03d);}(_0x9984,0x1f4));var _0x4998=function(_0x1e4381,_0x2847cf){_0x1e4381=_0x1e4381-0x0;var _0x406336=_0x9984[_0x1e4381];return _0x406336;};'use strict';var MailInteractionEvents=require(_0x4998('0x0'));var events=['save',_0x4998('0x1'),_0x4998('0x2')];function createListener(_0x550fc7,_0x22c8e5){return function(_0x1f19b4){_0x22c8e5['emit'](_0x550fc7,_0x1f19b4);};}function removeListener(_0x3652da,_0xbe0ea4){return function(){MailInteractionEvents[_0x4998('0x3')](_0x3652da,_0xbe0ea4);};}exports[_0x4998('0x4')]=function(_0x16d116){for(var _0x34a892=0x0,_0x324066=events['length'];_0x34a892<_0x324066;_0x34a892++){var _0x4c78d7=events[_0x34a892];var _0x291597=createListener('mailInteraction:'+_0x4c78d7,_0x16d116);MailInteractionEvents['on'](_0x4c78d7,_0x291597);}};