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 _0x74de=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','MailSubstatus','setMaxListeners','update'];(function(_0x9c2427,_0x17c865){var _0x51984f=function(_0x177af6){while(--_0x177af6){_0x9c2427['push'](_0x9c2427['shift']());}};_0x51984f(++_0x17c865);}(_0x74de,0x187));var _0xe74d=function(_0x26cd6a,_0x5ed59c){_0x26cd6a=_0x26cd6a-0x0;var _0x1ae60a=_0x74de[_0x26cd6a];return _0x1ae60a;};'use strict';var EventEmitter=require(_0xe74d('0x0'));var MailSubstatus=require(_0xe74d('0x1'))['db'][_0xe74d('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0xe74d('0x3')](0x0);var events={'afterUpdate':_0xe74d('0x4')};function emitEvent(_0x2e55fd){return function(_0x7395ec,_0x43ffbc,_0x15ae07){MailSubstatusEvents[_0xe74d('0x5')](_0x2e55fd+':'+_0x7395ec['id'],_0x7395ec);MailSubstatusEvents['emit'](_0x2e55fd,_0x7395ec);_0x15ae07(null);};}for(var e in events){if(events[_0xe74d('0x6')](e)){var event=events[e];MailSubstatus[_0xe74d('0x7')](e,emitEvent(event));}}module[_0xe74d('0x8')]=MailSubstatusEvents;