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 _0x949f=['update','emit','hasOwnProperty','exports','events','setMaxListeners'];(function(_0x3235a7,_0x24cb3b){var _0x56d0b5=function(_0x3c4e91){while(--_0x3c4e91){_0x3235a7['push'](_0x3235a7['shift']());}};_0x56d0b5(++_0x24cb3b);}(_0x949f,0x130));var _0xf949=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x949f[_0x14add3];return _0x4a174f;};'use strict';var EventEmitter=require(_0xf949('0x0'));var MailSubstatus=require('../../mysqldb')['db']['MailSubstatus'];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0xf949('0x1')](0x0);var events={'afterUpdate':_0xf949('0x2')};function emitEvent(_0x23763b){return function(_0x4f5099,_0x468370,_0x2a30e9){MailSubstatusEvents[_0xf949('0x3')](_0x23763b+':'+_0x4f5099['id'],_0x4f5099);MailSubstatusEvents[_0xf949('0x3')](_0x23763b,_0x4f5099);_0x2a30e9(null);};}for(var e in events){if(events[_0xf949('0x4')](e)){var event=events[e];MailSubstatus['hook'](e,emitEvent(event));}}module[_0xf949('0x5')]=MailSubstatusEvents;