Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / api / faxInteraction / faxInteraction.rpc.js
index 1a7a256..3ce0d3f 100644 (file)
@@ -1 +1 @@
-const a201_0xe7ef=['AddTagsToFaxInteraction','message','UpdateFaxInteraction','limit','../../config/logger','info','register','body','omit','error','options','ids','stringify','catch','../../rediscache','findOne','../../mysqldb','attributes','where','AddTags','addTags','then','debug'];(function(_0x1ab501,_0xe7ef93){const _0x3e3c75=function(_0x48c1a6){while(--_0x48c1a6){_0x1ab501['push'](_0x1ab501['shift']());}};_0x3e3c75(++_0xe7ef93);}(a201_0xe7ef,0x86));const a201_0x3e3c=function(_0x1ab501,_0xe7ef93){_0x1ab501=_0x1ab501-0x0;let _0x3e3c75=a201_0xe7ef[_0x1ab501];return _0x3e3c75;};const _0x137ffd=a201_0x3e3c;'use strict';const _=require('lodash'),db=require(_0x137ffd('0x14'))['db'],logger=require(_0x137ffd('0x8'))('rpc'),{getSocket}=require(_0x137ffd('0x12')),socket=getSocket();require('./faxInteraction.socket')[_0x137ffd('0xa')](socket),exports[_0x137ffd('0x6')]=function(_0x48c1a6){const _0x5e54e9=this;return new Promise(function(_0x34c9dc,_0x329b14){const _0x46f5dd=a201_0x3e3c;return db['FaxInteraction']['update'](_0x48c1a6[_0x46f5dd('0xb')],{'raw':_0x48c1a6[_0x46f5dd('0xe')]?_0x48c1a6[_0x46f5dd('0xe')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x48c1a6[_0x46f5dd('0xe')]?_0x48c1a6[_0x46f5dd('0xe')][_0x46f5dd('0x16')]||null:null,'attributes':_0x48c1a6[_0x46f5dd('0xe')]?_0x48c1a6[_0x46f5dd('0xe')][_0x46f5dd('0x15')]||null:null,'limit':_0x48c1a6[_0x46f5dd('0xe')]?_0x48c1a6[_0x46f5dd('0xe')][_0x46f5dd('0x7')]||null:null})[_0x46f5dd('0x2')](function(_0x4ad2b0){const _0x1e2adc=_0x46f5dd;logger[_0x1e2adc('0x9')](_0x1e2adc('0x6'),_0x48c1a6),logger[_0x1e2adc('0x3')](_0x1e2adc('0x6'),_0x48c1a6,JSON[_0x1e2adc('0x10')](_0x4ad2b0)),_0x34c9dc(_0x4ad2b0);})[_0x46f5dd('0x11')](function(_0x150f4b){const _0x113620=_0x46f5dd;logger[_0x113620('0xd')](_0x113620('0x6'),_0x150f4b[_0x113620('0x5')],_0x48c1a6),_0x329b14(_0x5e54e9[_0x113620('0xd')](0x1f4,_0x150f4b[_0x113620('0x5')]));});});},exports[_0x137ffd('0x4')]=function(_0x297374){const _0x12f2a2=this;return new Promise(function(_0x4d873e,_0x19c760){const _0x13feb3=a201_0x3e3c;return db['FaxInteraction'][_0x13feb3('0x13')]({'where':_0x297374[_0x13feb3('0xe')]?_0x297374['options'][_0x13feb3('0x16')]||null:null})['then'](function(_0x10c648){const _0x521f7a=_0x13feb3;if(_0x10c648)return _0x10c648[_0x521f7a('0x1')](_0x297374[_0x521f7a('0xb')][_0x521f7a('0xf')],{'through':_[_0x521f7a('0xc')](_0x297374['body'],[_0x521f7a('0xf'),'id'])});})[_0x13feb3('0x2')](function([_0x14cc48]){const _0x10df5c=_0x13feb3;logger[_0x10df5c('0x9')](_0x10df5c('0x0'),_0x297374),logger['debug'](_0x10df5c('0x0'),_0x297374,JSON[_0x10df5c('0x10')](_0x14cc48)),_0x4d873e(_0x14cc48);})['catch'](function(_0x31fc82){const _0x5af0d3=_0x13feb3;logger['error'](_0x5af0d3('0x0'),_0x31fc82[_0x5af0d3('0x5')],_0x297374),_0x19c760(_0x12f2a2[_0x5af0d3('0xd')](0x1f4,_0x31fc82[_0x5af0d3('0x5')]));});});};
\ No newline at end of file
+const a201_0x510c=['info','message','debug','attributes','AddTags','UpdateFaxInteraction','FaxInteraction','omit','options','../../mysqldb','where','addTags','../../rediscache','stringify','body','limit','rpc','catch','../../config/logger','register','then','ids','error','./faxInteraction.socket'];(function(_0x2607fd,_0x510cb6){const _0x4a820f=function(_0x174c67){while(--_0x174c67){_0x2607fd['push'](_0x2607fd['shift']());}};_0x4a820f(++_0x510cb6);}(a201_0x510c,0xb4));const a201_0x4a82=function(_0x2607fd,_0x510cb6){_0x2607fd=_0x2607fd-0x0;let _0x4a820f=a201_0x510c[_0x2607fd];return _0x4a820f;};const _0x31f4cd=a201_0x4a82;'use strict';const _=require('lodash'),db=require(_0x31f4cd('0x15'))['db'],logger=require(_0x31f4cd('0x6'))(_0x31f4cd('0x4')),{getSocket}=require(_0x31f4cd('0x0')),socket=getSocket();require(_0x31f4cd('0xb'))[_0x31f4cd('0x7')](socket),exports[_0x31f4cd('0x11')]=function(_0x174c67){const _0x307f3e=this;return new Promise(function(_0x16338e,_0x2e2e6b){const _0x4a0e38=a201_0x4a82;return db[_0x4a0e38('0x12')]['update'](_0x174c67['body'],{'raw':_0x174c67[_0x4a0e38('0x14')]?_0x174c67[_0x4a0e38('0x14')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x174c67[_0x4a0e38('0x14')]?_0x174c67[_0x4a0e38('0x14')][_0x4a0e38('0x16')]||null:null,'attributes':_0x174c67[_0x4a0e38('0x14')]?_0x174c67['options'][_0x4a0e38('0xf')]||null:null,'limit':_0x174c67[_0x4a0e38('0x14')]?_0x174c67[_0x4a0e38('0x14')][_0x4a0e38('0x3')]||null:null})['then'](function(_0x1162c9){const _0x526778=_0x4a0e38;logger[_0x526778('0xc')](_0x526778('0x11'),_0x174c67),logger[_0x526778('0xe')](_0x526778('0x11'),_0x174c67,JSON['stringify'](_0x1162c9)),_0x16338e(_0x1162c9);})[_0x4a0e38('0x5')](function(_0x72558e){const _0x476d97=_0x4a0e38;logger['error']('UpdateFaxInteraction',_0x72558e[_0x476d97('0xd')],_0x174c67),_0x2e2e6b(_0x307f3e[_0x476d97('0xa')](0x1f4,_0x72558e[_0x476d97('0xd')]));});});},exports['AddTagsToFaxInteraction']=function(_0x5d32c6){const _0x247140=this;return new Promise(function(_0x3e064d,_0x2548e5){const _0x1eeb2e=a201_0x4a82;return db[_0x1eeb2e('0x12')]['findOne']({'where':_0x5d32c6[_0x1eeb2e('0x14')]?_0x5d32c6[_0x1eeb2e('0x14')][_0x1eeb2e('0x16')]||null:null})[_0x1eeb2e('0x8')](function(_0x453c07){const _0x5440e1=_0x1eeb2e;if(_0x453c07)return _0x453c07[_0x5440e1('0x17')](_0x5d32c6['body'][_0x5440e1('0x9')],{'through':_[_0x5440e1('0x13')](_0x5d32c6[_0x5440e1('0x2')],[_0x5440e1('0x9'),'id'])});})[_0x1eeb2e('0x8')](function([_0x3a02c3]){const _0xca6fc2=_0x1eeb2e;logger[_0xca6fc2('0xc')](_0xca6fc2('0x10'),_0x5d32c6),logger['debug'](_0xca6fc2('0x10'),_0x5d32c6,JSON[_0xca6fc2('0x1')](_0x3a02c3)),_0x3e064d(_0x3a02c3);})[_0x1eeb2e('0x5')](function(_0x441fea){const _0x57974c=_0x1eeb2e;logger[_0x57974c('0xa')](_0x57974c('0x10'),_0x441fea[_0x57974c('0xd')],_0x5d32c6),_0x2548e5(_0x247140[_0x57974c('0xa')](0x1f4,_0x441fea[_0x57974c('0xd')]));});});};
\ No newline at end of file