Built motion from commit (unavailable).|2.0.75
[motion2.git] / server / services / ami / trigger / integration / util.js
index cdbc851..e472d9d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcb9f=['sortBy','type','string','variable','variableName','toString','customVariable','Variable','name','toLowerCase','keyValue','key','push','format','keyType','%s:\x20%s','join','stripTrailingSlash','substr','lodash','util','getString','length'];(function(_0x3790c6,_0x279fd5){var _0x494a6e=function(_0x49da1e){while(--_0x49da1e){_0x3790c6['push'](_0x3790c6['shift']());}};_0x494a6e(++_0x279fd5);}(_0xcb9f,0x9d));var _0xfcb9=function(_0x3dcf54,_0x4c434c){_0x3dcf54=_0x3dcf54-0x0;var _0x3330ed=_0xcb9f[_0x3dcf54];return _0x3330ed;};'use strict';var _=require(_0xfcb9('0x0'));var util=require(_0xfcb9('0x1'));exports[_0xfcb9('0x2')]=function(_0x152f53,_0x3398e2,_0xe42521){var _0x2caacb=[];if(_0x152f53[_0xfcb9('0x3')]>0x0){var _0x426856=_[_0xfcb9('0x4')](_0x152f53,['id']);for(var _0x4cf284=0x0;_0x4cf284<_0x426856[_0xfcb9('0x3')];_0x4cf284++){var _0xc0504a=_0x426856[_0x4cf284];if(_0xc0504a[_0xfcb9('0x5')]===_0xfcb9('0x6')){_0x2caacb['push'](_0xc0504a['content']);}else if(_0xc0504a[_0xfcb9('0x5')]===_0xfcb9('0x7')&&_0xc0504a[_0xfcb9('0x8')]){_0x3398e2[_0xc0504a[_0xfcb9('0x8')]]&&_0x2caacb['push'](_0x3398e2[_0xc0504a[_0xfcb9('0x8')]][_0xfcb9('0x9')]());}else if(_0xc0504a[_0xfcb9('0x5')]===_0xfcb9('0xa')&&_0xc0504a[_0xfcb9('0xb')]&&_0xc0504a[_0xfcb9('0xb')]['name']){_0x3398e2[_0xc0504a[_0xfcb9('0xb')][_0xfcb9('0xc')][_0xfcb9('0xd')]()]&&_0x2caacb['push'](_0x3398e2[_0xc0504a['Variable'][_0xfcb9('0xc')][_0xfcb9('0xd')]()][_0xfcb9('0x9')]());}else if(_0xc0504a[_0xfcb9('0x5')]===_0xfcb9('0xe')){if(_0xc0504a['keyType']===_0xfcb9('0x6')&&_0xc0504a[_0xfcb9('0xf')]){_0x2caacb[_0xfcb9('0x10')](util[_0xfcb9('0x11')]('%s:\x20%s',_0xc0504a[_0xfcb9('0xf')],_0xc0504a['keyContent']));}else if(_0xc0504a[_0xfcb9('0x12')]==='variable'&&_0xc0504a['variableName']&&_0xc0504a[_0xfcb9('0xf')]){_0x3398e2[_0xc0504a['variableName']]&&_0x2caacb['push'](util[_0xfcb9('0x11')](_0xfcb9('0x13'),_0xc0504a[_0xfcb9('0xf')],_0x3398e2[_0xc0504a[_0xfcb9('0x8')]]));}else if(_0xc0504a[_0xfcb9('0x12')]===_0xfcb9('0xa')&&_0xc0504a['Variable']&&_0xc0504a[_0xfcb9('0xb')][_0xfcb9('0xc')]&&_0xc0504a['key']){_0x3398e2[_0xc0504a[_0xfcb9('0xb')][_0xfcb9('0xc')]['toLowerCase']()]&&_0x2caacb[_0xfcb9('0x10')](util[_0xfcb9('0x11')](_0xfcb9('0x13'),_0xc0504a['key'],_0x3398e2[_0xc0504a[_0xfcb9('0xb')]['name']['toLowerCase']()]));}}}}return _0x2caacb[_0xfcb9('0x14')](_0xe42521);};exports[_0xfcb9('0x15')]=function(_0x292a2d){if(_0x292a2d&&_0x292a2d[_0xfcb9('0x16')](-0x1)==='/'){return _0x292a2d[_0xfcb9('0x16')](0x0,_0x292a2d[_0xfcb9('0x3')]-0x1);}return _0x292a2d;};
\ No newline at end of file
+var _0x7359=['content','variableName','toString','Variable','name','toLowerCase','keyValue','keyType','key','format','%s:\x20%s','keyContent','variable','customVariable','join','stripTrailingSlash','substr','util','sortBy','length','type','string','push'];(function(_0x2e4aa2,_0x11956a){var _0x5e6092=function(_0x4c12c2){while(--_0x4c12c2){_0x2e4aa2['push'](_0x2e4aa2['shift']());}};_0x5e6092(++_0x11956a);}(_0x7359,0x1c6));var _0x9735=function(_0x4baae2,_0x487ab6){_0x4baae2=_0x4baae2-0x0;var _0x1a2285=_0x7359[_0x4baae2];return _0x1a2285;};'use strict';var _=require('lodash');var util=require(_0x9735('0x0'));exports['getString']=function(_0x5f5be5,_0x14b222,_0x5aba0e){var _0x1191e0=[];if(_0x5f5be5['length']>0x0){var _0xf3cf83=_[_0x9735('0x1')](_0x5f5be5,['id']);for(var _0x2e8989=0x0;_0x2e8989<_0xf3cf83[_0x9735('0x2')];_0x2e8989++){var _0x52752f=_0xf3cf83[_0x2e8989];if(_0x52752f[_0x9735('0x3')]===_0x9735('0x4')){_0x1191e0[_0x9735('0x5')](_0x52752f[_0x9735('0x6')]);}else if(_0x52752f[_0x9735('0x3')]==='variable'&&_0x52752f[_0x9735('0x7')]){_0x14b222[_0x52752f[_0x9735('0x7')]]&&_0x1191e0[_0x9735('0x5')](_0x14b222[_0x52752f[_0x9735('0x7')]][_0x9735('0x8')]());}else if(_0x52752f[_0x9735('0x3')]==='customVariable'&&_0x52752f[_0x9735('0x9')]&&_0x52752f[_0x9735('0x9')]['name']){_0x14b222[_0x52752f[_0x9735('0x9')][_0x9735('0xa')][_0x9735('0xb')]()]&&_0x1191e0[_0x9735('0x5')](_0x14b222[_0x52752f[_0x9735('0x9')][_0x9735('0xa')]['toLowerCase']()][_0x9735('0x8')]());}else if(_0x52752f[_0x9735('0x3')]===_0x9735('0xc')){if(_0x52752f[_0x9735('0xd')]===_0x9735('0x4')&&_0x52752f[_0x9735('0xe')]){_0x1191e0['push'](util[_0x9735('0xf')](_0x9735('0x10'),_0x52752f['key'],_0x52752f[_0x9735('0x11')]));}else if(_0x52752f[_0x9735('0xd')]===_0x9735('0x12')&&_0x52752f[_0x9735('0x7')]&&_0x52752f[_0x9735('0xe')]){_0x14b222[_0x52752f['variableName']]&&_0x1191e0[_0x9735('0x5')](util[_0x9735('0xf')](_0x9735('0x10'),_0x52752f[_0x9735('0xe')],_0x14b222[_0x52752f[_0x9735('0x7')]]));}else if(_0x52752f[_0x9735('0xd')]===_0x9735('0x13')&&_0x52752f[_0x9735('0x9')]&&_0x52752f['Variable'][_0x9735('0xa')]&&_0x52752f[_0x9735('0xe')]){_0x14b222[_0x52752f['Variable'][_0x9735('0xa')]['toLowerCase']()]&&_0x1191e0['push'](util[_0x9735('0xf')](_0x9735('0x10'),_0x52752f[_0x9735('0xe')],_0x14b222[_0x52752f[_0x9735('0x9')][_0x9735('0xa')][_0x9735('0xb')]()]));}}}}return _0x1191e0[_0x9735('0x14')](_0x5aba0e);};exports[_0x9735('0x15')]=function(_0x35e0f6){if(_0x35e0f6&&_0x35e0f6[_0x9735('0x16')](-0x1)==='/'){return _0x35e0f6['substr'](0x0,_0x35e0f6[_0x9735('0x2')]-0x1);}return _0x35e0f6;};
\ No newline at end of file