Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / api / faxInteraction / faxInteraction.rpc.js
index ead9f40..94747b5 100644 (file)
@@ -1 +1 @@
-const a201_0x6143=['register','raw','attributes','where','message','../../rediscache','debug','AddTags','options','limit','update','./faxInteraction.socket','body','then','error','../../mysqldb','stringify','FaxInteraction','addTags','omit','catch','ids','lodash','UpdateFaxInteraction'];(function(_0x29ff85,_0x61436d){const _0x4c0b33=function(_0x359e69){while(--_0x359e69){_0x29ff85['push'](_0x29ff85['shift']());}};_0x4c0b33(++_0x61436d);}(a201_0x6143,0x126));const a201_0x4c0b=function(_0x29ff85,_0x61436d){_0x29ff85=_0x29ff85-0x0;let _0x4c0b33=a201_0x6143[_0x29ff85];return _0x4c0b33;};const _0x1dfd81=a201_0x4c0b;'use strict';const _=require(_0x1dfd81('0x10')),db=require(_0x1dfd81('0x9'))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(_0x1dfd81('0x17')),socket=getSocket();require(_0x1dfd81('0x5'))[_0x1dfd81('0x12')](socket),exports['UpdateFaxInteraction']=function(_0x359e69){const _0x36f07f=this;return new Promise(function(_0x57d6fc,_0x40b944){const _0x2a9864=a201_0x4c0b;return db[_0x2a9864('0xb')][_0x2a9864('0x4')](_0x359e69[_0x2a9864('0x6')],{'raw':_0x359e69['options']?_0x359e69[_0x2a9864('0x2')][_0x2a9864('0x13')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x359e69[_0x2a9864('0x2')]?_0x359e69['options'][_0x2a9864('0x15')]||null:null,'attributes':_0x359e69[_0x2a9864('0x2')]?_0x359e69[_0x2a9864('0x2')][_0x2a9864('0x14')]||null:null,'limit':_0x359e69['options']?_0x359e69[_0x2a9864('0x2')][_0x2a9864('0x3')]||null:null})[_0x2a9864('0x7')](function(_0x282981){const _0x15f110=_0x2a9864;logger['info']('UpdateFaxInteraction',_0x359e69),logger[_0x15f110('0x0')]('UpdateFaxInteraction',_0x359e69,JSON[_0x15f110('0xa')](_0x282981)),_0x57d6fc(_0x282981);})[_0x2a9864('0xe')](function(_0x1a1ecd){const _0xd51f64=_0x2a9864;logger[_0xd51f64('0x8')](_0xd51f64('0x11'),_0x1a1ecd['message'],_0x359e69),_0x40b944(_0x36f07f[_0xd51f64('0x8')](0x1f4,_0x1a1ecd[_0xd51f64('0x16')]));});});},exports['AddTagsToFaxInteraction']=function(_0x2fde66){const _0x42b3a7=this;return new Promise(function(_0x163711,_0x4952e8){const _0x452193=a201_0x4c0b;return db[_0x452193('0xb')]['findOne']({'where':_0x2fde66[_0x452193('0x2')]?_0x2fde66[_0x452193('0x2')][_0x452193('0x15')]||null:null})[_0x452193('0x7')](function(_0x26eec4){const _0x2fa8c5=_0x452193;if(_0x26eec4)return _0x26eec4[_0x2fa8c5('0xc')](_0x2fde66[_0x2fa8c5('0x6')][_0x2fa8c5('0xf')],{'through':_[_0x2fa8c5('0xd')](_0x2fde66['body'],['ids','id'])});})['then'](function([_0x172190]){const _0x5d2d61=_0x452193;logger['info']('AddTags',_0x2fde66),logger['debug'](_0x5d2d61('0x1'),_0x2fde66,JSON[_0x5d2d61('0xa')](_0x172190)),_0x163711(_0x172190);})[_0x452193('0xe')](function(_0x217964){const _0x3503d8=_0x452193;logger['error'](_0x3503d8('0x1'),_0x217964[_0x3503d8('0x16')],_0x2fde66),_0x4952e8(_0x42b3a7[_0x3503d8('0x8')](0x1f4,_0x217964['message']));});});};
\ No newline at end of file
+const a201_0x4288=['then','catch','options','body','../../config/logger','FaxInteraction','AddTagsToFaxInteraction','../../rediscache','AddTags','message','findOne','omit','./faxInteraction.socket','where','limit','../../mysqldb','info','UpdateFaxInteraction','update','ids','debug','attributes','stringify','error'];(function(_0x13dc1a,_0x42887e){const _0x13c3c9=function(_0x29c10a){while(--_0x29c10a){_0x13dc1a['push'](_0x13dc1a['shift']());}};_0x13c3c9(++_0x42887e);}(a201_0x4288,0x162));const a201_0x13c3=function(_0x13dc1a,_0x42887e){_0x13dc1a=_0x13dc1a-0x0;let _0x13c3c9=a201_0x4288[_0x13dc1a];return _0x13c3c9;};const _0xb45d47=a201_0x13c3;'use strict';const _=require('lodash'),db=require(_0xb45d47('0x15'))['db'],logger=require(_0xb45d47('0xa'))('rpc'),{getSocket}=require(_0xb45d47('0xd')),socket=getSocket();require(_0xb45d47('0x12'))['register'](socket),exports[_0xb45d47('0x17')]=function(_0x29c10a){const _0x545afd=this;return new Promise(function(_0x296956,_0x2da92d){const _0x539309=a201_0x13c3;return db[_0x539309('0xb')][_0x539309('0x0')](_0x29c10a['body'],{'raw':_0x29c10a['options']?_0x29c10a[_0x539309('0x8')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x29c10a[_0x539309('0x8')]?_0x29c10a[_0x539309('0x8')][_0x539309('0x13')]||null:null,'attributes':_0x29c10a[_0x539309('0x8')]?_0x29c10a[_0x539309('0x8')][_0x539309('0x3')]||null:null,'limit':_0x29c10a[_0x539309('0x8')]?_0x29c10a['options'][_0x539309('0x14')]||null:null})['then'](function(_0x5d6b3e){const _0x55a989=_0x539309;logger['info'](_0x55a989('0x17'),_0x29c10a),logger[_0x55a989('0x2')](_0x55a989('0x17'),_0x29c10a,JSON['stringify'](_0x5d6b3e)),_0x296956(_0x5d6b3e);})[_0x539309('0x7')](function(_0x34eb7b){const _0x45487d=_0x539309;logger[_0x45487d('0x5')]('UpdateFaxInteraction',_0x34eb7b[_0x45487d('0xf')],_0x29c10a),_0x2da92d(_0x545afd['error'](0x1f4,_0x34eb7b[_0x45487d('0xf')]));});});},exports[_0xb45d47('0xc')]=function(_0x2c1fe4){const _0x11a7c4=this;return new Promise(function(_0x1552ee,_0x38d8ca){const _0x275997=a201_0x13c3;return db[_0x275997('0xb')][_0x275997('0x10')]({'where':_0x2c1fe4['options']?_0x2c1fe4[_0x275997('0x8')][_0x275997('0x13')]||null:null})[_0x275997('0x6')](function(_0x288243){const _0x1985e6=_0x275997;if(_0x288243)return _0x288243['addTags'](_0x2c1fe4['body'][_0x1985e6('0x1')],{'through':_[_0x1985e6('0x11')](_0x2c1fe4[_0x1985e6('0x9')],[_0x1985e6('0x1'),'id'])});})[_0x275997('0x6')](function([_0x95a24b]){const _0x219e9a=_0x275997;logger[_0x219e9a('0x16')](_0x219e9a('0xe'),_0x2c1fe4),logger['debug'](_0x219e9a('0xe'),_0x2c1fe4,JSON[_0x219e9a('0x4')](_0x95a24b)),_0x1552ee(_0x95a24b);})[_0x275997('0x7')](function(_0x589ba5){const _0xf31846=_0x275997;logger[_0xf31846('0x5')](_0xf31846('0xe'),_0x589ba5[_0xf31846('0xf')],_0x2c1fe4),_0x38d8ca(_0x11a7c4[_0xf31846('0x5')](0x1f4,_0x589ba5[_0xf31846('0xf')]));});});};
\ No newline at end of file