Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / userProfile / userProfile.model.js
index 16dc75d..1e186d5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8190=['rimraf','../../config/environment','./userProfile.attributes','exports','UserProfile','user_profiles','lodash','util','api','moment'];(function(_0x3c418f,_0x4f208e){var _0x4146ab=function(_0x39c46a){while(--_0x39c46a){_0x3c418f['push'](_0x3c418f['shift']());}};_0x4146ab(++_0x4f208e);}(_0x8190,0x132));var _0x0819=function(_0x52bdf7,_0x33fbf8){_0x52bdf7=_0x52bdf7-0x0;var _0x14f573=_0x8190[_0x52bdf7];return _0x14f573;};'use strict';var _=require(_0x0819('0x0'));var util=require(_0x0819('0x1'));var logger=require('../../config/logger')(_0x0819('0x2'));var moment=require(_0x0819('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x0819('0x4'));var config=require(_0x0819('0x5'));var attributes=require(_0x0819('0x6'));module[_0x0819('0x7')]=function(_0x183285,_0x2c02ba){return _0x183285['define'](_0x0819('0x8'),attributes,{'tableName':_0x0819('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0x1619=['privacyEnabled','then','catch','../../config/logger','moment','bluebird','request-promise','rimraf','./userProfile.attributes','define','user_profiles','models','update'];(function(_0x413feb,_0x10477f){var _0x40ee88=function(_0x32a3f6){while(--_0x32a3f6){_0x413feb['push'](_0x413feb['shift']());}};_0x40ee88(++_0x10477f);}(_0x1619,0x189));var _0x9161=function(_0x2d7f97,_0x129956){_0x2d7f97=_0x2d7f97-0x0;var _0x46cb6a=_0x1619[_0x2d7f97];return _0x46cb6a;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9161('0x0'))('api');var moment=require(_0x9161('0x1'));var BPromise=require(_0x9161('0x2'));var rp=require(_0x9161('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9161('0x4'));var config=require('../../config/environment');var attributes=require(_0x9161('0x5'));module['exports']=function(_0x50ed78,_0x1b006d){return _0x50ed78[_0x9161('0x6')]('UserProfile',attributes,{'tableName':_0x9161('0x7'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterUpdate':function(_0x1f8240,_0x4f3e87,_0x25bea9){var _0x540f94=_0x50ed78[_0x9161('0x8')];_0x540f94['User'][_0x9161('0x9')]({'privacyEnabled':_0x1f8240[_0x9161('0xa')]},{'where':{'UserProfileId':_0x1f8240['id']}})[_0x9161('0xb')](function(){_0x25bea9();})[_0x9161('0xc')](function(_0x37dcc7){_0x25bea9(_0x37dcc7);});}}});};
\ No newline at end of file