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 _0x6ce5=['length','./mailInteraction.events','save','remove','register'];(function(_0x53b93b,_0x1bfab1){var _0x485761=function(_0x41592e){while(--_0x41592e){_0x53b93b['push'](_0x53b93b['shift']());}};_0x485761(++_0x1bfab1);}(_0x6ce5,0x92));var _0x56ce=function(_0x476922,_0xfc63d9){_0x476922=_0x476922-0x0;var _0x322dba=_0x6ce5[_0x476922];return _0x322dba;};'use strict';var MailInteractionEvents=require(_0x56ce('0x0'));var events=[_0x56ce('0x1'),_0x56ce('0x2'),'update'];function createListener(_0x34d03c,_0xd4a889){return function(_0xc84aca){_0xd4a889['emit'](_0x34d03c,_0xc84aca);};}function removeListener(_0x3466a8,_0x37be1b){return function(){MailInteractionEvents['removeListener'](_0x3466a8,_0x37be1b);};}exports[_0x56ce('0x3')]=function(_0x470c12){for(var _0x5392f4=0x0,_0x5d67b7=events[_0x56ce('0x4')];_0x5392f4<_0x5d67b7;_0x5392f4++){var _0x457e42=events[_0x5392f4];var _0x347bf2=createListener('mailInteraction:'+_0x457e42,_0x470c12);MailInteractionEvents['on'](_0x457e42,_0x347bf2);}};