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 _0xea21=['events','../../mysqldb','MailSubstatus','update','emit','hasOwnProperty','hook','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xea21,0x100));var _0x1ea2=function(_0x24668e,_0x30901b){_0x24668e=_0x24668e-0x0;var _0x3e653c=_0xea21[_0x24668e];return _0x3e653c;};'use strict';var EventEmitter=require(_0x1ea2('0x0'));var MailSubstatus=require(_0x1ea2('0x1'))['db'][_0x1ea2('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents['setMaxListeners'](0x0);var events={'afterUpdate':_0x1ea2('0x3')};function emitEvent(_0x2d38ef){return function(_0x4b07ab,_0x35784b,_0xad6ab6){MailSubstatusEvents[_0x1ea2('0x4')](_0x2d38ef+':'+_0x4b07ab['id'],_0x4b07ab);MailSubstatusEvents['emit'](_0x2d38ef,_0x4b07ab);_0xad6ab6(null);};}for(var e in events){if(events[_0x1ea2('0x5')](e)){var event=events[e];MailSubstatus[_0x1ea2('0x6')](e,emitEvent(event));}}module[_0x1ea2('0x7')]=MailSubstatusEvents;