Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / faxApplication / faxApplication.rpc.js
index 0343fab..a33a8d6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa27f=['bluebird','ioredis','../../mysqldb','rpc','../../config/environment','jayson/promise','client','http','request','then','info','debug','FaxApplication,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','FaxApplication,\x20%s,\x20%s','message','result','catch','UpdateFaxApplication','update','body','options','raw','where','attributes','lodash','util'];(function(_0x2a9434,_0x2dc921){var _0x51c091=function(_0x137310){while(--_0x137310){_0x2a9434['push'](_0x2a9434['shift']());}};_0x51c091(++_0x2dc921);}(_0xa27f,0x76));var _0xfa27=function(_0x4cf7a9,_0x42618f){_0x4cf7a9=_0x4cf7a9-0x0;var _0x53938d=_0xa27f[_0x4cf7a9];return _0x53938d;};'use strict';var _=require(_0xfa27('0x0'));var util=require(_0xfa27('0x1'));var moment=require('moment');var BPromise=require(_0xfa27('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xfa27('0x3'));var db=require(_0xfa27('0x4'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0xfa27('0x5'));var config=require(_0xfa27('0x6'));var jayson=require(_0xfa27('0x7'));var client=jayson[_0xfa27('0x8')][_0xfa27('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x212696,_0xf7380a,_0x47f48c){return new BPromise(function(_0x138c1b,_0x2c6bd3){return client[_0xfa27('0xa')](_0x212696,_0x47f48c)[_0xfa27('0xb')](function(_0x7e4136){logger[_0xfa27('0xc')]('FaxApplication,\x20%s,\x20%s',_0xf7380a,'request\x20sent');logger[_0xfa27('0xd')](_0xfa27('0xe'),_0xf7380a,_0xfa27('0xf'),JSON[_0xfa27('0x10')](_0x7e4136));if(_0x7e4136['error']){if(_0x7e4136[_0xfa27('0x11')][_0xfa27('0x12')]===0x1f4){logger[_0xfa27('0x11')](_0xfa27('0x13'),_0xf7380a,_0x7e4136['error'][_0xfa27('0x14')]);return _0x2c6bd3(_0x7e4136[_0xfa27('0x11')]['message']);}logger[_0xfa27('0x11')](_0xfa27('0x13'),_0xf7380a,_0x7e4136['error'][_0xfa27('0x14')]);return _0x138c1b(_0x7e4136[_0xfa27('0x11')][_0xfa27('0x14')]);}else{logger[_0xfa27('0xc')](_0xfa27('0x13'),_0xf7380a,_0xfa27('0xf'));_0x138c1b(_0x7e4136[_0xfa27('0x15')][_0xfa27('0x14')]);}})[_0xfa27('0x16')](function(_0xee6777){logger['error'](_0xfa27('0x13'),_0xf7380a,_0xee6777);_0x2c6bd3(_0xee6777);});});}exports[_0xfa27('0x17')]=function(_0x32a39d){var _0x4cef68=this;return new Promise(function(_0x32201,_0x298647){return db['FaxApplication'][_0xfa27('0x18')](_0x32a39d[_0xfa27('0x19')],{'raw':_0x32a39d[_0xfa27('0x1a')]?_0x32a39d['options'][_0xfa27('0x1b')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x32a39d[_0xfa27('0x1a')]?_0x32a39d[_0xfa27('0x1a')][_0xfa27('0x1c')]||null:null,'attributes':_0x32a39d['options']?_0x32a39d[_0xfa27('0x1a')][_0xfa27('0x1d')]||null:null,'limit':_0x32a39d[_0xfa27('0x1a')]?_0x32a39d['options']['limit']||null:null})[_0xfa27('0xb')](function(_0x67d4bf){logger[_0xfa27('0xc')](_0xfa27('0x17'),_0x32a39d);logger[_0xfa27('0xd')](_0xfa27('0x17'),_0x32a39d,JSON[_0xfa27('0x10')](_0x67d4bf));_0x32201(_0x67d4bf);})[_0xfa27('0x16')](function(_0x2f5281){logger[_0xfa27('0x11')](_0xfa27('0x17'),_0x2f5281['message'],_0x32a39d);_0x298647(_0x4cef68[_0xfa27('0x11')](0x1f4,_0x2f5281[_0xfa27('0x14')]));});});};
\ No newline at end of file
+var _0xc60e=['FaxApplication,\x20%s,\x20%s','request\x20sent','debug','FaxApplication,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','UpdateFaxApplication','FaxApplication','body','options','raw','where','attributes','limit','then','stringify','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','http','request','info'];(function(_0x2f8dbc,_0x3bac71){var _0x4b1126=function(_0x1ebe3b){while(--_0x1ebe3b){_0x2f8dbc['push'](_0x2f8dbc['shift']());}};_0x4b1126(++_0x3bac71);}(_0xc60e,0x153));var _0xec60=function(_0xc67a77,_0x5c66d6){_0xc67a77=_0xc67a77-0x0;var _0x3d5849=_0xc60e[_0xc67a77];return _0x3d5849;};'use strict';var _=require(_0xec60('0x0'));var util=require(_0xec60('0x1'));var moment=require('moment');var BPromise=require(_0xec60('0x2'));var rs=require(_0xec60('0x3'));var fs=require('fs');var Redis=require(_0xec60('0x4'));var db=require(_0xec60('0x5'))['db'];var utils=require(_0xec60('0x6'));var logger=require(_0xec60('0x7'))(_0xec60('0x8'));var config=require('../../config/environment');var jayson=require(_0xec60('0x9'));var client=jayson['client'][_0xec60('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4043e5,_0xd2a309,_0x4e57ff){return new BPromise(function(_0x58ef09,_0x839997){return client[_0xec60('0xb')](_0x4043e5,_0x4e57ff)['then'](function(_0x540fd2){logger[_0xec60('0xc')](_0xec60('0xd'),_0xd2a309,_0xec60('0xe'));logger[_0xec60('0xf')](_0xec60('0x10'),_0xd2a309,'request\x20sent',JSON['stringify'](_0x540fd2));if(_0x540fd2['error']){if(_0x540fd2[_0xec60('0x11')][_0xec60('0x12')]===0x1f4){logger[_0xec60('0x11')](_0xec60('0xd'),_0xd2a309,_0x540fd2[_0xec60('0x11')][_0xec60('0x13')]);return _0x839997(_0x540fd2[_0xec60('0x11')][_0xec60('0x13')]);}logger[_0xec60('0x11')](_0xec60('0xd'),_0xd2a309,_0x540fd2[_0xec60('0x11')][_0xec60('0x13')]);return _0x58ef09(_0x540fd2['error'][_0xec60('0x13')]);}else{logger[_0xec60('0xc')](_0xec60('0xd'),_0xd2a309,'request\x20sent');_0x58ef09(_0x540fd2[_0xec60('0x14')][_0xec60('0x13')]);}})[_0xec60('0x15')](function(_0x145579){logger[_0xec60('0x11')](_0xec60('0xd'),_0xd2a309,_0x145579);_0x839997(_0x145579);});});}exports[_0xec60('0x16')]=function(_0x17c052){var _0x231840=this;return new Promise(function(_0x347ebb,_0x31c70a){return db[_0xec60('0x17')]['update'](_0x17c052[_0xec60('0x18')],{'raw':_0x17c052[_0xec60('0x19')]?_0x17c052[_0xec60('0x19')][_0xec60('0x1a')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x17c052[_0xec60('0x19')]?_0x17c052[_0xec60('0x19')][_0xec60('0x1b')]||null:null,'attributes':_0x17c052[_0xec60('0x19')]?_0x17c052[_0xec60('0x19')][_0xec60('0x1c')]||null:null,'limit':_0x17c052['options']?_0x17c052['options'][_0xec60('0x1d')]||null:null})[_0xec60('0x1e')](function(_0x5298af){logger[_0xec60('0xc')]('UpdateFaxApplication',_0x17c052);logger[_0xec60('0xf')]('UpdateFaxApplication',_0x17c052,JSON[_0xec60('0x1f')](_0x5298af));_0x347ebb(_0x5298af);})[_0xec60('0x15')](function(_0x32492c){logger[_0xec60('0x11')](_0xec60('0x16'),_0x32492c[_0xec60('0x13')],_0x17c052);_0x31c70a(_0x231840[_0xec60('0x11')](0x1f4,_0x32492c[_0xec60('0x13')]));});});};
\ No newline at end of file