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 _0xd7ab=['remove','update','removeListener','length','mailAccount:','./mailAccount.events','save'];(function(_0x2c146b,_0x39eee8){var _0x5e808c=function(_0x5a702d){while(--_0x5a702d){_0x2c146b['push'](_0x2c146b['shift']());}};_0x5e808c(++_0x39eee8);}(_0xd7ab,0x14e));var _0xbd7a=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0xd7ab[_0x3947c9];return _0x2e7871;};'use strict';var MailAccountEvents=require(_0xbd7a('0x0'));var events=[_0xbd7a('0x1'),_0xbd7a('0x2'),_0xbd7a('0x3')];function createListener(_0x687a21,_0x5d2c5a){return function(_0xa417ef){_0x5d2c5a['emit'](_0x687a21,_0xa417ef);};}function removeListener(_0x5104f2,_0x5a7dc8){return function(){MailAccountEvents[_0xbd7a('0x4')](_0x5104f2,_0x5a7dc8);};}exports['register']=function(_0x480cb0){for(var _0x458cda=0x0,_0x331bcb=events[_0xbd7a('0x5')];_0x458cda<_0x331bcb;_0x458cda++){var _0x5ccda4=events[_0x458cda];var _0x3eb09d=createListener(_0xbd7a('0x6')+_0x5ccda4,_0x480cb0);MailAccountEvents['on'](_0x5ccda4,_0x3eb09d);}};