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 _0xc911=['register','length','mailAccount:','./mailAccount.events','removeListener'];(function(_0x4a3898,_0x4c9853){var _0x25ceb0=function(_0x528b6d){while(--_0x528b6d){_0x4a3898['push'](_0x4a3898['shift']());}};_0x25ceb0(++_0x4c9853);}(_0xc911,0x1c0));var _0x1c91=function(_0x3acc1b,_0x59da12){_0x3acc1b=_0x3acc1b-0x0;var _0x5e9885=_0xc911[_0x3acc1b];return _0x5e9885;};'use strict';var MailAccountEvents=require(_0x1c91('0x0'));var events=['save','remove','update'];function createListener(_0x236efb,_0x3b4503){return function(_0xd3425){_0x3b4503['emit'](_0x236efb,_0xd3425);};}function removeListener(_0x1cad53,_0x2fe3af){return function(){MailAccountEvents[_0x1c91('0x1')](_0x1cad53,_0x2fe3af);};}exports[_0x1c91('0x2')]=function(_0x5261cc){for(var _0x14d26f=0x0,_0x4e82da=events[_0x1c91('0x3')];_0x14d26f<_0x4e82da;_0x14d26f++){var _0x38a86e=events[_0x14d26f];var _0x436080=createListener(_0x1c91('0x4')+_0x38a86e,_0x5261cc);MailAccountEvents['on'](_0x38a86e,_0x436080);}};