f468c0b25a509f989fa5fd84b6582b542c816429
[motion2.git] / server / api / mailSubstatus / mailSubstatus.events.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x9bce=['setMaxListeners','update','emit','hasOwnProperty','hook','exports','../../mysqldb','MailSubstatus'];(function(_0x5447aa,_0x3afc00){var _0xb21e53=function(_0x2d05f6){while(--_0x2d05f6){_0x5447aa['push'](_0x5447aa['shift']());}};_0xb21e53(++_0x3afc00);}(_0x9bce,0xbe));var _0xe9bc=function(_0x275b9b,_0x2581c8){_0x275b9b=_0x275b9b-0x0;var _0x32ee76=_0x9bce[_0x275b9b];return _0x32ee76;};'use strict';var EventEmitter=require('events');var MailSubstatus=require(_0xe9bc('0x0'))['db'][_0xe9bc('0x1')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0xe9bc('0x2')](0x0);var events={'afterUpdate':_0xe9bc('0x3')};function emitEvent(_0x3ea263){return function(_0x48b827,_0x3dbf3f,_0x5b6b65){MailSubstatusEvents[_0xe9bc('0x4')](_0x3ea263+':'+_0x48b827['id'],_0x48b827);MailSubstatusEvents[_0xe9bc('0x4')](_0x3ea263,_0x48b827);_0x5b6b65(null);};}for(var e in events){if(events[_0xe9bc('0x5')](e)){var event=events[e];MailSubstatus[_0xe9bc('0x6')](e,emitEvent(event));}}module[_0xe9bc('0x7')]=MailSubstatusEvents;