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 _0xeec6=['register','length','mailInteraction:','./mailInteraction.events','save','remove','emit','removeListener'];(function(_0x561e8c,_0x5a1abd){var _0x333db6=function(_0x15fd8e){while(--_0x15fd8e){_0x561e8c['push'](_0x561e8c['shift']());}};_0x333db6(++_0x5a1abd);}(_0xeec6,0x1c3));var _0x6eec=function(_0x2a0183,_0x3fc93c){_0x2a0183=_0x2a0183-0x0;var _0x158c3a=_0xeec6[_0x2a0183];return _0x158c3a;};'use strict';var MailInteractionEvents=require(_0x6eec('0x0'));var events=[_0x6eec('0x1'),_0x6eec('0x2'),'update'];function createListener(_0x5d6acb,_0x36abf7){return function(_0x38ad22){_0x36abf7[_0x6eec('0x3')](_0x5d6acb,_0x38ad22);};}function removeListener(_0xcdec44,_0x5b66cc){return function(){MailInteractionEvents[_0x6eec('0x4')](_0xcdec44,_0x5b66cc);};}exports[_0x6eec('0x5')]=function(_0x4490b7){for(var _0x372baf=0x0,_0x5840ca=events[_0x6eec('0x6')];_0x372baf<_0x5840ca;_0x372baf++){var _0x46a3c7=events[_0x372baf];var _0x17b7e8=createListener(_0x6eec('0x7')+_0x46a3c7,_0x4490b7);MailInteractionEvents['on'](_0x46a3c7,_0x17b7e8);}};