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 _0x7200=['emit','removeListener','register','mailAccount:','./mailAccount.events','remove'];(function(_0x2f8f01,_0x5dcd60){var _0x53091a=function(_0x2a81da){while(--_0x2a81da){_0x2f8f01['push'](_0x2f8f01['shift']());}};_0x53091a(++_0x5dcd60);}(_0x7200,0x1a8));var _0x0720=function(_0x7299bd,_0x543ab8){_0x7299bd=_0x7299bd-0x0;var _0x10052d=_0x7200[_0x7299bd];return _0x10052d;};'use strict';var MailAccountEvents=require(_0x0720('0x0'));var events=['save',_0x0720('0x1'),'update'];function createListener(_0x21296b,_0xe70aeb){return function(_0x240630){_0xe70aeb[_0x0720('0x2')](_0x21296b,_0x240630);};}function removeListener(_0x51fc7f,_0x358aa9){return function(){MailAccountEvents[_0x0720('0x3')](_0x51fc7f,_0x358aa9);};}exports[_0x0720('0x4')]=function(_0x18d9a4){for(var _0x2d006b=0x0,_0x322d9f=events['length'];_0x2d006b<_0x322d9f;_0x2d006b++){var _0x361507=events[_0x2d006b];var _0x3327c3=createListener(_0x0720('0x5')+_0x361507,_0x18d9a4);MailAccountEvents['on'](_0x361507,_0x3327c3);}};