Built motion from commit d69f4380.|2.6.29
[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 _0x9735=['hasOwnProperty','exports','../../mysqldb','MailSubstatus','update','emit'];(function(_0x173fd1,_0x28db53){var _0x36a3d1=function(_0x2f72a4){while(--_0x2f72a4){_0x173fd1['push'](_0x173fd1['shift']());}};_0x36a3d1(++_0x28db53);}(_0x9735,0xc2));var _0x5973=function(_0x22e62f,_0x4c811a){_0x22e62f=_0x22e62f-0x0;var _0x2fef10=_0x9735[_0x22e62f];return _0x2fef10;};'use strict';var EventEmitter=require('events');var MailSubstatus=require(_0x5973('0x0'))['db'][_0x5973('0x1')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents['setMaxListeners'](0x0);var events={'afterUpdate':_0x5973('0x2')};function emitEvent(_0x57dcae){return function(_0x5c8ac8,_0x4126fa,_0x15006c){MailSubstatusEvents[_0x5973('0x3')](_0x57dcae+':'+_0x5c8ac8['id'],_0x5c8ac8);MailSubstatusEvents[_0x5973('0x3')](_0x57dcae,_0x5c8ac8);_0x15006c(null);};}for(var e in events){if(events[_0x5973('0x4')](e)){var event=events[e];MailSubstatus['hook'](e,emitEvent(event));}}module[_0x5973('0x5')]=MailSubstatusEvents;