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 _0xc9ab=['emit','removeListener','register','length','mailAccount:','./mailAccount.events','save','remove'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0xc9ab,0x125));var _0xbc9a=function(_0x57ebf0,_0x5739bf){_0x57ebf0=_0x57ebf0-0x0;var _0x135aa9=_0xc9ab[_0x57ebf0];return _0x135aa9;};'use strict';var MailAccountEvents=require(_0xbc9a('0x0'));var events=[_0xbc9a('0x1'),_0xbc9a('0x2'),'update'];function createListener(_0x503c08,_0x48a781){return function(_0x278d63){_0x48a781[_0xbc9a('0x3')](_0x503c08,_0x278d63);};}function removeListener(_0x23d40c,_0x33e557){return function(){MailAccountEvents[_0xbc9a('0x4')](_0x23d40c,_0x33e557);};}exports[_0xbc9a('0x5')]=function(_0x5478ec){for(var _0x4745ed=0x0,_0x477055=events[_0xbc9a('0x6')];_0x4745ed<_0x477055;_0x4745ed++){var _0x26f5f4=events[_0x4745ed];var _0x14c87a=createListener(_0xbc9a('0x7')+_0x26f5f4,_0x5478ec);MailAccountEvents['on'](_0x26f5f4,_0x14c87a);}};