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 _0x6026=['save','remove','update','emit','removeListener','length','mailAccount:','./mailAccount.events'];(function(_0x50c1dd,_0x42cf3d){var _0x49f65e=function(_0x289fca){while(--_0x289fca){_0x50c1dd['push'](_0x50c1dd['shift']());}};_0x49f65e(++_0x42cf3d);}(_0x6026,0x1bf));var _0x6602=function(_0x3a5712,_0x34bdd1){_0x3a5712=_0x3a5712-0x0;var _0x797efd=_0x6026[_0x3a5712];return _0x797efd;};'use strict';var MailAccountEvents=require(_0x6602('0x0'));var events=[_0x6602('0x1'),_0x6602('0x2'),_0x6602('0x3')];function createListener(_0x3de24c,_0x2fad57){return function(_0x20e2cb){_0x2fad57[_0x6602('0x4')](_0x3de24c,_0x20e2cb);};}function removeListener(_0x2886df,_0x2ce70f){return function(){MailAccountEvents[_0x6602('0x5')](_0x2886df,_0x2ce70f);};}exports['register']=function(_0x167fa2){for(var _0x265736=0x0,_0x180338=events[_0x6602('0x6')];_0x265736<_0x180338;_0x265736++){var _0x4ecbb2=events[_0x265736];var _0xbe2a27=createListener(_0x6602('0x7')+_0x4ecbb2,_0x167fa2);MailAccountEvents['on'](_0x4ecbb2,_0xbe2a27);}};