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 _0xedf2=['save','remove','update','mailAccount:'];(function(_0x586cd8,_0x1a13a3){var _0xb007f0=function(_0x21d30c){while(--_0x21d30c){_0x586cd8['push'](_0x586cd8['shift']());}};_0xb007f0(++_0x1a13a3);}(_0xedf2,0x1ac));var _0x2edf=function(_0x4faf15,_0x367d4e){_0x4faf15=_0x4faf15-0x0;var _0x16c0b5=_0xedf2[_0x4faf15];return _0x16c0b5;};'use strict';var MailAccountEvents=require('./mailAccount.events');var events=[_0x2edf('0x0'),_0x2edf('0x1'),_0x2edf('0x2')];function createListener(_0x4b454e,_0xce87f7){return function(_0x1ad605){_0xce87f7['emit'](_0x4b454e,_0x1ad605);};}function removeListener(_0x43611a,_0x2c1515){return function(){MailAccountEvents['removeListener'](_0x43611a,_0x2c1515);};}exports['register']=function(_0x3cfc52){for(var _0x3601aa=0x0,_0x5af8d9=events['length'];_0x3601aa<_0x5af8d9;_0x3601aa++){var _0x2b7b21=events[_0x3601aa];var _0x498c41=createListener(_0x2edf('0x3')+_0x2b7b21,_0x3cfc52);MailAccountEvents['on'](_0x2b7b21,_0x498c41);}};