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 _0xc0bf=['save','remove','update','emit','removeListener','register','length'];(function(_0x5850ee,_0x4a7317){var _0x1e97fd=function(_0x418de9){while(--_0x418de9){_0x5850ee['push'](_0x5850ee['shift']());}};_0x1e97fd(++_0x4a7317);}(_0xc0bf,0x8c));var _0xfc0b=function(_0x353f6e,_0x5e38a7){_0x353f6e=_0x353f6e-0x0;var _0x30aa1d=_0xc0bf[_0x353f6e];return _0x30aa1d;};'use strict';var MailAccountEvents=require('./mailAccount.events');var events=[_0xfc0b('0x0'),_0xfc0b('0x1'),_0xfc0b('0x2')];function createListener(_0x12e8c2,_0x47f0cb){return function(_0x5e24fb){_0x47f0cb[_0xfc0b('0x3')](_0x12e8c2,_0x5e24fb);};}function removeListener(_0x2e3005,_0x3d6b66){return function(){MailAccountEvents[_0xfc0b('0x4')](_0x2e3005,_0x3d6b66);};}exports[_0xfc0b('0x5')]=function(_0x408af9){for(var _0x2761aa=0x0,_0x3c8ee5=events[_0xfc0b('0x6')];_0x2761aa<_0x3c8ee5;_0x2761aa++){var _0x2c41c0=events[_0x2761aa];var _0x4f3506=createListener('mailAccount:'+_0x2c41c0,_0x408af9);MailAccountEvents['on'](_0x2c41c0,_0x4f3506);}};