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 _0x99fb=['length','./mailAccount.events','remove','update','register'];(function(_0x5c3433,_0x133dd4){var _0x3bffdb=function(_0x576d7e){while(--_0x576d7e){_0x5c3433['push'](_0x5c3433['shift']());}};_0x3bffdb(++_0x133dd4);}(_0x99fb,0x92));var _0xb99f=function(_0x2621e9,_0x325e12){_0x2621e9=_0x2621e9-0x0;var _0x383225=_0x99fb[_0x2621e9];return _0x383225;};'use strict';var MailAccountEvents=require(_0xb99f('0x0'));var events=['save',_0xb99f('0x1'),_0xb99f('0x2')];function createListener(_0x4345f0,_0x18e6ad){return function(_0x2899eb){_0x18e6ad['emit'](_0x4345f0,_0x2899eb);};}function removeListener(_0x23a1ef,_0x3e0d06){return function(){MailAccountEvents['removeListener'](_0x23a1ef,_0x3e0d06);};}exports[_0xb99f('0x3')]=function(_0x1f4c29){for(var _0xd9eac9=0x0,_0x5f264e=events[_0xb99f('0x4')];_0xd9eac9<_0x5f264e;_0xd9eac9++){var _0x479d65=events[_0xd9eac9];var _0xe317ff=createListener('mailAccount:'+_0x479d65,_0x1f4c29);MailAccountEvents['on'](_0x479d65,_0xe317ff);}};