Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / whatsappInteraction / whatsappInteraction.model.js
index 83836ed..49739d7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf513=['changed','closed','closedAt','format','YYYY-MM-DD\x20HH:mm:ss','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','exports','WhatsappInteraction','whatsapp_interactions'];(function(_0xd5b543,_0x1e2f21){var _0x1a1e80=function(_0x5a692d){while(--_0x5a692d){_0xd5b543['push'](_0xd5b543['shift']());}};_0x1a1e80(++_0x1e2f21);}(_0xf513,0xf5));var _0x3f51=function(_0x1968e0,_0x3933e0){_0x1968e0=_0x1968e0-0x0;var _0x57ecc6=_0xf513[_0x1968e0];return _0x57ecc6;};'use strict';var _=require(_0x3f51('0x0'));var util=require('util');var logger=require(_0x3f51('0x1'))(_0x3f51('0x2'));var moment=require(_0x3f51('0x3'));var BPromise=require(_0x3f51('0x4'));var rp=require(_0x3f51('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x3f51('0x6'));var config=require('../../config/environment');var attributes=require('./whatsappInteraction.attributes');module[_0x3f51('0x7')]=function(_0x26e1da,_0x614254){return _0x26e1da['define'](_0x3f51('0x8'),attributes,{'tableName':_0x3f51('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x337e2f,_0x441946,_0x1350fc){if(_0x337e2f[_0x3f51('0xa')](_0x3f51('0xb'))){_0x337e2f[_0x3f51('0xc')]=moment()[_0x3f51('0xd')](_0x3f51('0xe'));}_0x1350fc(null,_0x337e2f);}}});};
\ No newline at end of file
+var _0x3f81=['util','../../config/logger','api','moment','request-promise','path','rimraf','./whatsappInteraction.attributes','exports','define','WhatsappInteraction','whatsapp_interactions','changed','closedAt','format','lodash'];(function(_0x27a1e0,_0x3ff2cb){var _0x1ca624=function(_0x435802){while(--_0x435802){_0x27a1e0['push'](_0x27a1e0['shift']());}};_0x1ca624(++_0x3ff2cb);}(_0x3f81,0x11f));var _0x13f8=function(_0x259e4b,_0x89414f){_0x259e4b=_0x259e4b-0x0;var _0x31b235=_0x3f81[_0x259e4b];return _0x31b235;};'use strict';var _=require(_0x13f8('0x0'));var util=require(_0x13f8('0x1'));var logger=require(_0x13f8('0x2'))(_0x13f8('0x3'));var moment=require(_0x13f8('0x4'));var BPromise=require('bluebird');var rp=require(_0x13f8('0x5'));var fs=require('fs');var path=require(_0x13f8('0x6'));var rimraf=require(_0x13f8('0x7'));var config=require('../../config/environment');var attributes=require(_0x13f8('0x8'));module[_0x13f8('0x9')]=function(_0x46fd9a,_0x1e329f){return _0x46fd9a[_0x13f8('0xa')](_0x13f8('0xb'),attributes,{'tableName':_0x13f8('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x2f90f4,_0x438297,_0x4f20fd){if(_0x2f90f4[_0x13f8('0xd')]('closed')){_0x2f90f4[_0x13f8('0xe')]=moment()[_0x13f8('0xf')]('YYYY-MM-DD\x20HH:mm:ss');}_0x4f20fd(null,_0x2f90f4);}}});};
\ No newline at end of file