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 _0xccc8=['update','emit','removeListener','register','length','mailAccount:','./mailAccount.events','remove'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0xccc8,0x66));var _0x8ccc=function(_0xbaeba7,_0x578dfa){_0xbaeba7=_0xbaeba7-0x0;var _0x4b42e7=_0xccc8[_0xbaeba7];return _0x4b42e7;};'use strict';var MailAccountEvents=require(_0x8ccc('0x0'));var events=['save',_0x8ccc('0x1'),_0x8ccc('0x2')];function createListener(_0xaec1d7,_0x5a503c){return function(_0x5101c1){_0x5a503c[_0x8ccc('0x3')](_0xaec1d7,_0x5101c1);};}function removeListener(_0x55958c,_0xaf9792){return function(){MailAccountEvents[_0x8ccc('0x4')](_0x55958c,_0xaf9792);};}exports[_0x8ccc('0x5')]=function(_0x305340){for(var _0x4f8de5=0x0,_0x609b23=events[_0x8ccc('0x6')];_0x4f8de5<_0x609b23;_0x4f8de5++){var _0x42b2db=events[_0x4f8de5];var _0x5444ad=createListener(_0x8ccc('0x7')+_0x42b2db,_0x305340);MailAccountEvents['on'](_0x42b2db,_0x5444ad);}};