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 _0x5ea2=['emit','length','mailAccount:','./mailAccount.events','update'];(function(_0x5d0bec,_0x608fd9){var _0x295116=function(_0x2abfb2){while(--_0x2abfb2){_0x5d0bec['push'](_0x5d0bec['shift']());}};_0x295116(++_0x608fd9);}(_0x5ea2,0x99));var _0x25ea=function(_0x141300,_0x5b7c34){_0x141300=_0x141300-0x0;var _0x57c606=_0x5ea2[_0x141300];return _0x57c606;};'use strict';var MailAccountEvents=require(_0x25ea('0x0'));var events=['save','remove',_0x25ea('0x1')];function createListener(_0x1e98ea,_0x2d4927){return function(_0x3cafcb){_0x2d4927[_0x25ea('0x2')](_0x1e98ea,_0x3cafcb);};}function removeListener(_0x54a252,_0x37e956){return function(){MailAccountEvents['removeListener'](_0x54a252,_0x37e956);};}exports['register']=function(_0x3e32e9){for(var _0x310a27=0x0,_0x3ca48f=events[_0x25ea('0x3')];_0x310a27<_0x3ca48f;_0x310a27++){var _0x274f48=events[_0x310a27];var _0x254d54=createListener(_0x25ea('0x4')+_0x274f48,_0x3e32e9);MailAccountEvents['on'](_0x274f48,_0x254d54);}};