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 _0x04dc=['register','./mailInteraction.events','save','update','emit','removeListener'];(function(_0x1969a7,_0x5a133a){var _0x3d665f=function(_0x39c64b){while(--_0x39c64b){_0x1969a7['push'](_0x1969a7['shift']());}};_0x3d665f(++_0x5a133a);}(_0x04dc,0x1b1));var _0xc04d=function(_0x599570,_0x460668){_0x599570=_0x599570-0x0;var _0x3d743f=_0x04dc[_0x599570];return _0x3d743f;};'use strict';var MailInteractionEvents=require(_0xc04d('0x0'));var events=[_0xc04d('0x1'),'remove',_0xc04d('0x2')];function createListener(_0x43ff96,_0x5e5043){return function(_0x39722d){_0x5e5043[_0xc04d('0x3')](_0x43ff96,_0x39722d);};}function removeListener(_0x5ddd44,_0x45038d){return function(){MailInteractionEvents[_0xc04d('0x4')](_0x5ddd44,_0x45038d);};}exports[_0xc04d('0x5')]=function(_0x5e4cf9){for(var _0x6c3dda=0x0,_0x28ec3d=events['length'];_0x6c3dda<_0x28ec3d;_0x6c3dda++){var _0x5714c0=events[_0x6c3dda];var _0x4c3262=createListener('mailInteraction:'+_0x5714c0,_0x5e4cf9);MailInteractionEvents['on'](_0x5714c0,_0x4c3262);}};