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 _0xffe0=['remove','update','emit','register','length','./mailInteraction.events','save'];(function(_0x3f560e,_0x289aa8){var _0x5bf213=function(_0xcc2f71){while(--_0xcc2f71){_0x3f560e['push'](_0x3f560e['shift']());}};_0x5bf213(++_0x289aa8);}(_0xffe0,0xf3));var _0x0ffe=function(_0x2a43b5,_0x1182fa){_0x2a43b5=_0x2a43b5-0x0;var _0x4d29ef=_0xffe0[_0x2a43b5];return _0x4d29ef;};'use strict';var MailInteractionEvents=require(_0x0ffe('0x0'));var events=[_0x0ffe('0x1'),_0x0ffe('0x2'),_0x0ffe('0x3')];function createListener(_0x5316fb,_0xc8cbb1){return function(_0x201cc8){_0xc8cbb1[_0x0ffe('0x4')](_0x5316fb,_0x201cc8);};}function removeListener(_0x5da021,_0x12efa3){return function(){MailInteractionEvents['removeListener'](_0x5da021,_0x12efa3);};}exports[_0x0ffe('0x5')]=function(_0x1b19c8){for(var _0xa87a2e=0x0,_0x5d2609=events[_0x0ffe('0x6')];_0xa87a2e<_0x5d2609;_0xa87a2e++){var _0x578081=events[_0xa87a2e];var _0x1a40be=createListener('mailInteraction:'+_0x578081,_0x1b19c8);MailInteractionEvents['on'](_0x578081,_0x1a40be);}};