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 _0xf6b7=['emit','length','mailInteraction:','./mailInteraction.events','remove','update'];(function(_0x30e9d2,_0x19f03b){var _0x5dffcb=function(_0x9cfcd0){while(--_0x9cfcd0){_0x30e9d2['push'](_0x30e9d2['shift']());}};_0x5dffcb(++_0x19f03b);}(_0xf6b7,0xbd));var _0x7f6b=function(_0x347298,_0x2146e0){_0x347298=_0x347298-0x0;var _0x33a370=_0xf6b7[_0x347298];return _0x33a370;};'use strict';var MailInteractionEvents=require(_0x7f6b('0x0'));var events=['save',_0x7f6b('0x1'),_0x7f6b('0x2')];function createListener(_0x20a9b3,_0x297bbc){return function(_0x50c43f){_0x297bbc[_0x7f6b('0x3')](_0x20a9b3,_0x50c43f);};}function removeListener(_0x4fd88a,_0x982cea){return function(){MailInteractionEvents['removeListener'](_0x4fd88a,_0x982cea);};}exports['register']=function(_0x295d42){for(var _0x516480=0x0,_0xfef7cf=events[_0x7f6b('0x4')];_0x516480<_0xfef7cf;_0x516480++){var _0x314161=events[_0x516480];var _0x1ff85c=createListener(_0x7f6b('0x5')+_0x314161,_0x295d42);MailInteractionEvents['on'](_0x314161,_0x1ff85c);}};