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 _0x49df=['emit','removeListener','register','length','mailAccount:','remove','update'];(function(_0x49471c,_0x4643b5){var _0x39836b=function(_0x2b2080){while(--_0x2b2080){_0x49471c['push'](_0x49471c['shift']());}};_0x39836b(++_0x4643b5);}(_0x49df,0xad));var _0xf49d=function(_0x4ec216,_0xa8ac4d){_0x4ec216=_0x4ec216-0x0;var _0x24d4d5=_0x49df[_0x4ec216];return _0x24d4d5;};'use strict';var MailAccountEvents=require('./mailAccount.events');var events=['save',_0xf49d('0x0'),_0xf49d('0x1')];function createListener(_0x4e297,_0x21eb98){return function(_0x3d07cf){_0x21eb98[_0xf49d('0x2')](_0x4e297,_0x3d07cf);};}function removeListener(_0x44b37e,_0x59cb9d){return function(){MailAccountEvents[_0xf49d('0x3')](_0x44b37e,_0x59cb9d);};}exports[_0xf49d('0x4')]=function(_0x325c19){for(var _0xca1090=0x0,_0x1aaf37=events[_0xf49d('0x5')];_0xca1090<_0x1aaf37;_0xca1090++){var _0x4e8b5e=events[_0xca1090];var _0xadfde5=createListener(_0xf49d('0x6')+_0x4e8b5e,_0x325c19);MailAccountEvents['on'](_0x4e8b5e,_0xadfde5);}};