Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / faxInteraction / faxInteraction.rpc.js
index 732dfbc..c6217b8 100644 (file)
@@ -1 +1 @@
-const a201_0x31b7=['message','info','where','update','error','./faxInteraction.socket','options','debug','stringify','../../rediscache','addTags','findOne','rpc','UpdateFaxInteraction','AddTags','then','omit','../../mysqldb','FaxInteraction','body','attributes','ids'];(function(_0x353437,_0x31b792){const _0x1a17d9=function(_0x2898fe){while(--_0x2898fe){_0x353437['push'](_0x353437['shift']());}};_0x1a17d9(++_0x31b792);}(a201_0x31b7,0x1d7));const a201_0x1a17=function(_0x353437,_0x31b792){_0x353437=_0x353437-0x0;let _0x1a17d9=a201_0x31b7[_0x353437];return _0x1a17d9;};const _0x52ece0=a201_0x1a17;'use strict';const _=require('lodash'),db=require(_0x52ece0('0x8'))['db'],logger=require('../../config/logger')(_0x52ece0('0x3')),{getSocket}=require(_0x52ece0('0x0')),socket=getSocket();require(_0x52ece0('0x12'))['register'](socket),exports[_0x52ece0('0x4')]=function(_0x2898fe){const _0x130886=this;return new Promise(function(_0x456b62,_0x452041){const _0x4d7b6d=a201_0x1a17;return db[_0x4d7b6d('0x9')][_0x4d7b6d('0x10')](_0x2898fe[_0x4d7b6d('0xa')],{'raw':_0x2898fe[_0x4d7b6d('0x13')]?_0x2898fe[_0x4d7b6d('0x13')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2898fe[_0x4d7b6d('0x13')]?_0x2898fe[_0x4d7b6d('0x13')][_0x4d7b6d('0xf')]||null:null,'attributes':_0x2898fe[_0x4d7b6d('0x13')]?_0x2898fe[_0x4d7b6d('0x13')][_0x4d7b6d('0xb')]||null:null,'limit':_0x2898fe['options']?_0x2898fe[_0x4d7b6d('0x13')]['limit']||null:null})[_0x4d7b6d('0x6')](function(_0x1d5a54){const _0x2b9fbe=_0x4d7b6d;logger[_0x2b9fbe('0xe')]('UpdateFaxInteraction',_0x2898fe),logger['debug']('UpdateFaxInteraction',_0x2898fe,JSON[_0x2b9fbe('0x15')](_0x1d5a54)),_0x456b62(_0x1d5a54);})['catch'](function(_0x57fd44){const _0x242ef9=_0x4d7b6d;logger['error'](_0x242ef9('0x4'),_0x57fd44['message'],_0x2898fe),_0x452041(_0x130886[_0x242ef9('0x11')](0x1f4,_0x57fd44[_0x242ef9('0xd')]));});});},exports['AddTagsToFaxInteraction']=function(_0x572231){const _0x4a0292=this;return new Promise(function(_0x5eb621,_0x306aed){const _0xe51a9e=a201_0x1a17;return db['FaxInteraction'][_0xe51a9e('0x2')]({'where':_0x572231[_0xe51a9e('0x13')]?_0x572231[_0xe51a9e('0x13')][_0xe51a9e('0xf')]||null:null})[_0xe51a9e('0x6')](function(_0x2ed4e6){const _0x157b4e=_0xe51a9e;if(_0x2ed4e6)return _0x2ed4e6[_0x157b4e('0x1')](_0x572231['body']['ids'],{'through':_[_0x157b4e('0x7')](_0x572231[_0x157b4e('0xa')],[_0x157b4e('0xc'),'id'])});})[_0xe51a9e('0x6')](function([_0x2862ef]){const _0xe759b5=_0xe51a9e;logger['info']('AddTags',_0x572231),logger[_0xe759b5('0x14')](_0xe759b5('0x5'),_0x572231,JSON[_0xe759b5('0x15')](_0x2862ef)),_0x5eb621(_0x2862ef);})['catch'](function(_0x3c75cf){const _0x1e43ab=_0xe51a9e;logger['error']('AddTags',_0x3c75cf[_0x1e43ab('0xd')],_0x572231),_0x306aed(_0x4a0292[_0x1e43ab('0x11')](0x1f4,_0x3c75cf[_0x1e43ab('0xd')]));});});};
\ No newline at end of file
+const a201_0x617d=['catch','error','register','addTags','body','then','AddTags','stringify','message','attributes','./faxInteraction.socket','../../config/logger','raw','limit','ids','info','../../rediscache','where','omit','rpc','options','lodash','UpdateFaxInteraction','FaxInteraction','debug','../../mysqldb'];(function(_0x152ac1,_0x617d91){const _0x1de435=function(_0x51883d){while(--_0x51883d){_0x152ac1['push'](_0x152ac1['shift']());}};_0x1de435(++_0x617d91);}(a201_0x617d,0x120));const a201_0x1de4=function(_0x152ac1,_0x617d91){_0x152ac1=_0x152ac1-0x0;let _0x1de435=a201_0x617d[_0x152ac1];return _0x1de435;};const _0x44a930=a201_0x1de4;'use strict';const _=require(_0x44a930('0x13')),db=require(_0x44a930('0x17'))['db'],logger=require(_0x44a930('0x9'))(_0x44a930('0x11')),{getSocket}=require(_0x44a930('0xe')),socket=getSocket();require(_0x44a930('0x8'))[_0x44a930('0x0')](socket),exports[_0x44a930('0x14')]=function(_0x51883d){const _0x1af32e=this;return new Promise(function(_0x2d94b4,_0x52bcf6){const _0x44c97a=a201_0x1de4;return db[_0x44c97a('0x15')]['update'](_0x51883d[_0x44c97a('0x2')],{'raw':_0x51883d[_0x44c97a('0x12')]?_0x51883d[_0x44c97a('0x12')][_0x44c97a('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x51883d[_0x44c97a('0x12')]?_0x51883d['options'][_0x44c97a('0xf')]||null:null,'attributes':_0x51883d[_0x44c97a('0x12')]?_0x51883d['options'][_0x44c97a('0x7')]||null:null,'limit':_0x51883d[_0x44c97a('0x12')]?_0x51883d[_0x44c97a('0x12')][_0x44c97a('0xb')]||null:null})['then'](function(_0x2ae8a0){const _0x50480a=_0x44c97a;logger[_0x50480a('0xd')](_0x50480a('0x14'),_0x51883d),logger[_0x50480a('0x16')](_0x50480a('0x14'),_0x51883d,JSON[_0x50480a('0x5')](_0x2ae8a0)),_0x2d94b4(_0x2ae8a0);})[_0x44c97a('0x18')](function(_0x1f544b){const _0x27e170=_0x44c97a;logger[_0x27e170('0x19')](_0x27e170('0x14'),_0x1f544b[_0x27e170('0x6')],_0x51883d),_0x52bcf6(_0x1af32e['error'](0x1f4,_0x1f544b[_0x27e170('0x6')]));});});},exports['AddTagsToFaxInteraction']=function(_0x5ee809){const _0xbb0a57=this;return new Promise(function(_0x273b1e,_0x247028){const _0x379122=a201_0x1de4;return db[_0x379122('0x15')]['findOne']({'where':_0x5ee809[_0x379122('0x12')]?_0x5ee809[_0x379122('0x12')][_0x379122('0xf')]||null:null})[_0x379122('0x3')](function(_0x455568){const _0x3ffc4f=_0x379122;if(_0x455568)return _0x455568[_0x3ffc4f('0x1')](_0x5ee809['body'][_0x3ffc4f('0xc')],{'through':_[_0x3ffc4f('0x10')](_0x5ee809[_0x3ffc4f('0x2')],[_0x3ffc4f('0xc'),'id'])});})['then'](function([_0x31f9a0]){const _0x5aedc4=_0x379122;logger['info'](_0x5aedc4('0x4'),_0x5ee809),logger[_0x5aedc4('0x16')](_0x5aedc4('0x4'),_0x5ee809,JSON[_0x5aedc4('0x5')](_0x31f9a0)),_0x273b1e(_0x31f9a0);})[_0x379122('0x18')](function(_0x4ac4ec){const _0x145f89=_0x379122;logger[_0x145f89('0x19')]('AddTags',_0x4ac4ec[_0x145f89('0x6')],_0x5ee809),_0x247028(_0xbb0a57[_0x145f89('0x19')](0x1f4,_0x4ac4ec[_0x145f89('0x6')]));});});};
\ No newline at end of file