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 _0xf8bb=['mailAccount:','./mailAccount.events','save','remove','emit','removeListener','register','length'];(function(_0x2a1dd1,_0x3794df){var _0x132c45=function(_0x42b666){while(--_0x42b666){_0x2a1dd1['push'](_0x2a1dd1['shift']());}};_0x132c45(++_0x3794df);}(_0xf8bb,0x111));var _0xbf8b=function(_0x575d12,_0x174f37){_0x575d12=_0x575d12-0x0;var _0x10cc4b=_0xf8bb[_0x575d12];return _0x10cc4b;};'use strict';var MailAccountEvents=require(_0xbf8b('0x0'));var events=[_0xbf8b('0x1'),_0xbf8b('0x2'),'update'];function createListener(_0x3b85fe,_0x27af0c){return function(_0x2d4a12){_0x27af0c[_0xbf8b('0x3')](_0x3b85fe,_0x2d4a12);};}function removeListener(_0x1d5006,_0x1a0b38){return function(){MailAccountEvents[_0xbf8b('0x4')](_0x1d5006,_0x1a0b38);};}exports[_0xbf8b('0x5')]=function(_0x441686){for(var _0x8d5666=0x0,_0x3b5f9e=events[_0xbf8b('0x6')];_0x8d5666<_0x3b5f9e;_0x8d5666++){var _0xd17f35=events[_0x8d5666];var _0x4b554f=createListener(_0xbf8b('0x7')+_0xd17f35,_0x441686);MailAccountEvents['on'](_0xd17f35,_0x4b554f);}};