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 _0xed11=['register','length','mailAccount:','emit','removeListener'];(function(_0xb813c0,_0x33d406){var _0x15bf17=function(_0x13d827){while(--_0x13d827){_0xb813c0['push'](_0xb813c0['shift']());}};_0x15bf17(++_0x33d406);}(_0xed11,0x107));var _0x1ed1=function(_0x1beef3,_0x57c4b8){_0x1beef3=_0x1beef3-0x0;var _0x5af964=_0xed11[_0x1beef3];return _0x5af964;};'use strict';var MailAccountEvents=require('./mailAccount.events');var events=['save','remove','update'];function createListener(_0x504f3d,_0x207153){return function(_0x37d7f0){_0x207153[_0x1ed1('0x0')](_0x504f3d,_0x37d7f0);};}function removeListener(_0x428305,_0x4f2eb3){return function(){MailAccountEvents[_0x1ed1('0x1')](_0x428305,_0x4f2eb3);};}exports[_0x1ed1('0x2')]=function(_0x31007f){for(var _0x5e56af=0x0,_0x2d61f7=events[_0x1ed1('0x3')];_0x5e56af<_0x2d61f7;_0x5e56af++){var _0x45749a=events[_0x5e56af];var _0x2ccb55=createListener(_0x1ed1('0x4')+_0x45749a,_0x31007f);MailAccountEvents['on'](_0x45749a,_0x2ccb55);}};