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 _0x0b86=['mailInteraction:','./mailInteraction.events','update','emit','length'];(function(_0x473463,_0x21da73){var _0x42f406=function(_0x34a5be){while(--_0x34a5be){_0x473463['push'](_0x473463['shift']());}};_0x42f406(++_0x21da73);}(_0x0b86,0x1f0));var _0x60b8=function(_0x5d1ae8,_0x1cfb7b){_0x5d1ae8=_0x5d1ae8-0x0;var _0x2e3995=_0x0b86[_0x5d1ae8];return _0x2e3995;};'use strict';var MailInteractionEvents=require(_0x60b8('0x0'));var events=['save','remove',_0x60b8('0x1')];function createListener(_0x3e5711,_0x1c72cd){return function(_0x43a990){_0x1c72cd[_0x60b8('0x2')](_0x3e5711,_0x43a990);};}function removeListener(_0x52a6f6,_0x3f98b6){return function(){MailInteractionEvents['removeListener'](_0x52a6f6,_0x3f98b6);};}exports['register']=function(_0x5eaf33){for(var _0x3072da=0x0,_0x445290=events[_0x60b8('0x3')];_0x3072da<_0x445290;_0x3072da++){var _0x6c7b93=events[_0x3072da];var _0x551d40=createListener(_0x60b8('0x4')+_0x6c7b93,_0x5eaf33);MailInteractionEvents['on'](_0x6c7b93,_0x551d40);}};