Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / cmContact / index.js
index b4416f4..eaad53a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x24ca=['update','delete','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmContact.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/tags','getTags','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals','/:id/jscripty_sessions','getJscriptySessions','post','/merge','create','bulkCreate','setTags','diskStorage','join','root','server/files/tmp','originalname','replace','format','%s-%s%s','now','/csv','single','file','basename','extname','/upload','import','put'];(function(_0x1486b9,_0x4bb5e7){var _0x442774=function(_0x4c4da8){while(--_0x4c4da8){_0x1486b9['push'](_0x1486b9['shift']());}};_0x442774(++_0x4bb5e7);}(_0x24ca,0x1bc));var _0xa24c=function(_0x245afe,_0x319cde){_0x245afe=_0x245afe-0x0;var _0x4eefde=_0x24ca[_0x245afe];return _0x4eefde;};'use strict';var multer=require(_0xa24c('0x0'));var util=require('util');var path=require(_0xa24c('0x1'));var timeout=require(_0xa24c('0x2'));var express=require(_0xa24c('0x3'));var router=express['Router']();var auth=require(_0xa24c('0x4'));var interaction=require(_0xa24c('0x5'));var config=require(_0xa24c('0x6'));var controller=require(_0xa24c('0x7'));router[_0xa24c('0x8')]('/',auth[_0xa24c('0x9')](),controller[_0xa24c('0xa')]);router[_0xa24c('0x8')](_0xa24c('0xb'),auth[_0xa24c('0x9')](),controller[_0xa24c('0xc')]);router['get'](_0xa24c('0xd'),auth[_0xa24c('0x9')](),controller[_0xa24c('0xe')]);router['get'](_0xa24c('0xf'),auth[_0xa24c('0x9')](),controller[_0xa24c('0x10')]);router[_0xa24c('0x8')](_0xa24c('0x11'),auth[_0xa24c('0x9')](),controller[_0xa24c('0x12')]);router[_0xa24c('0x8')](_0xa24c('0x13'),auth['isAuthenticated'](),controller[_0xa24c('0x14')]);router[_0xa24c('0x8')](_0xa24c('0x15'),auth[_0xa24c('0x9')](),controller['getHopperFinals']);router[_0xa24c('0x8')](_0xa24c('0x16'),auth[_0xa24c('0x9')](),controller[_0xa24c('0x17')]);router[_0xa24c('0x18')](_0xa24c('0x19'),auth[_0xa24c('0x9')](),controller['merge']);router['post']('/',auth[_0xa24c('0x9')](),controller[_0xa24c('0x1a')]);router['post']('/create_many',auth[_0xa24c('0x9')](),controller[_0xa24c('0x1b')]);router['post'](_0xa24c('0xf'),auth['isAuthenticated'](),controller[_0xa24c('0x1c')]);var upload=multer({'storage':multer[_0xa24c('0x1d')]({'destination':function(_0x1fcd4b,_0xefdbd9,_0x4ff97c){_0x4ff97c(null,path[_0xa24c('0x1e')](config[_0xa24c('0x1f')],_0xa24c('0x20')));},'filename':function(_0x4d4bab,_0x48a768,_0x506424){_0x48a768['originalname']=_0x48a768[_0xa24c('0x21')][_0xa24c('0x22')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x506424(null,util[_0xa24c('0x23')](_0xa24c('0x24'),path['basename'](_0x48a768[_0xa24c('0x21')],path['extname'](_0x48a768[_0xa24c('0x21')])),Date[_0xa24c('0x25')](),path['extname'](_0x48a768[_0xa24c('0x21')])));}})});router[_0xa24c('0x18')](_0xa24c('0x26'),upload[_0xa24c('0x27')](_0xa24c('0x28')),controller['uploadCsv']);var upload=multer({'storage':multer[_0xa24c('0x1d')]({'destination':function(_0x5cc9cb,_0x2365f9,_0x3951ae){_0x3951ae(null,path[_0xa24c('0x1e')](config['root'],_0xa24c('0x20')));},'filename':function(_0x31c4d9,_0x14fd5a,_0x314121){_0x14fd5a[_0xa24c('0x21')]=_0x14fd5a[_0xa24c('0x21')][_0xa24c('0x22')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x314121(null,util['format'](_0xa24c('0x24'),path[_0xa24c('0x29')](_0x14fd5a[_0xa24c('0x21')],path[_0xa24c('0x2a')](_0x14fd5a['originalname'])),Date[_0xa24c('0x25')](),path[_0xa24c('0x2a')](_0x14fd5a[_0xa24c('0x21')])));}})});router['post'](_0xa24c('0x2b'),upload[_0xa24c('0x27')](_0xa24c('0x28')),controller['upload']);router[_0xa24c('0x18')]('/upload/:id',auth[_0xa24c('0x9')](),controller[_0xa24c('0x2c')]);router[_0xa24c('0x2d')]('/:id',auth[_0xa24c('0x9')](),controller[_0xa24c('0x2e')]);router[_0xa24c('0x2f')]('/:id',auth[_0xa24c('0x9')](),controller['destroy']);module[_0xa24c('0x30')]=router;
\ No newline at end of file
+var _0xf494=['getTags','/:id/hoppers','getHopperHistories','getHopperFinals','/:id/jscripty_sessions','getJscriptySessions','post','merge','/create_many','join','root','server/files/tmp','originalname','replace','%s-%s%s','basename','now','extname','/csv','uploadCsv','diskStorage','/upload','single','file','/upload/:id','import','put','update','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmContact.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/tags'];(function(_0x41e7ac,_0x231449){var _0x5eb92c=function(_0x120474){while(--_0x120474){_0x41e7ac['push'](_0x41e7ac['shift']());}};_0x5eb92c(++_0x231449);}(_0xf494,0x1c6));var _0x4f49=function(_0x4e9c78,_0x4d150a){_0x4e9c78=_0x4e9c78-0x0;var _0x580ba9=_0xf494[_0x4e9c78];return _0x580ba9;};'use strict';var multer=require(_0x4f49('0x0'));var util=require(_0x4f49('0x1'));var path=require(_0x4f49('0x2'));var timeout=require('connect-timeout');var express=require(_0x4f49('0x3'));var router=express[_0x4f49('0x4')]();var auth=require(_0x4f49('0x5'));var interaction=require(_0x4f49('0x6'));var config=require(_0x4f49('0x7'));var controller=require(_0x4f49('0x8'));router[_0x4f49('0x9')]('/',auth[_0x4f49('0xa')](),controller[_0x4f49('0xb')]);router[_0x4f49('0x9')](_0x4f49('0xc'),auth['isAuthenticated'](),controller['describe']);router[_0x4f49('0x9')](_0x4f49('0xd'),auth[_0x4f49('0xa')](),controller[_0x4f49('0xe')]);router[_0x4f49('0x9')](_0x4f49('0xf'),auth[_0x4f49('0xa')](),controller[_0x4f49('0x10')]);router['get'](_0x4f49('0x11'),auth[_0x4f49('0xa')](),controller['getHoppers']);router[_0x4f49('0x9')]('/:id/hopper_histories',auth['isAuthenticated'](),controller[_0x4f49('0x12')]);router[_0x4f49('0x9')]('/:id/hopper_finals',auth[_0x4f49('0xa')](),controller[_0x4f49('0x13')]);router[_0x4f49('0x9')](_0x4f49('0x14'),auth[_0x4f49('0xa')](),controller[_0x4f49('0x15')]);router[_0x4f49('0x16')]('/merge',auth[_0x4f49('0xa')](),controller[_0x4f49('0x17')]);router[_0x4f49('0x16')]('/',auth['isAuthenticated'](),controller['create']);router[_0x4f49('0x16')](_0x4f49('0x18'),auth[_0x4f49('0xa')](),controller['bulkCreate']);router[_0x4f49('0x16')](_0x4f49('0xf'),auth[_0x4f49('0xa')](),controller['setTags']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x560592,_0x47f1e8,_0xb2081a){_0xb2081a(null,path[_0x4f49('0x19')](config[_0x4f49('0x1a')],_0x4f49('0x1b')));},'filename':function(_0x5793ac,_0x416893,_0x2aed27){_0x416893[_0x4f49('0x1c')]=_0x416893[_0x4f49('0x1c')][_0x4f49('0x1d')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x2aed27(null,util['format'](_0x4f49('0x1e'),path[_0x4f49('0x1f')](_0x416893[_0x4f49('0x1c')],path['extname'](_0x416893[_0x4f49('0x1c')])),Date[_0x4f49('0x20')](),path[_0x4f49('0x21')](_0x416893[_0x4f49('0x1c')])));}})});router[_0x4f49('0x16')](_0x4f49('0x22'),upload['single']('file'),controller[_0x4f49('0x23')]);var upload=multer({'storage':multer[_0x4f49('0x24')]({'destination':function(_0x4fedbb,_0x408552,_0x2c1519){_0x2c1519(null,path[_0x4f49('0x19')](config['root'],_0x4f49('0x1b')));},'filename':function(_0x2eed1c,_0x298785,_0x148153){_0x298785[_0x4f49('0x1c')]=_0x298785[_0x4f49('0x1c')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x148153(null,util['format'](_0x4f49('0x1e'),path[_0x4f49('0x1f')](_0x298785[_0x4f49('0x1c')],path['extname'](_0x298785[_0x4f49('0x1c')])),Date[_0x4f49('0x20')](),path[_0x4f49('0x21')](_0x298785['originalname'])));}})});router['post'](_0x4f49('0x25'),upload[_0x4f49('0x26')](_0x4f49('0x27')),controller['upload']);router[_0x4f49('0x16')](_0x4f49('0x28'),auth[_0x4f49('0xa')](),controller[_0x4f49('0x29')]);router[_0x4f49('0x2a')](_0x4f49('0xd'),auth[_0x4f49('0xa')](),controller[_0x4f49('0x2b')]);router[_0x4f49('0x2c')](_0x4f49('0xd'),auth[_0x4f49('0xa')](),controller[_0x4f49('0x2d')]);module[_0x4f49('0x2e')]=router;
\ No newline at end of file