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 _0xc70a=['mailAccount:','save','emit','removeListener','register'];(function(_0x549503,_0x25a3f4){var _0x59a3d4=function(_0x43a504){while(--_0x43a504){_0x549503['push'](_0x549503['shift']());}};_0x59a3d4(++_0x25a3f4);}(_0xc70a,0x17d));var _0xac70=function(_0x59ed73,_0x4fe346){_0x59ed73=_0x59ed73-0x0;var _0x270805=_0xc70a[_0x59ed73];return _0x270805;};'use strict';var MailAccountEvents=require('./mailAccount.events');var events=[_0xac70('0x0'),'remove','update'];function createListener(_0x4ff555,_0x4256e2){return function(_0x133027){_0x4256e2[_0xac70('0x1')](_0x4ff555,_0x133027);};}function removeListener(_0x2772b2,_0x13c632){return function(){MailAccountEvents[_0xac70('0x2')](_0x2772b2,_0x13c632);};}exports[_0xac70('0x3')]=function(_0x522f66){for(var _0xb9117c=0x0,_0x3403ed=events['length'];_0xb9117c<_0x3403ed;_0xb9117c++){var _0x25dc54=events[_0xb9117c];var _0x9a5af2=createListener(_0xac70('0x4')+_0x25dc54,_0x522f66);MailAccountEvents['on'](_0x25dc54,_0x9a5af2);}};