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 _0x8eb7=['register','length','mailAccount:','./mailAccount.events','remove','update','emit','removeListener'];(function(_0x292834,_0x550e2d){var _0x6c9095=function(_0x98e8fe){while(--_0x98e8fe){_0x292834['push'](_0x292834['shift']());}};_0x6c9095(++_0x550e2d);}(_0x8eb7,0xfb));var _0x78eb=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8eb7[_0x3dd15e];return _0x231fd0;};'use strict';var MailAccountEvents=require(_0x78eb('0x0'));var events=['save',_0x78eb('0x1'),_0x78eb('0x2')];function createListener(_0x4aab28,_0x453898){return function(_0x524f71){_0x453898[_0x78eb('0x3')](_0x4aab28,_0x524f71);};}function removeListener(_0x5143a0,_0x545373){return function(){MailAccountEvents[_0x78eb('0x4')](_0x5143a0,_0x545373);};}exports[_0x78eb('0x5')]=function(_0x439b35){for(var _0x1b71ec=0x0,_0x468ffa=events[_0x78eb('0x6')];_0x1b71ec<_0x468ffa;_0x1b71ec++){var _0x8d497d=events[_0x1b71ec];var _0x3ede7d=createListener(_0x78eb('0x7')+_0x8d497d,_0x439b35);MailAccountEvents['on'](_0x8d497d,_0x3ede7d);}};