Built motion from commit 10af8726.|2.6.34
[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 _0x6042=['hook','events','../../mysqldb','MailSubstatus','update','emit','hasOwnProperty'];(function(_0x22446a,_0x41734f){var _0x5a4c45=function(_0x4d1caa){while(--_0x4d1caa){_0x22446a['push'](_0x22446a['shift']());}};_0x5a4c45(++_0x41734f);}(_0x6042,0xc5));var _0x2604=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0x6042[_0x432682];return _0x463d05;};'use strict';var EventEmitter=require(_0x2604('0x0'));var MailSubstatus=require(_0x2604('0x1'))['db'][_0x2604('0x2')];var MailSubstatusEvents=new EventEmitter();MailSubstatusEvents['setMaxListeners'](0x0);var events={'afterUpdate':_0x2604('0x3')};function emitEvent(_0x1ee6dc){return function(_0x298893,_0x5bdf72,_0x106f4c){MailSubstatusEvents[_0x2604('0x4')](_0x1ee6dc+':'+_0x298893['id'],_0x298893);MailSubstatusEvents[_0x2604('0x4')](_0x1ee6dc,_0x298893);_0x106f4c(null);};}for(var e in events){if(events[_0x2604('0x5')](e)){var event=events[e];MailSubstatus[_0x2604('0x6')](e,emitEvent(event));}}module['exports']=MailSubstatusEvents;