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 _0x5d2f=['register','length','mailAccount:','./mailAccount.events','remove','update','emit'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0x5d2f,0x17d));var _0xf5d2=function(_0x1a6659,_0xcc8b76){_0x1a6659=_0x1a6659-0x0;var _0x53aeb8=_0x5d2f[_0x1a6659];return _0x53aeb8;};'use strict';var MailAccountEvents=require(_0xf5d2('0x0'));var events=['save',_0xf5d2('0x1'),_0xf5d2('0x2')];function createListener(_0x8ea6b4,_0x43b6f6){return function(_0x5315dd){_0x43b6f6[_0xf5d2('0x3')](_0x8ea6b4,_0x5315dd);};}function removeListener(_0x28e2bc,_0x4be8b4){return function(){MailAccountEvents['removeListener'](_0x28e2bc,_0x4be8b4);};}exports[_0xf5d2('0x4')]=function(_0x5dbbaa){for(var _0x3095ec=0x0,_0x39a4bd=events[_0xf5d2('0x5')];_0x3095ec<_0x39a4bd;_0x3095ec++){var _0x501b04=events[_0x3095ec];var _0x2268a9=createListener(_0xf5d2('0x6')+_0x501b04,_0x5dbbaa);MailAccountEvents['on'](_0x501b04,_0x2268a9);}};