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 _0x32e1=['mailInteraction:','./mailInteraction.events','remove','update','register'];(function(_0x14fe9f,_0x37e6f2){var _0x4cef94=function(_0x29e569){while(--_0x29e569){_0x14fe9f['push'](_0x14fe9f['shift']());}};_0x4cef94(++_0x37e6f2);}(_0x32e1,0xf6));var _0x132e=function(_0x4910f7,_0x48d0b4){_0x4910f7=_0x4910f7-0x0;var _0x550ee2=_0x32e1[_0x4910f7];return _0x550ee2;};'use strict';var MailInteractionEvents=require(_0x132e('0x0'));var events=['save',_0x132e('0x1'),_0x132e('0x2')];function createListener(_0x2c9149,_0x939d7c){return function(_0x54e209){_0x939d7c['emit'](_0x2c9149,_0x54e209);};}function removeListener(_0x1a0ebc,_0x451af1){return function(){MailInteractionEvents['removeListener'](_0x1a0ebc,_0x451af1);};}exports[_0x132e('0x3')]=function(_0x4c2903){for(var _0x11b3b4=0x0,_0x59ca39=events['length'];_0x11b3b4<_0x59ca39;_0x11b3b4++){var _0x371610=events[_0x11b3b4];var _0x43e068=createListener(_0x132e('0x4')+_0x371610,_0x4c2903);MailInteractionEvents['on'](_0x371610,_0x43e068);}};