f3d932649f338bc03dd587d04bc7f8092dbddef3
[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 _0xa517=['../../mysqldb','MailSubstatus','update','hasOwnProperty','hook','exports'];(function(_0x45dc60,_0x5b6ac7){var _0x3765ba=function(_0x2e9586){while(--_0x2e9586){_0x45dc60['push'](_0x45dc60['shift']());}};_0x3765ba(++_0x5b6ac7);}(_0xa517,0x1c2));var _0x7a51=function(_0x179b53,_0x31f6fe){_0x179b53=_0x179b53-0x0;var _0x38a146=_0xa517[_0x179b53];return _0x38a146;};'use strict';var EventEmitter=require('events');var MailSubstatus=require(_0x7a51('0x0'))['db'][_0x7a51('0x1')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents['setMaxListeners'](0x0);var events={'afterUpdate':_0x7a51('0x2')};function emitEvent(_0x53ade7){return function(_0x5c2749,_0x160733,_0x28f135){MailSubstatusEvents['emit'](_0x53ade7+':'+_0x5c2749['id'],_0x5c2749);MailSubstatusEvents['emit'](_0x53ade7,_0x5c2749);_0x28f135(null);};}for(var e in events){if(events[_0x7a51('0x3')](e)){var event=events[e];MailSubstatus[_0x7a51('0x4')](e,emitEvent(event));}}module[_0x7a51('0x5')]=MailSubstatusEvents;