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 _0xf50b=['removeListener','register','length','mailAccount:','./mailAccount.events','save','update'];(function(_0x126558,_0x143c9a){var _0x1f6d14=function(_0x2b0eea){while(--_0x2b0eea){_0x126558['push'](_0x126558['shift']());}};_0x1f6d14(++_0x143c9a);}(_0xf50b,0xc8));var _0xbf50=function(_0x2e72dd,_0x175173){_0x2e72dd=_0x2e72dd-0x0;var _0x59b10e=_0xf50b[_0x2e72dd];return _0x59b10e;};'use strict';var MailAccountEvents=require(_0xbf50('0x0'));var events=[_0xbf50('0x1'),'remove',_0xbf50('0x2')];function createListener(_0x18c2f1,_0x3336bb){return function(_0x443bf8){_0x3336bb['emit'](_0x18c2f1,_0x443bf8);};}function removeListener(_0x32217d,_0x4f5ba8){return function(){MailAccountEvents[_0xbf50('0x3')](_0x32217d,_0x4f5ba8);};}exports[_0xbf50('0x4')]=function(_0x1ecb62){for(var _0x117cc8=0x0,_0x3dd305=events[_0xbf50('0x5')];_0x117cc8<_0x3dd305;_0x117cc8++){var _0xce290=events[_0x117cc8];var _0x497c4c=createListener(_0xbf50('0x6')+_0xce290,_0x1ecb62);MailAccountEvents['on'](_0xce290,_0x497c4c);}};