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 _0x93a6=['emit','hook','exports'];(function(_0x2c2289,_0x1ddd5e){var _0xc2d91d=function(_0x36221f){while(--_0x36221f){_0x2c2289['push'](_0x2c2289['shift']());}};_0xc2d91d(++_0x1ddd5e);}(_0x93a6,0x153));var _0x693a=function(_0x43f19b,_0x3f825c){_0x43f19b=_0x43f19b-0x0;var _0x1e53d5=_0x93a6[_0x43f19b];return _0x1e53d5;};'use strict';var EventEmitter=require('events');var MailSubstatus=require('../../mysqldb')['db']['MailSubstatus'];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents['setMaxListeners'](0x0);var events={'afterUpdate':'update'};function emitEvent(_0x5295e7){return function(_0x390ea6,_0x191011,_0xc532cc){MailSubstatusEvents[_0x693a('0x0')](_0x5295e7+':'+_0x390ea6['id'],_0x390ea6);MailSubstatusEvents[_0x693a('0x0')](_0x5295e7,_0x390ea6);_0xc532cc(null);};}for(var e in events){if(events['hasOwnProperty'](e)){var event=events[e];MailSubstatus[_0x693a('0x1')](e,emitEvent(event));}}module[_0x693a('0x2')]=MailSubstatusEvents;