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 _0x2758=['update','register','length','./mailInteraction.events','save','remove'];(function(_0x511159,_0x882b97){var _0x3b01ff=function(_0x41b265){while(--_0x41b265){_0x511159['push'](_0x511159['shift']());}};_0x3b01ff(++_0x882b97);}(_0x2758,0x1bf));var _0x8275=function(_0x3b5587,_0x22a6f4){_0x3b5587=_0x3b5587-0x0;var _0x3fbb62=_0x2758[_0x3b5587];return _0x3fbb62;};'use strict';var MailInteractionEvents=require(_0x8275('0x0'));var events=[_0x8275('0x1'),_0x8275('0x2'),_0x8275('0x3')];function createListener(_0x56f85c,_0x4cace3){return function(_0x3f69e3){_0x4cace3['emit'](_0x56f85c,_0x3f69e3);};}function removeListener(_0x235838,_0x4cecd4){return function(){MailInteractionEvents['removeListener'](_0x235838,_0x4cecd4);};}exports[_0x8275('0x4')]=function(_0x10a061){for(var _0x34d6f4=0x0,_0x2146b3=events[_0x8275('0x5')];_0x34d6f4<_0x2146b3;_0x34d6f4++){var _0x17bf4c=events[_0x34d6f4];var _0x35b457=createListener('mailInteraction:'+_0x17bf4c,_0x10a061);MailInteractionEvents['on'](_0x17bf4c,_0x35b457);}};