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 _0x0e35=['./mailInteraction.events','save','remove','update','emit','removeListener','register','mailInteraction:'];(function(_0x5c365f,_0x3b40ed){var _0x295e1b=function(_0x226683){while(--_0x226683){_0x5c365f['push'](_0x5c365f['shift']());}};_0x295e1b(++_0x3b40ed);}(_0x0e35,0x160));var _0x50e3=function(_0x531235,_0x243005){_0x531235=_0x531235-0x0;var _0x2f0a70=_0x0e35[_0x531235];return _0x2f0a70;};'use strict';var MailInteractionEvents=require(_0x50e3('0x0'));var events=[_0x50e3('0x1'),_0x50e3('0x2'),_0x50e3('0x3')];function createListener(_0x39dc25,_0xea89a3){return function(_0x49e0aa){_0xea89a3[_0x50e3('0x4')](_0x39dc25,_0x49e0aa);};}function removeListener(_0x5e1d91,_0x1f945e){return function(){MailInteractionEvents[_0x50e3('0x5')](_0x5e1d91,_0x1f945e);};}exports[_0x50e3('0x6')]=function(_0x5ce54d){for(var _0x182531=0x0,_0x5d43ce=events['length'];_0x182531<_0x5d43ce;_0x182531++){var _0x1e0d7e=events[_0x182531];var _0x38cdaa=createListener(_0x50e3('0x7')+_0x1e0d7e,_0x5ce54d);MailInteractionEvents['on'](_0x1e0d7e,_0x38cdaa);}};