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 _0x4e63=['emit','removeListener','register','mailAccount:','save'];(function(_0x193567,_0xef773f){var _0x395f0f=function(_0x840a19){while(--_0x840a19){_0x193567['push'](_0x193567['shift']());}};_0x395f0f(++_0xef773f);}(_0x4e63,0x1ad));var _0x34e6=function(_0x49af6c,_0x5b83db){_0x49af6c=_0x49af6c-0x0;var _0x29d28c=_0x4e63[_0x49af6c];return _0x29d28c;};'use strict';var MailAccountEvents=require('./mailAccount.events');var events=[_0x34e6('0x0'),'remove','update'];function createListener(_0x27f06d,_0x5c2e4d){return function(_0x5abb4c){_0x5c2e4d[_0x34e6('0x1')](_0x27f06d,_0x5abb4c);};}function removeListener(_0x227fa0,_0x4c3fc0){return function(){MailAccountEvents[_0x34e6('0x2')](_0x227fa0,_0x4c3fc0);};}exports[_0x34e6('0x3')]=function(_0x119f25){for(var _0x13077f=0x0,_0x13b449=events['length'];_0x13077f<_0x13b449;_0x13077f++){var _0x25dce7=events[_0x13077f];var _0x1a04f8=createListener(_0x34e6('0x4')+_0x25dce7,_0x119f25);MailAccountEvents['on'](_0x25dce7,_0x1a04f8);}};