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 _0x34e2=['events','../../mysqldb','MailSubstatus','update','hasOwnProperty','hook'];(function(_0x4f9247,_0x27bfcb){var _0x398df3=function(_0x5f3d8f){while(--_0x5f3d8f){_0x4f9247['push'](_0x4f9247['shift']());}};_0x398df3(++_0x27bfcb);}(_0x34e2,0xc6));var _0x234e=function(_0x17a362,_0x488ef4){_0x17a362=_0x17a362-0x0;var _0x1ffb0e=_0x34e2[_0x17a362];return _0x1ffb0e;};'use strict';var EventEmitter=require(_0x234e('0x0'));var MailSubstatus=require(_0x234e('0x1'))['db'][_0x234e('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents['setMaxListeners'](0x0);var events={'afterUpdate':_0x234e('0x3')};function emitEvent(_0x5cb804){return function(_0x422bff,_0x10b271,_0x3876c5){MailSubstatusEvents['emit'](_0x5cb804+':'+_0x422bff['id'],_0x422bff);MailSubstatusEvents['emit'](_0x5cb804,_0x422bff);_0x3876c5(null);};}for(var e in events){if(events[_0x234e('0x4')](e)){var event=events[e];MailSubstatus[_0x234e('0x5')](e,emitEvent(event));}}module['exports']=MailSubstatusEvents;