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 _0x64e5=['save','remove','update','emit','removeListener','length','mailInteraction:'];(function(_0x5028ef,_0x3f7436){var _0x514843=function(_0x5864c1){while(--_0x5864c1){_0x5028ef['push'](_0x5028ef['shift']());}};_0x514843(++_0x3f7436);}(_0x64e5,0x12d));var _0x564e=function(_0x2763f2,_0x416af8){_0x2763f2=_0x2763f2-0x0;var _0x3ef471=_0x64e5[_0x2763f2];return _0x3ef471;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0x564e('0x0'),_0x564e('0x1'),_0x564e('0x2')];function createListener(_0x2225a2,_0x1c9858){return function(_0xc39b1d){_0x1c9858[_0x564e('0x3')](_0x2225a2,_0xc39b1d);};}function removeListener(_0x11830e,_0x1b8023){return function(){MailInteractionEvents[_0x564e('0x4')](_0x11830e,_0x1b8023);};}exports['register']=function(_0x943602){for(var _0x5ccebe=0x0,_0x46d140=events[_0x564e('0x5')];_0x5ccebe<_0x46d140;_0x5ccebe++){var _0x13f03b=events[_0x5ccebe];var _0x2aec0e=createListener(_0x564e('0x6')+_0x13f03b,_0x943602);MailInteractionEvents['on'](_0x13f03b,_0x2aec0e);}};