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 _0xe5ff=['length','./mailAccount.events','save','remove','update','emit','register'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0xe5ff,0x197));var _0xfe5f=function(_0x2fb8a3,_0xd62303){_0x2fb8a3=_0x2fb8a3-0x0;var _0x132404=_0xe5ff[_0x2fb8a3];return _0x132404;};'use strict';var MailAccountEvents=require(_0xfe5f('0x0'));var events=[_0xfe5f('0x1'),_0xfe5f('0x2'),_0xfe5f('0x3')];function createListener(_0x19cbd0,_0x18967f){return function(_0x40959b){_0x18967f[_0xfe5f('0x4')](_0x19cbd0,_0x40959b);};}function removeListener(_0xb58880,_0x24b61c){return function(){MailAccountEvents['removeListener'](_0xb58880,_0x24b61c);};}exports[_0xfe5f('0x5')]=function(_0x36a58e){for(var _0x439ab5=0x0,_0x5db4ea=events[_0xfe5f('0x6')];_0x439ab5<_0x5db4ea;_0x439ab5++){var _0x5bef39=events[_0x439ab5];var _0x196127=createListener('mailAccount:'+_0x5bef39,_0x36a58e);MailAccountEvents['on'](_0x5bef39,_0x196127);}};