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 _0x9d49=['emit','removeListener','register','length','./mailAccount.events','remove','update'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0x9d49,0xcf));var _0x99d4=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x9d49[_0x321bb2];return _0x9c12ed;};'use strict';var MailAccountEvents=require(_0x99d4('0x0'));var events=['save',_0x99d4('0x1'),_0x99d4('0x2')];function createListener(_0x4168ee,_0xc5c60a){return function(_0x2e3250){_0xc5c60a[_0x99d4('0x3')](_0x4168ee,_0x2e3250);};}function removeListener(_0x44295a,_0x3ec3a8){return function(){MailAccountEvents[_0x99d4('0x4')](_0x44295a,_0x3ec3a8);};}exports[_0x99d4('0x5')]=function(_0x599b8f){for(var _0x586b08=0x0,_0xa34c60=events[_0x99d4('0x6')];_0x586b08<_0xa34c60;_0x586b08++){var _0x669198=events[_0x586b08];var _0x3d168d=createListener('mailAccount:'+_0x669198,_0x599b8f);MailAccountEvents['on'](_0x669198,_0x3d168d);}};