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 _0xed67=['setMaxListeners','emit','hasOwnProperty','hook','exports','events','../../mysqldb','MailSubstatus'];(function(_0x4a5437,_0x373721){var _0x387aad=function(_0x1dbf15){while(--_0x1dbf15){_0x4a5437['push'](_0x4a5437['shift']());}};_0x387aad(++_0x373721);}(_0xed67,0xed));var _0x7ed6=function(_0x2a8c21,_0x163576){_0x2a8c21=_0x2a8c21-0x0;var _0x5f3061=_0xed67[_0x2a8c21];return _0x5f3061;};'use strict';var EventEmitter=require(_0x7ed6('0x0'));var MailSubstatus=require(_0x7ed6('0x1'))['db'][_0x7ed6('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0x7ed6('0x3')](0x0);var events={'afterUpdate':'update'};function emitEvent(_0x289441){return function(_0x5ed099,_0x524ef7,_0x19e377){MailSubstatusEvents[_0x7ed6('0x4')](_0x289441+':'+_0x5ed099['id'],_0x5ed099);MailSubstatusEvents['emit'](_0x289441,_0x5ed099);_0x19e377(null);};}for(var e in events){if(events[_0x7ed6('0x5')](e)){var event=events[e];MailSubstatus[_0x7ed6('0x6')](e,emitEvent(event));}}module[_0x7ed6('0x7')]=MailSubstatusEvents;