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 _0x9deb=['update','emit','removeListener','register','length','./mailAccount.events','save','remove'];(function(_0x396466,_0xe9857b){var _0x5e9ab4=function(_0x362f66){while(--_0x362f66){_0x396466['push'](_0x396466['shift']());}};_0x5e9ab4(++_0xe9857b);}(_0x9deb,0x105));var _0xb9de=function(_0x4d4bdd,_0x38b59d){_0x4d4bdd=_0x4d4bdd-0x0;var _0x5a9621=_0x9deb[_0x4d4bdd];return _0x5a9621;};'use strict';var MailAccountEvents=require(_0xb9de('0x0'));var events=[_0xb9de('0x1'),_0xb9de('0x2'),_0xb9de('0x3')];function createListener(_0x2b0736,_0x525e17){return function(_0x9071e1){_0x525e17[_0xb9de('0x4')](_0x2b0736,_0x9071e1);};}function removeListener(_0x33b85e,_0x41e399){return function(){MailAccountEvents[_0xb9de('0x5')](_0x33b85e,_0x41e399);};}exports[_0xb9de('0x6')]=function(_0x319649){for(var _0x23a527=0x0,_0x1433b8=events[_0xb9de('0x7')];_0x23a527<_0x1433b8;_0x23a527++){var _0x4c5842=events[_0x23a527];var _0x55fb1e=createListener('mailAccount:'+_0x4c5842,_0x319649);MailAccountEvents['on'](_0x4c5842,_0x55fb1e);}};