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 _0xe1d3=['update','length','mailAccount:','./mailAccount.events','save','remove'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xe1d3,0x159));var _0x3e1d=function(_0x36248e,_0x38403c){_0x36248e=_0x36248e-0x0;var _0xabd37=_0xe1d3[_0x36248e];return _0xabd37;};'use strict';var MailAccountEvents=require(_0x3e1d('0x0'));var events=[_0x3e1d('0x1'),_0x3e1d('0x2'),_0x3e1d('0x3')];function createListener(_0x3a4ea1,_0x5ecabe){return function(_0x43f46e){_0x5ecabe['emit'](_0x3a4ea1,_0x43f46e);};}function removeListener(_0x23f59b,_0x38df15){return function(){MailAccountEvents['removeListener'](_0x23f59b,_0x38df15);};}exports['register']=function(_0x4594cf){for(var _0x44d676=0x0,_0x2caae6=events[_0x3e1d('0x4')];_0x44d676<_0x2caae6;_0x44d676++){var _0x2b5c34=events[_0x44d676];var _0x4bf63b=createListener(_0x3e1d('0x5')+_0x2b5c34,_0x4594cf);MailAccountEvents['on'](_0x2b5c34,_0x4bf63b);}};