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 _0xde66=['hasOwnProperty','exports','events','setMaxListeners','update','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xde66,0x74));var _0x6de6=function(_0xb2120f,_0x1e23c1){_0xb2120f=_0xb2120f-0x0;var _0x3b8dd9=_0xde66[_0xb2120f];return _0x3b8dd9;};'use strict';var EventEmitter=require(_0x6de6('0x0'));var MailSubstatus=require('../../mysqldb')['db']['MailSubstatus'];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0x6de6('0x1')](0x0);var events={'afterUpdate':_0x6de6('0x2')};function emitEvent(_0x478016){return function(_0x5a1c84,_0x31e0e1,_0x418a0e){MailSubstatusEvents[_0x6de6('0x3')](_0x478016+':'+_0x5a1c84['id'],_0x5a1c84);MailSubstatusEvents[_0x6de6('0x3')](_0x478016,_0x5a1c84);_0x418a0e(null);};}for(var e in events){if(events[_0x6de6('0x4')](e)){var event=events[e];MailSubstatus['hook'](e,emitEvent(event));}}module[_0x6de6('0x5')]=MailSubstatusEvents;