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 _0x3ff9=['hasOwnProperty','exports','events','../../mysqldb','MailSubstatus','setMaxListeners','update','emit'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x3ff9,0x12a));var _0x93ff=function(_0x1e4360,_0x930b9b){_0x1e4360=_0x1e4360-0x0;var _0x31e6b4=_0x3ff9[_0x1e4360];return _0x31e6b4;};'use strict';var EventEmitter=require(_0x93ff('0x0'));var MailSubstatus=require(_0x93ff('0x1'))['db'][_0x93ff('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0x93ff('0x3')](0x0);var events={'afterUpdate':_0x93ff('0x4')};function emitEvent(_0x430c49){return function(_0x2c6a29,_0x5b6ef9,_0x46ab64){MailSubstatusEvents[_0x93ff('0x5')](_0x430c49+':'+_0x2c6a29['id'],_0x2c6a29);MailSubstatusEvents[_0x93ff('0x5')](_0x430c49,_0x2c6a29);_0x46ab64(null);};}for(var e in events){if(events[_0x93ff('0x6')](e)){var event=events[e];MailSubstatus['hook'](e,emitEvent(event));}}module[_0x93ff('0x7')]=MailSubstatusEvents;