Built motion from commit 9d7072cc.|2.5.39
[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 _0xbe8c=['emit','hasOwnProperty','hook','exports','events','../../mysqldb','MailSubstatus','update'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xbe8c,0x104));var _0xcbe8=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0xbe8c[_0x3ab51d];return _0x29a04e;};'use strict';var EventEmitter=require(_0xcbe8('0x0'));var MailSubstatus=require(_0xcbe8('0x1'))['db'][_0xcbe8('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents['setMaxListeners'](0x0);var events={'afterUpdate':_0xcbe8('0x3')};function emitEvent(_0x12f208){return function(_0xbd7014,_0x3b0920,_0x3b3561){MailSubstatusEvents[_0xcbe8('0x4')](_0x12f208+':'+_0xbd7014['id'],_0xbd7014);MailSubstatusEvents[_0xcbe8('0x4')](_0x12f208,_0xbd7014);_0x3b3561(null);};}for(var e in events){if(events[_0xcbe8('0x5')](e)){var event=events[e];MailSubstatus[_0xcbe8('0x6')](e,emitEvent(event));}}module[_0xcbe8('0x7')]=MailSubstatusEvents;