Built motion from commit c738b9ac.|2.6.25
[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 _0xe6bc=['MailSubstatus','setMaxListeners','update','emit','hasOwnProperty','hook','exports','events','../../mysqldb'];(function(_0x5645f7,_0x16bd84){var _0x2b9347=function(_0x3a8370){while(--_0x3a8370){_0x5645f7['push'](_0x5645f7['shift']());}};_0x2b9347(++_0x16bd84);}(_0xe6bc,0x142));var _0xce6b=function(_0x51ea68,_0x9e3460){_0x51ea68=_0x51ea68-0x0;var _0x384a69=_0xe6bc[_0x51ea68];return _0x384a69;};'use strict';var EventEmitter=require(_0xce6b('0x0'));var MailSubstatus=require(_0xce6b('0x1'))['db'][_0xce6b('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0xce6b('0x3')](0x0);var events={'afterUpdate':_0xce6b('0x4')};function emitEvent(_0x5b7d19){return function(_0x402781,_0x590f4b,_0x33b7ef){MailSubstatusEvents['emit'](_0x5b7d19+':'+_0x402781['id'],_0x402781);MailSubstatusEvents[_0xce6b('0x5')](_0x5b7d19,_0x402781);_0x33b7ef(null);};}for(var e in events){if(events[_0xce6b('0x6')](e)){var event=events[e];MailSubstatus[_0xce6b('0x7')](e,emitEvent(event));}}module[_0xce6b('0x8')]=MailSubstatusEvents;