Built motion from commit 06eb8eb0.|2.6.31
[motion2.git] / server / services / ami / trigger / integration / util.js
index bc9d2d3..3aaad0b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd304=['substring','lastIndexOf','validateEmail','isNil','lodash','util','getString','sortBy','length','string','push','content','variable','variableName','type','customVariable','Variable','toLowerCase','name','toString','keyType','key','format','%s:\x20%s','keyContent','join','stripTrailingSlash','slice'];(function(_0x66555b,_0x696b02){var _0x36aa73=function(_0x338a65){while(--_0x338a65){_0x66555b['push'](_0x66555b['shift']());}};_0x36aa73(++_0x696b02);}(_0xd304,0x74));var _0x4d30=function(_0x4bcb49,_0x5117cb){_0x4bcb49=_0x4bcb49-0x0;var _0x242786=_0xd304[_0x4bcb49];return _0x242786;};'use strict';var _=require(_0x4d30('0x0'));var util=require(_0x4d30('0x1'));exports[_0x4d30('0x2')]=function(_0x4dd9df,_0xeb0506,_0x263168){var _0x1ed3ac=[];if(_0x4dd9df['length']>0x0){var _0x12466d=_[_0x4d30('0x3')](_0x4dd9df,['id']);for(var _0x507880=0x0;_0x507880<_0x12466d[_0x4d30('0x4')];_0x507880++){var _0x522eb5=_0x12466d[_0x507880];if(_0x522eb5['type']===_0x4d30('0x5')){_0x1ed3ac[_0x4d30('0x6')](_0x522eb5[_0x4d30('0x7')]);}else if(_0x522eb5['type']===_0x4d30('0x8')&&_0x522eb5[_0x4d30('0x9')]){_0xeb0506[_0x522eb5['variableName']]&&_0x1ed3ac[_0x4d30('0x6')](_0xeb0506[_0x522eb5[_0x4d30('0x9')]]['toString']());}else if(_0x522eb5[_0x4d30('0xa')]===_0x4d30('0xb')&&_0x522eb5[_0x4d30('0xc')]&&_0x522eb5['Variable']['name']){_0xeb0506[_0x522eb5[_0x4d30('0xc')]['name'][_0x4d30('0xd')]()]&&_0x1ed3ac['push'](_0xeb0506[_0x522eb5['Variable'][_0x4d30('0xe')]['toLowerCase']()][_0x4d30('0xf')]());}else if(_0x522eb5[_0x4d30('0xa')]==='keyValue'){if(_0x522eb5[_0x4d30('0x10')]===_0x4d30('0x5')&&_0x522eb5[_0x4d30('0x11')]){_0x1ed3ac['push'](util[_0x4d30('0x12')](_0x4d30('0x13'),_0x522eb5['key'],_0x522eb5[_0x4d30('0x14')]));}else if(_0x522eb5[_0x4d30('0x10')]===_0x4d30('0x8')&&_0x522eb5['variableName']&&_0x522eb5['key']){_0xeb0506[_0x522eb5['variableName']]&&_0x1ed3ac[_0x4d30('0x6')](util['format'](_0x4d30('0x13'),_0x522eb5[_0x4d30('0x11')],_0xeb0506[_0x522eb5[_0x4d30('0x9')]]));}else if(_0x522eb5[_0x4d30('0x10')]==='customVariable'&&_0x522eb5[_0x4d30('0xc')]&&_0x522eb5[_0x4d30('0xc')][_0x4d30('0xe')]&&_0x522eb5['key']){_0xeb0506[_0x522eb5['Variable'][_0x4d30('0xe')]['toLowerCase']()]&&_0x1ed3ac['push'](util['format'](_0x4d30('0x13'),_0x522eb5[_0x4d30('0x11')],_0xeb0506[_0x522eb5['Variable']['name'][_0x4d30('0xd')]()]));}}}}return _0x1ed3ac[_0x4d30('0x15')](_0x263168);};exports[_0x4d30('0x16')]=function(_0x3c2e52){var _0xbcf697=_0x3c2e52[_0x4d30('0x17')](-0x1);if(_0xbcf697==='/'){_0x3c2e52=_0x3c2e52[_0x4d30('0x18')](0x0,_0x3c2e52[_0x4d30('0x19')](_0xbcf697));}return _0x3c2e52;};exports[_0x4d30('0x1a')]=function(_0x407860){if(!_[_0x4d30('0x1b')](_0x407860)&&_0x407860!==''){var _0x5e450a=/^(([^<>()\[\]\\.,;:\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 _0x5e450a['test'](String(_0x407860)[_0x4d30('0xd')]());}else{return![];}};
\ No newline at end of file
+var _0xef71=['variableName','toString','Variable','name','toLowerCase','%s:\x20%s','keyType','format','key','join','stripTrailingSlash','slice','substring','lastIndexOf','validateEmail','isNil','test','lodash','util','getString','length','sortBy','type','string','push','variable'];(function(_0x2c20a3,_0x15183b){var _0x474693=function(_0x5d851f){while(--_0x5d851f){_0x2c20a3['push'](_0x2c20a3['shift']());}};_0x474693(++_0x15183b);}(_0xef71,0xc7));var _0x1ef7=function(_0x46c59b,_0x5635dd){_0x46c59b=_0x46c59b-0x0;var _0x16dd2d=_0xef71[_0x46c59b];return _0x16dd2d;};'use strict';var _=require(_0x1ef7('0x0'));var util=require(_0x1ef7('0x1'));exports[_0x1ef7('0x2')]=function(_0x33ebd8,_0x55bdac,_0x9126a7){var _0x2e17de=[];if(_0x33ebd8[_0x1ef7('0x3')]>0x0){var _0x5982de=_[_0x1ef7('0x4')](_0x33ebd8,['id']);for(var _0x36ac23=0x0;_0x36ac23<_0x5982de[_0x1ef7('0x3')];_0x36ac23++){var _0xe0dc10=_0x5982de[_0x36ac23];if(_0xe0dc10[_0x1ef7('0x5')]===_0x1ef7('0x6')){_0x2e17de[_0x1ef7('0x7')](_0xe0dc10['content']);}else if(_0xe0dc10[_0x1ef7('0x5')]===_0x1ef7('0x8')&&_0xe0dc10[_0x1ef7('0x9')]){_0x55bdac[_0xe0dc10['variableName']]&&_0x2e17de['push'](_0x55bdac[_0xe0dc10[_0x1ef7('0x9')]][_0x1ef7('0xa')]());}else if(_0xe0dc10['type']==='customVariable'&&_0xe0dc10[_0x1ef7('0xb')]&&_0xe0dc10[_0x1ef7('0xb')][_0x1ef7('0xc')]){_0x55bdac[_0xe0dc10[_0x1ef7('0xb')][_0x1ef7('0xc')][_0x1ef7('0xd')]()]&&_0x2e17de[_0x1ef7('0x7')](_0x55bdac[_0xe0dc10[_0x1ef7('0xb')]['name']['toLowerCase']()][_0x1ef7('0xa')]());}else if(_0xe0dc10[_0x1ef7('0x5')]==='keyValue'){if(_0xe0dc10['keyType']===_0x1ef7('0x6')&&_0xe0dc10['key']){_0x2e17de[_0x1ef7('0x7')](util['format'](_0x1ef7('0xe'),_0xe0dc10['key'],_0xe0dc10['keyContent']));}else if(_0xe0dc10[_0x1ef7('0xf')]===_0x1ef7('0x8')&&_0xe0dc10['variableName']&&_0xe0dc10['key']){_0x55bdac[_0xe0dc10[_0x1ef7('0x9')]]&&_0x2e17de['push'](util[_0x1ef7('0x10')](_0x1ef7('0xe'),_0xe0dc10[_0x1ef7('0x11')],_0x55bdac[_0xe0dc10[_0x1ef7('0x9')]]));}else if(_0xe0dc10[_0x1ef7('0xf')]==='customVariable'&&_0xe0dc10[_0x1ef7('0xb')]&&_0xe0dc10['Variable']['name']&&_0xe0dc10[_0x1ef7('0x11')]){_0x55bdac[_0xe0dc10[_0x1ef7('0xb')][_0x1ef7('0xc')][_0x1ef7('0xd')]()]&&_0x2e17de[_0x1ef7('0x7')](util[_0x1ef7('0x10')](_0x1ef7('0xe'),_0xe0dc10[_0x1ef7('0x11')],_0x55bdac[_0xe0dc10['Variable'][_0x1ef7('0xc')][_0x1ef7('0xd')]()]));}}}}return _0x2e17de[_0x1ef7('0x12')](_0x9126a7);};exports[_0x1ef7('0x13')]=function(_0x51ef12){var _0x515468=_0x51ef12[_0x1ef7('0x14')](-0x1);if(_0x515468==='/'){_0x51ef12=_0x51ef12[_0x1ef7('0x15')](0x0,_0x51ef12[_0x1ef7('0x16')](_0x515468));}return _0x51ef12;};exports[_0x1ef7('0x17')]=function(_0x46ff08){if(!_[_0x1ef7('0x18')](_0x46ff08)&&_0x46ff08!==''){var _0x3cc659=/^(([^<>()\[\]\\.,;:\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 _0x3cc659[_0x1ef7('0x19')](String(_0x46ff08)['toLowerCase']());}else{return![];}};
\ No newline at end of file