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 _0x4462=['mailInteraction:','./mailInteraction.events','update','removeListener','register','length'];(function(_0xaed7a3,_0x7921f1){var _0xeb81f3=function(_0x4095f3){while(--_0x4095f3){_0xaed7a3['push'](_0xaed7a3['shift']());}};_0xeb81f3(++_0x7921f1);}(_0x4462,0x1db));var _0x2446=function(_0x5ac1e5,_0x4b5012){_0x5ac1e5=_0x5ac1e5-0x0;var _0x1bccc6=_0x4462[_0x5ac1e5];return _0x1bccc6;};'use strict';var MailInteractionEvents=require(_0x2446('0x0'));var events=['save','remove',_0x2446('0x1')];function createListener(_0x1c1bfb,_0x2660dc){return function(_0x5f10f5){_0x2660dc['emit'](_0x1c1bfb,_0x5f10f5);};}function removeListener(_0x43d8d3,_0x41bb94){return function(){MailInteractionEvents[_0x2446('0x2')](_0x43d8d3,_0x41bb94);};}exports[_0x2446('0x3')]=function(_0x478a3d){for(var _0xf8d295=0x0,_0x234933=events[_0x2446('0x4')];_0xf8d295<_0x234933;_0xf8d295++){var _0xf0b61c=events[_0xf8d295];var _0x1609a4=createListener(_0x2446('0x5')+_0xf0b61c,_0x478a3d);MailInteractionEvents['on'](_0xf0b61c,_0x1609a4);}};