Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / cmContact / index.js
index b4cff65..3c5353b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb4c7=['diskStorage','join','root','server/files/tmp','originalname','replace','format','%s-%s%s','basename','extname','now','/csv','single','file','uploadCsv','/upload','upload','import','put','/:id','delete','destroy','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmContact.controller','get','index','/describe','describe','isAuthenticated','show','/:id/tags','getTags','/:id/hoppers','getHoppers','getHopperHistories','/:id/hopper_finals','getHopperFinals','/:id/jscripty_sessions','getJscriptySessions','/merge','merge','post','create','/create_many','bulkCreate'];(function(_0x1ff1ca,_0x8f9278){var _0x1dbb66=function(_0x45b448){while(--_0x45b448){_0x1ff1ca['push'](_0x1ff1ca['shift']());}};_0x1dbb66(++_0x8f9278);}(_0xb4c7,0x1ea));var _0x7b4c=function(_0x47d469,_0x2410bb){_0x47d469=_0x47d469-0x0;var _0x39c2ed=_0xb4c7[_0x47d469];return _0x39c2ed;};'use strict';var multer=require(_0x7b4c('0x0'));var util=require(_0x7b4c('0x1'));var path=require(_0x7b4c('0x2'));var timeout=require(_0x7b4c('0x3'));var express=require(_0x7b4c('0x4'));var router=express['Router']();var auth=require(_0x7b4c('0x5'));var interaction=require(_0x7b4c('0x6'));var config=require(_0x7b4c('0x7'));var controller=require(_0x7b4c('0x8'));router[_0x7b4c('0x9')]('/',auth['isAuthenticated'](),controller[_0x7b4c('0xa')]);router[_0x7b4c('0x9')](_0x7b4c('0xb'),auth['isAuthenticated'](),controller[_0x7b4c('0xc')]);router[_0x7b4c('0x9')]('/:id',auth[_0x7b4c('0xd')](),controller[_0x7b4c('0xe')]);router[_0x7b4c('0x9')](_0x7b4c('0xf'),auth[_0x7b4c('0xd')](),controller[_0x7b4c('0x10')]);router[_0x7b4c('0x9')](_0x7b4c('0x11'),auth[_0x7b4c('0xd')](),controller[_0x7b4c('0x12')]);router['get']('/:id/hopper_histories',auth[_0x7b4c('0xd')](),controller[_0x7b4c('0x13')]);router[_0x7b4c('0x9')](_0x7b4c('0x14'),auth[_0x7b4c('0xd')](),controller[_0x7b4c('0x15')]);router[_0x7b4c('0x9')](_0x7b4c('0x16'),auth[_0x7b4c('0xd')](),controller[_0x7b4c('0x17')]);router['post'](_0x7b4c('0x18'),auth[_0x7b4c('0xd')](),controller[_0x7b4c('0x19')]);router[_0x7b4c('0x1a')]('/',auth[_0x7b4c('0xd')](),controller[_0x7b4c('0x1b')]);router[_0x7b4c('0x1a')](_0x7b4c('0x1c'),auth['isAuthenticated'](),controller[_0x7b4c('0x1d')]);router[_0x7b4c('0x1a')](_0x7b4c('0xf'),auth[_0x7b4c('0xd')](),controller['setTags']);var upload=multer({'storage':multer[_0x7b4c('0x1e')]({'destination':function(_0x3d314d,_0x32110e,_0x380b79){_0x380b79(null,path[_0x7b4c('0x1f')](config[_0x7b4c('0x20')],_0x7b4c('0x21')));},'filename':function(_0x445281,_0x3556d8,_0x55e3df){_0x3556d8[_0x7b4c('0x22')]=_0x3556d8[_0x7b4c('0x22')][_0x7b4c('0x23')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x55e3df(null,util[_0x7b4c('0x24')](_0x7b4c('0x25'),path[_0x7b4c('0x26')](_0x3556d8[_0x7b4c('0x22')],path[_0x7b4c('0x27')](_0x3556d8[_0x7b4c('0x22')])),Date[_0x7b4c('0x28')](),path['extname'](_0x3556d8[_0x7b4c('0x22')])));}})});router[_0x7b4c('0x1a')](_0x7b4c('0x29'),upload[_0x7b4c('0x2a')](_0x7b4c('0x2b')),controller[_0x7b4c('0x2c')]);var upload=multer({'storage':multer[_0x7b4c('0x1e')]({'destination':function(_0x459eb4,_0x1f311e,_0x1a69db){_0x1a69db(null,path[_0x7b4c('0x1f')](config[_0x7b4c('0x20')],_0x7b4c('0x21')));},'filename':function(_0x501f75,_0x27f361,_0x3ab614){_0x27f361[_0x7b4c('0x22')]=_0x27f361[_0x7b4c('0x22')][_0x7b4c('0x23')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x3ab614(null,util[_0x7b4c('0x24')](_0x7b4c('0x25'),path[_0x7b4c('0x26')](_0x27f361[_0x7b4c('0x22')],path[_0x7b4c('0x27')](_0x27f361[_0x7b4c('0x22')])),Date[_0x7b4c('0x28')](),path[_0x7b4c('0x27')](_0x27f361[_0x7b4c('0x22')])));}})});router[_0x7b4c('0x1a')](_0x7b4c('0x2d'),upload[_0x7b4c('0x2a')](_0x7b4c('0x2b')),controller[_0x7b4c('0x2e')]);router['post']('/upload/:id',auth['isAuthenticated'](),controller[_0x7b4c('0x2f')]);router[_0x7b4c('0x30')](_0x7b4c('0x31'),auth[_0x7b4c('0xd')](),controller['update']);router[_0x7b4c('0x32')](_0x7b4c('0x31'),auth['isAuthenticated'](),controller[_0x7b4c('0x33')]);module['exports']=router;
\ No newline at end of file
+var _0xdc97=['%s-%s%s','extname','import','put','update','delete','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','./cmContact.controller','get','isAuthenticated','index','/describe','/:id','show','getTags','/:id/hoppers','getHoppers','/:id/hopper_finals','/:id/jscripty_sessions','getJscriptySessions','post','/merge','merge','create','/create_many','bulkCreate','diskStorage','join','root','server/files/tmp','originalname','replace','basename','now','/csv','file','uploadCsv','format'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0xdc97,0x13b));var _0x7dc9=function(_0x1311e1,_0x1816a9){_0x1311e1=_0x1311e1-0x0;var _0x3c7471=_0xdc97[_0x1311e1];return _0x3c7471;};'use strict';var multer=require(_0x7dc9('0x0'));var util=require(_0x7dc9('0x1'));var path=require(_0x7dc9('0x2'));var timeout=require('connect-timeout');var express=require(_0x7dc9('0x3'));var router=express['Router']();var auth=require(_0x7dc9('0x4'));var interaction=require(_0x7dc9('0x5'));var config=require('../../config/environment');var controller=require(_0x7dc9('0x6'));router[_0x7dc9('0x7')]('/',auth[_0x7dc9('0x8')](),controller[_0x7dc9('0x9')]);router['get'](_0x7dc9('0xa'),auth['isAuthenticated'](),controller['describe']);router[_0x7dc9('0x7')](_0x7dc9('0xb'),auth[_0x7dc9('0x8')](),controller[_0x7dc9('0xc')]);router[_0x7dc9('0x7')]('/:id/tags',auth[_0x7dc9('0x8')](),controller[_0x7dc9('0xd')]);router[_0x7dc9('0x7')](_0x7dc9('0xe'),auth[_0x7dc9('0x8')](),controller[_0x7dc9('0xf')]);router[_0x7dc9('0x7')]('/:id/hopper_histories',auth['isAuthenticated'](),controller['getHopperHistories']);router['get'](_0x7dc9('0x10'),auth[_0x7dc9('0x8')](),controller['getHopperFinals']);router[_0x7dc9('0x7')](_0x7dc9('0x11'),auth[_0x7dc9('0x8')](),controller[_0x7dc9('0x12')]);router[_0x7dc9('0x13')](_0x7dc9('0x14'),auth['isAuthenticated'](),controller[_0x7dc9('0x15')]);router[_0x7dc9('0x13')]('/',auth[_0x7dc9('0x8')](),controller[_0x7dc9('0x16')]);router[_0x7dc9('0x13')](_0x7dc9('0x17'),auth[_0x7dc9('0x8')](),controller[_0x7dc9('0x18')]);router[_0x7dc9('0x13')]('/:id/tags',auth[_0x7dc9('0x8')](),controller['setTags']);var upload=multer({'storage':multer[_0x7dc9('0x19')]({'destination':function(_0x1cc237,_0x5d61d7,_0x41f66e){_0x41f66e(null,path[_0x7dc9('0x1a')](config[_0x7dc9('0x1b')],_0x7dc9('0x1c')));},'filename':function(_0x43ec33,_0x184bfd,_0x2dad65){_0x184bfd[_0x7dc9('0x1d')]=_0x184bfd[_0x7dc9('0x1d')][_0x7dc9('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x2dad65(null,util['format']('%s-%s%s',path[_0x7dc9('0x1f')](_0x184bfd[_0x7dc9('0x1d')],path['extname'](_0x184bfd[_0x7dc9('0x1d')])),Date[_0x7dc9('0x20')](),path['extname'](_0x184bfd[_0x7dc9('0x1d')])));}})});router[_0x7dc9('0x13')](_0x7dc9('0x21'),upload['single'](_0x7dc9('0x22')),controller[_0x7dc9('0x23')]);var upload=multer({'storage':multer[_0x7dc9('0x19')]({'destination':function(_0x55a482,_0x48c6bc,_0x4b9ba6){_0x4b9ba6(null,path[_0x7dc9('0x1a')](config[_0x7dc9('0x1b')],'server/files/tmp'));},'filename':function(_0x585eef,_0x47771b,_0x5afb7d){_0x47771b[_0x7dc9('0x1d')]=_0x47771b[_0x7dc9('0x1d')][_0x7dc9('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x5afb7d(null,util[_0x7dc9('0x24')](_0x7dc9('0x25'),path[_0x7dc9('0x1f')](_0x47771b[_0x7dc9('0x1d')],path[_0x7dc9('0x26')](_0x47771b[_0x7dc9('0x1d')])),Date[_0x7dc9('0x20')](),path[_0x7dc9('0x26')](_0x47771b[_0x7dc9('0x1d')])));}})});router['post']('/upload',upload['single']('file'),controller['upload']);router['post']('/upload/:id',auth['isAuthenticated'](),controller[_0x7dc9('0x27')]);router[_0x7dc9('0x28')](_0x7dc9('0xb'),auth[_0x7dc9('0x8')](),controller[_0x7dc9('0x29')]);router[_0x7dc9('0x2a')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x7dc9('0x2b')]=router;
\ No newline at end of file