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 _0x3e76=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','setMaxListeners','update'];(function(_0x3c7a19,_0x482197){var _0x410433=function(_0xc82a4a){while(--_0xc82a4a){_0x3c7a19['push'](_0x3c7a19['shift']());}};_0x410433(++_0x482197);}(_0x3e76,0xb4));var _0x63e7=function(_0x2c0dc0,_0x19900d){_0x2c0dc0=_0x2c0dc0-0x0;var _0x4c0990=_0x3e76[_0x2c0dc0];return _0x4c0990;};'use strict';var EventEmitter=require(_0x63e7('0x0'));var MailSubstatus=require(_0x63e7('0x1'))['db']['MailSubstatus'];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0x63e7('0x2')](0x0);var events={'afterUpdate':_0x63e7('0x3')};function emitEvent(_0x3ff847){return function(_0x40bb2e,_0x40afbe,_0x321f79){MailSubstatusEvents[_0x63e7('0x4')](_0x3ff847+':'+_0x40bb2e['id'],_0x40bb2e);MailSubstatusEvents[_0x63e7('0x4')](_0x3ff847,_0x40bb2e);_0x321f79(null);};}for(var e in events){if(events[_0x63e7('0x5')](e)){var event=events[e];MailSubstatus[_0x63e7('0x6')](e,emitEvent(event));}}module[_0x63e7('0x7')]=MailSubstatusEvents;