Built motion from commit e1760111.|2.6.18
[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 _0xa41f=['emit','hasOwnProperty','hook','../../mysqldb','MailSubstatus','setMaxListeners','update'];(function(_0x10eb30,_0x5b21bb){var _0x2754b8=function(_0x49281d){while(--_0x49281d){_0x10eb30['push'](_0x10eb30['shift']());}};_0x2754b8(++_0x5b21bb);}(_0xa41f,0x192));var _0xfa41=function(_0x291179,_0x241c3d){_0x291179=_0x291179-0x0;var _0x111357=_0xa41f[_0x291179];return _0x111357;};'use strict';var EventEmitter=require('events');var MailSubstatus=require(_0xfa41('0x0'))['db'][_0xfa41('0x1')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0xfa41('0x2')](0x0);var events={'afterUpdate':_0xfa41('0x3')};function emitEvent(_0x2b28e7){return function(_0xf700d2,_0x3f4a3c,_0x259b6d){MailSubstatusEvents[_0xfa41('0x4')](_0x2b28e7+':'+_0xf700d2['id'],_0xf700d2);MailSubstatusEvents[_0xfa41('0x4')](_0x2b28e7,_0xf700d2);_0x259b6d(null);};}for(var e in events){if(events[_0xfa41('0x5')](e)){var event=events[e];MailSubstatus[_0xfa41('0x6')](e,emitEvent(event));}}module['exports']=MailSubstatusEvents;