Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / mailSubstatus / mailSubstatus.model.js
index ee438c9..eefc738 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd0e8=['then','./mailSubstatus.attributes','exports','models','define','MailSubstatus','Condition','name','mailSubstatus'];(function(_0x1d5820,_0x2813fa){var _0x1a0346=function(_0x499a60){while(--_0x499a60){_0x1d5820['push'](_0x1d5820['shift']());}};_0x1a0346(++_0x2813fa);}(_0xd0e8,0x64));var _0x8d0e=function(_0x5eae85,_0x3bb2db){_0x5eae85=_0x5eae85-0x0;var _0x4fd30f=_0xd0e8[_0x5eae85];return _0x4fd30f;};'use strict';var attributes=require(_0x8d0e('0x0'));module[_0x8d0e('0x1')]=function(_0x277834){var _0x7f03e4=_0x277834[_0x8d0e('0x2')];return _0x277834[_0x8d0e('0x3')](_0x8d0e('0x4'),attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x293397,_0x142773,_0x3b2863){return _0x7f03e4[_0x8d0e('0x5')]['update']({'value':_0x293397[_0x8d0e('0x6')]},{'where':{'field':_0x8d0e('0x7'),'value':_0x293397['_previousDataValues'][_0x8d0e('0x6')]}})[_0x8d0e('0x8')](function(){_0x3b2863();})['catch'](function(_0x27b48d){_0x3b2863(_0x27b48d);});}}});};
\ No newline at end of file
+var _0x61bd=['models','define','mail_substatuses','Condition','update','name','_previousDataValues','then','catch'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x61bd,0x1ef));var _0xd61b=function(_0x44a64f,_0x38475c){_0x44a64f=_0x44a64f-0x0;var _0x52024b=_0x61bd[_0x44a64f];return _0x52024b;};'use strict';var attributes=require('./mailSubstatus.attributes');module['exports']=function(_0x10283f){var _0x1474f2=_0x10283f[_0xd61b('0x0')];return _0x10283f[_0xd61b('0x1')]('MailSubstatus',attributes,{'tableName':_0xd61b('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x1023a9,_0x488060,_0x31c4a8){return _0x1474f2[_0xd61b('0x3')][_0xd61b('0x4')]({'value':_0x1023a9[_0xd61b('0x5')]},{'where':{'field':'mailSubstatus','value':_0x1023a9[_0xd61b('0x6')][_0xd61b('0x5')]}})[_0xd61b('0x7')](function(){_0x31c4a8();})[_0xd61b('0x8')](function(_0x2a70d0){_0x31c4a8(_0x2a70d0);});}}});};
\ No newline at end of file