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 _0x3280=['save','remove','update','removeListener','register','length','mailInteraction:','./mailInteraction.events'];(function(_0xdcb582,_0x2fb7ed){var _0x82ffba=function(_0x1fbfd4){while(--_0x1fbfd4){_0xdcb582['push'](_0xdcb582['shift']());}};_0x82ffba(++_0x2fb7ed);}(_0x3280,0x107));var _0x0328=function(_0x36436d,_0x20292c){_0x36436d=_0x36436d-0x0;var _0x34615d=_0x3280[_0x36436d];return _0x34615d;};'use strict';var MailInteractionEvents=require(_0x0328('0x0'));var events=[_0x0328('0x1'),_0x0328('0x2'),_0x0328('0x3')];function createListener(_0x19ef2d,_0x1abd6c){return function(_0x5d3d3d){_0x1abd6c['emit'](_0x19ef2d,_0x5d3d3d);};}function removeListener(_0x3d1c99,_0x297045){return function(){MailInteractionEvents[_0x0328('0x4')](_0x3d1c99,_0x297045);};}exports[_0x0328('0x5')]=function(_0x17c4e0){for(var _0x41a849=0x0,_0x274cc1=events[_0x0328('0x6')];_0x41a849<_0x274cc1;_0x41a849++){var _0x29ac9b=events[_0x41a849];var _0x50cb92=createListener(_0x0328('0x7')+_0x29ac9b,_0x17c4e0);MailInteractionEvents['on'](_0x29ac9b,_0x50cb92);}};