Built motion from commit a8c4dd89.|2.6.33
[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 _0xcc1e=['setMaxListeners','update','emit','hasOwnProperty','hook','exports','events','../../mysqldb','MailSubstatus'];(function(_0x47ae80,_0x716165){var _0x528263=function(_0x284553){while(--_0x284553){_0x47ae80['push'](_0x47ae80['shift']());}};_0x528263(++_0x716165);}(_0xcc1e,0x19b));var _0xecc1=function(_0x59a3ce,_0x23ef83){_0x59a3ce=_0x59a3ce-0x0;var _0x924618=_0xcc1e[_0x59a3ce];return _0x924618;};'use strict';var EventEmitter=require(_0xecc1('0x0'));var MailSubstatus=require(_0xecc1('0x1'))['db'][_0xecc1('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents[_0xecc1('0x3')](0x0);var events={'afterUpdate':_0xecc1('0x4')};function emitEvent(_0x5b29ae){return function(_0x4dfb14,_0x2ee313,_0x1c10ca){MailSubstatusEvents[_0xecc1('0x5')](_0x5b29ae+':'+_0x4dfb14['id'],_0x4dfb14);MailSubstatusEvents[_0xecc1('0x5')](_0x5b29ae,_0x4dfb14);_0x1c10ca(null);};}for(var e in events){if(events[_0xecc1('0x6')](e)){var event=events[e];MailSubstatus[_0xecc1('0x7')](e,emitEvent(event));}}module[_0xecc1('0x8')]=MailSubstatusEvents;