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 _0x8317=['removeListener','register','length','mailInteraction:','./mailInteraction.events','save','remove','update','emit'];(function(_0x4d192a,_0x35c77b){var _0x3b8a4=function(_0xd5bea8){while(--_0xd5bea8){_0x4d192a['push'](_0x4d192a['shift']());}};_0x3b8a4(++_0x35c77b);}(_0x8317,0xee));var _0x7831=function(_0x309cc0,_0x351c15){_0x309cc0=_0x309cc0-0x0;var _0x11dfbc=_0x8317[_0x309cc0];return _0x11dfbc;};'use strict';var MailInteractionEvents=require(_0x7831('0x0'));var events=[_0x7831('0x1'),_0x7831('0x2'),_0x7831('0x3')];function createListener(_0x471bfe,_0x531f23){return function(_0x4d6238){_0x531f23[_0x7831('0x4')](_0x471bfe,_0x4d6238);};}function removeListener(_0x4ede61,_0xad6392){return function(){MailInteractionEvents[_0x7831('0x5')](_0x4ede61,_0xad6392);};}exports[_0x7831('0x6')]=function(_0x30f119){for(var _0x275362=0x0,_0x4a9b26=events[_0x7831('0x7')];_0x275362<_0x4a9b26;_0x275362++){var _0x257000=events[_0x275362];var _0x57ab82=createListener(_0x7831('0x8')+_0x257000,_0x30f119);MailInteractionEvents['on'](_0x257000,_0x57ab82);}};