Built motion from commit 14588770.|2.5.38
[motion2.git] / server / services / ami / trigger / integration / util.js
index cbf8aae..5bd63bf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb8ef=['test','lodash','getString','length','sortBy','string','push','content','type','variable','variableName','toString','Variable','name','toLowerCase','keyValue','keyType','key','format','customVariable','%s:\x20%s','join','stripTrailingSlash','slice','substring','lastIndexOf','validateEmail','isNil'];(function(_0x38552c,_0x8aadcc){var _0x25b2aa=function(_0x425951){while(--_0x425951){_0x38552c['push'](_0x38552c['shift']());}};_0x25b2aa(++_0x8aadcc);}(_0xb8ef,0x1a5));var _0xfb8e=function(_0x3a3822,_0x1e4fd1){_0x3a3822=_0x3a3822-0x0;var _0x2f9aca=_0xb8ef[_0x3a3822];return _0x2f9aca;};'use strict';var _=require(_0xfb8e('0x0'));var util=require('util');exports[_0xfb8e('0x1')]=function(_0x2740c0,_0x16f7de,_0xaaeb9e){var _0x383a64=[];if(_0x2740c0[_0xfb8e('0x2')]>0x0){var _0x254740=_[_0xfb8e('0x3')](_0x2740c0,['id']);for(var _0x1d413a=0x0;_0x1d413a<_0x254740[_0xfb8e('0x2')];_0x1d413a++){var _0x176eac=_0x254740[_0x1d413a];if(_0x176eac['type']===_0xfb8e('0x4')){_0x383a64[_0xfb8e('0x5')](_0x176eac[_0xfb8e('0x6')]);}else if(_0x176eac[_0xfb8e('0x7')]===_0xfb8e('0x8')&&_0x176eac['variableName']){_0x16f7de[_0x176eac[_0xfb8e('0x9')]]&&_0x383a64[_0xfb8e('0x5')](_0x16f7de[_0x176eac[_0xfb8e('0x9')]][_0xfb8e('0xa')]());}else if(_0x176eac[_0xfb8e('0x7')]==='customVariable'&&_0x176eac[_0xfb8e('0xb')]&&_0x176eac['Variable']['name']){_0x16f7de[_0x176eac[_0xfb8e('0xb')][_0xfb8e('0xc')][_0xfb8e('0xd')]()]&&_0x383a64[_0xfb8e('0x5')](_0x16f7de[_0x176eac['Variable']['name'][_0xfb8e('0xd')]()][_0xfb8e('0xa')]());}else if(_0x176eac[_0xfb8e('0x7')]===_0xfb8e('0xe')){if(_0x176eac[_0xfb8e('0xf')]===_0xfb8e('0x4')&&_0x176eac[_0xfb8e('0x10')]){_0x383a64['push'](util[_0xfb8e('0x11')]('%s:\x20%s',_0x176eac[_0xfb8e('0x10')],_0x176eac['keyContent']));}else if(_0x176eac['keyType']===_0xfb8e('0x8')&&_0x176eac[_0xfb8e('0x9')]&&_0x176eac[_0xfb8e('0x10')]){_0x16f7de[_0x176eac['variableName']]&&_0x383a64[_0xfb8e('0x5')](util[_0xfb8e('0x11')]('%s:\x20%s',_0x176eac['key'],_0x16f7de[_0x176eac[_0xfb8e('0x9')]]));}else if(_0x176eac[_0xfb8e('0xf')]===_0xfb8e('0x12')&&_0x176eac['Variable']&&_0x176eac[_0xfb8e('0xb')][_0xfb8e('0xc')]&&_0x176eac[_0xfb8e('0x10')]){_0x16f7de[_0x176eac[_0xfb8e('0xb')][_0xfb8e('0xc')]['toLowerCase']()]&&_0x383a64['push'](util[_0xfb8e('0x11')](_0xfb8e('0x13'),_0x176eac[_0xfb8e('0x10')],_0x16f7de[_0x176eac['Variable']['name'][_0xfb8e('0xd')]()]));}}}}return _0x383a64[_0xfb8e('0x14')](_0xaaeb9e);};exports[_0xfb8e('0x15')]=function(_0x6f9833){var _0x12cae7=_0x6f9833[_0xfb8e('0x16')](-0x1);if(_0x12cae7==='/'){_0x6f9833=_0x6f9833[_0xfb8e('0x17')](0x0,_0x6f9833[_0xfb8e('0x18')](_0x12cae7));}return _0x6f9833;};exports[_0xfb8e('0x19')]=function(_0x247731){if(!_[_0xfb8e('0x1a')](_0x247731)&&_0x247731!==''){var _0x5d28e9=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return _0x5d28e9[_0xfb8e('0x1b')](String(_0x247731)[_0xfb8e('0xd')]());}else{return![];}};
\ No newline at end of file
+var _0x166f=['slice','substring','lastIndexOf','validateEmail','isNil','test','lodash','util','getString','length','sortBy','type','string','push','content','variableName','toString','Variable','toLowerCase','name','keyValue','keyType','key','format','%s:\x20%s','keyContent','variable','customVariable','stripTrailingSlash'];(function(_0x386247,_0x5dcfa9){var _0x3abf65=function(_0x29d423){while(--_0x29d423){_0x386247['push'](_0x386247['shift']());}};_0x3abf65(++_0x5dcfa9);}(_0x166f,0x162));var _0xf166=function(_0x7d9ab4,_0x1114a1){_0x7d9ab4=_0x7d9ab4-0x0;var _0x12572c=_0x166f[_0x7d9ab4];return _0x12572c;};'use strict';var _=require(_0xf166('0x0'));var util=require(_0xf166('0x1'));exports[_0xf166('0x2')]=function(_0x42b529,_0x5cd4e0,_0x4f5cff){var _0x554065=[];if(_0x42b529[_0xf166('0x3')]>0x0){var _0xb9290=_[_0xf166('0x4')](_0x42b529,['id']);for(var _0xc77552=0x0;_0xc77552<_0xb9290[_0xf166('0x3')];_0xc77552++){var _0x41ce11=_0xb9290[_0xc77552];if(_0x41ce11[_0xf166('0x5')]===_0xf166('0x6')){_0x554065[_0xf166('0x7')](_0x41ce11[_0xf166('0x8')]);}else if(_0x41ce11[_0xf166('0x5')]==='variable'&&_0x41ce11[_0xf166('0x9')]){_0x5cd4e0[_0x41ce11['variableName']]&&_0x554065['push'](_0x5cd4e0[_0x41ce11[_0xf166('0x9')]][_0xf166('0xa')]());}else if(_0x41ce11[_0xf166('0x5')]==='customVariable'&&_0x41ce11['Variable']&&_0x41ce11[_0xf166('0xb')]['name']){_0x5cd4e0[_0x41ce11[_0xf166('0xb')]['name'][_0xf166('0xc')]()]&&_0x554065['push'](_0x5cd4e0[_0x41ce11[_0xf166('0xb')][_0xf166('0xd')][_0xf166('0xc')]()]['toString']());}else if(_0x41ce11[_0xf166('0x5')]===_0xf166('0xe')){if(_0x41ce11[_0xf166('0xf')]===_0xf166('0x6')&&_0x41ce11[_0xf166('0x10')]){_0x554065['push'](util[_0xf166('0x11')](_0xf166('0x12'),_0x41ce11[_0xf166('0x10')],_0x41ce11[_0xf166('0x13')]));}else if(_0x41ce11['keyType']===_0xf166('0x14')&&_0x41ce11['variableName']&&_0x41ce11[_0xf166('0x10')]){_0x5cd4e0[_0x41ce11[_0xf166('0x9')]]&&_0x554065[_0xf166('0x7')](util['format'](_0xf166('0x12'),_0x41ce11[_0xf166('0x10')],_0x5cd4e0[_0x41ce11['variableName']]));}else if(_0x41ce11[_0xf166('0xf')]===_0xf166('0x15')&&_0x41ce11[_0xf166('0xb')]&&_0x41ce11[_0xf166('0xb')][_0xf166('0xd')]&&_0x41ce11['key']){_0x5cd4e0[_0x41ce11[_0xf166('0xb')]['name'][_0xf166('0xc')]()]&&_0x554065['push'](util[_0xf166('0x11')]('%s:\x20%s',_0x41ce11['key'],_0x5cd4e0[_0x41ce11[_0xf166('0xb')][_0xf166('0xd')][_0xf166('0xc')]()]));}}}}return _0x554065['join'](_0x4f5cff);};exports[_0xf166('0x16')]=function(_0x25dc91){var _0xd6c8d8=_0x25dc91[_0xf166('0x17')](-0x1);if(_0xd6c8d8==='/'){_0x25dc91=_0x25dc91[_0xf166('0x18')](0x0,_0x25dc91[_0xf166('0x19')](_0xd6c8d8));}return _0x25dc91;};exports[_0xf166('0x1a')]=function(_0x1a77cb){if(!_[_0xf166('0x1b')](_0x1a77cb)&&_0x1a77cb!==''){var _0x52659f=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return _0x52659f[_0xf166('0x1c')](String(_0x1a77cb)[_0xf166('0xc')]());}else{return![];}};
\ No newline at end of file