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 _0x5d72=['remove','removeListener','register','length','mailAccount:','./mailAccount.events','save'];(function(_0x3e29df,_0x42fdf8){var _0x3e3ba9=function(_0x47ccb0){while(--_0x47ccb0){_0x3e29df['push'](_0x3e29df['shift']());}};_0x3e3ba9(++_0x42fdf8);}(_0x5d72,0x7c));var _0x25d7=function(_0x2649e2,_0x3e73be){_0x2649e2=_0x2649e2-0x0;var _0x4797d4=_0x5d72[_0x2649e2];return _0x4797d4;};'use strict';var MailAccountEvents=require(_0x25d7('0x0'));var events=[_0x25d7('0x1'),_0x25d7('0x2'),'update'];function createListener(_0x2bf814,_0x5e716b){return function(_0x2af5a9){_0x5e716b['emit'](_0x2bf814,_0x2af5a9);};}function removeListener(_0x512ace,_0x52b98b){return function(){MailAccountEvents[_0x25d7('0x3')](_0x512ace,_0x52b98b);};}exports[_0x25d7('0x4')]=function(_0x29619f){for(var _0x1034ab=0x0,_0x14aa9f=events[_0x25d7('0x5')];_0x1034ab<_0x14aa9f;_0x1034ab++){var _0x5e1f69=events[_0x1034ab];var _0x26ae21=createListener(_0x25d7('0x6')+_0x5e1f69,_0x29619f);MailAccountEvents['on'](_0x5e1f69,_0x26ae21);}};