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 _0xcc42=['exports','events','../../mysqldb','MailSubstatus','setMaxListeners','update','emit','hasOwnProperty','hook'];(function(_0x130b30,_0x3d45b6){var _0x1b9f34=function(_0xf5b5ff){while(--_0xf5b5ff){_0x130b30['push'](_0x130b30['shift']());}};_0x1b9f34(++_0x3d45b6);}(_0xcc42,0xbe));var _0x2cc4=function(_0x4c4037,_0x15054b){_0x4c4037=_0x4c4037-0x0;var _0x357862=_0xcc42[_0x4c4037];return _0x357862;};'use strict';var EventEmitter=require(_0x2cc4('0x0'));var MailSubstatus=require(_0x2cc4('0x1'))['db'][_0x2cc4('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0x2cc4('0x3')](0x0);var events={'afterUpdate':_0x2cc4('0x4')};function emitEvent(_0x13824d){return function(_0x4686dc,_0x4d0120,_0x36298c){MailSubstatusEvents[_0x2cc4('0x5')](_0x13824d+':'+_0x4686dc['id'],_0x4686dc);MailSubstatusEvents[_0x2cc4('0x5')](_0x13824d,_0x4686dc);_0x36298c(null);};}for(var e in events){if(events[_0x2cc4('0x6')](e)){var event=events[e];MailSubstatus[_0x2cc4('0x7')](e,emitEvent(event));}}module[_0x2cc4('0x8')]=MailSubstatusEvents;