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 _0x291f=['remove','emit','register','length','mailAccount:','./mailAccount.events','save'];(function(_0x2e6dbf,_0x57dd06){var _0x2680e5=function(_0x4018f4){while(--_0x4018f4){_0x2e6dbf['push'](_0x2e6dbf['shift']());}};_0x2680e5(++_0x57dd06);}(_0x291f,0xc9));var _0xf291=function(_0x1a849e,_0x558a1a){_0x1a849e=_0x1a849e-0x0;var _0x18e1bd=_0x291f[_0x1a849e];return _0x18e1bd;};'use strict';var MailAccountEvents=require(_0xf291('0x0'));var events=[_0xf291('0x1'),_0xf291('0x2'),'update'];function createListener(_0xc257f5,_0x1fd9a5){return function(_0x39bdb1){_0x1fd9a5[_0xf291('0x3')](_0xc257f5,_0x39bdb1);};}function removeListener(_0x2119c2,_0x2a120c){return function(){MailAccountEvents['removeListener'](_0x2119c2,_0x2a120c);};}exports[_0xf291('0x4')]=function(_0x1b6423){for(var _0x59b180=0x0,_0x48ab4e=events[_0xf291('0x5')];_0x59b180<_0x48ab4e;_0x59b180++){var _0x51fcf6=events[_0x59b180];var _0x22cfa4=createListener(_0xf291('0x6')+_0x51fcf6,_0x1b6423);MailAccountEvents['on'](_0x51fcf6,_0x22cfa4);}};