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 _0xe3b7=['removeListener','register','length','mailAccount:','./mailAccount.events','save','remove','update','emit'];(function(_0x3fd6cd,_0x5b5f87){var _0x2d344e=function(_0x8e0d61){while(--_0x8e0d61){_0x3fd6cd['push'](_0x3fd6cd['shift']());}};_0x2d344e(++_0x5b5f87);}(_0xe3b7,0x17e));var _0x7e3b=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0xe3b7[_0x167cc1];return _0x10bc4b;};'use strict';var MailAccountEvents=require(_0x7e3b('0x0'));var events=[_0x7e3b('0x1'),_0x7e3b('0x2'),_0x7e3b('0x3')];function createListener(_0x445e59,_0x4e58b1){return function(_0x443497){_0x4e58b1[_0x7e3b('0x4')](_0x445e59,_0x443497);};}function removeListener(_0x20ed10,_0x20ffa3){return function(){MailAccountEvents[_0x7e3b('0x5')](_0x20ed10,_0x20ffa3);};}exports[_0x7e3b('0x6')]=function(_0x6cf2c6){for(var _0x2cfa86=0x0,_0xacfb06=events[_0x7e3b('0x7')];_0x2cfa86<_0xacfb06;_0x2cfa86++){var _0x332206=events[_0x2cfa86];var _0x324ebc=createListener(_0x7e3b('0x8')+_0x332206,_0x6cf2c6);MailAccountEvents['on'](_0x332206,_0x324ebc);}};