Built motion from commit (unavailable).|2.4.3
[motion2.git] / server / api / cmContact / index.js
index 1ca1c65..a72359c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9fbc=['basename','extname','/csv','single','file','uploadCsv','diskStorage','format','now','/upload/:id','import','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','/:id/tags','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals','/:id/jscripty_sessions','getJscriptySessions','merge','post','create','/create_many','bulkCreate','setTags','join','root','originalname','replace','%s-%s%s'];(function(_0x46540f,_0x526976){var _0x21f6f5=function(_0x48b5d6){while(--_0x48b5d6){_0x46540f['push'](_0x46540f['shift']());}};_0x21f6f5(++_0x526976);}(_0x9fbc,0x71));var _0xc9fb=function(_0x3a2a33,_0x29372a){_0x3a2a33=_0x3a2a33-0x0;var _0x10d6d2=_0x9fbc[_0x3a2a33];return _0x10d6d2;};'use strict';var multer=require(_0xc9fb('0x0'));var util=require(_0xc9fb('0x1'));var path=require(_0xc9fb('0x2'));var timeout=require(_0xc9fb('0x3'));var express=require(_0xc9fb('0x4'));var router=express[_0xc9fb('0x5')]();var auth=require(_0xc9fb('0x6'));var interaction=require(_0xc9fb('0x7'));var config=require(_0xc9fb('0x8'));var controller=require('./cmContact.controller');router[_0xc9fb('0x9')]('/',auth[_0xc9fb('0xa')](),controller[_0xc9fb('0xb')]);router[_0xc9fb('0x9')](_0xc9fb('0xc'),auth[_0xc9fb('0xa')](),controller[_0xc9fb('0xd')]);router[_0xc9fb('0x9')](_0xc9fb('0xe'),auth[_0xc9fb('0xa')](),controller['show']);router[_0xc9fb('0x9')](_0xc9fb('0xf'),auth[_0xc9fb('0xa')](),controller['getTags']);router[_0xc9fb('0x9')](_0xc9fb('0x10'),auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x11')]);router[_0xc9fb('0x9')](_0xc9fb('0x12'),auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x13')]);router[_0xc9fb('0x9')](_0xc9fb('0x14'),auth['isAuthenticated'](),controller['getHopperFinals']);router[_0xc9fb('0x9')](_0xc9fb('0x15'),auth['isAuthenticated'](),controller[_0xc9fb('0x16')]);router['post']('/merge',auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x17')]);router[_0xc9fb('0x18')]('/',auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x19')]);router[_0xc9fb('0x18')](_0xc9fb('0x1a'),auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x1b')]);router[_0xc9fb('0x18')](_0xc9fb('0xf'),auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x1c')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x25dcdc,_0x535e68,_0x424f56){_0x424f56(null,path[_0xc9fb('0x1d')](config[_0xc9fb('0x1e')],'server/files/tmp'));},'filename':function(_0x31834d,_0x10adb6,_0x364096){_0x10adb6[_0xc9fb('0x1f')]=_0x10adb6[_0xc9fb('0x1f')][_0xc9fb('0x20')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x364096(null,util['format'](_0xc9fb('0x21'),path[_0xc9fb('0x22')](_0x10adb6['originalname'],path[_0xc9fb('0x23')](_0x10adb6[_0xc9fb('0x1f')])),Date['now'](),path[_0xc9fb('0x23')](_0x10adb6[_0xc9fb('0x1f')])));}})});router['post'](_0xc9fb('0x24'),upload[_0xc9fb('0x25')](_0xc9fb('0x26')),controller[_0xc9fb('0x27')]);var upload=multer({'storage':multer[_0xc9fb('0x28')]({'destination':function(_0x4eddca,_0x4c0b40,_0x66b940){_0x66b940(null,path[_0xc9fb('0x1d')](config['root'],'server/files/tmp'));},'filename':function(_0x374a58,_0x56b9f4,_0x8654b9){_0x56b9f4[_0xc9fb('0x1f')]=_0x56b9f4['originalname'][_0xc9fb('0x20')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x8654b9(null,util[_0xc9fb('0x29')](_0xc9fb('0x21'),path[_0xc9fb('0x22')](_0x56b9f4[_0xc9fb('0x1f')],path[_0xc9fb('0x23')](_0x56b9f4[_0xc9fb('0x1f')])),Date[_0xc9fb('0x2a')](),path['extname'](_0x56b9f4['originalname'])));}})});router[_0xc9fb('0x18')]('/upload',upload[_0xc9fb('0x25')](_0xc9fb('0x26')),controller['upload']);router['post'](_0xc9fb('0x2b'),auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x2c')]);router[_0xc9fb('0x2d')](_0xc9fb('0xe'),auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x2e')]);router[_0xc9fb('0x2f')]('/:id',auth[_0xc9fb('0xa')](),controller[_0xc9fb('0x30')]);module['exports']=router;
\ No newline at end of file
+var _0x34be=['../../config/environment','./cmContact.controller','get','index','isAuthenticated','describe','/:id','show','getTags','getHoppers','getHopperHistories','getHopperFinals','/:id/jscripty_sessions','getJscriptySessions','post','/create_many','bulkCreate','setTags','diskStorage','root','server/files/tmp','originalname','replace','format','%s-%s%s','basename','now','extname','/csv','single','file','uploadCsv','join','/upload','upload','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x299240,_0x453006){var _0x44b948=function(_0x299d08){while(--_0x299d08){_0x299240['push'](_0x299240['shift']());}};_0x44b948(++_0x453006);}(_0x34be,0xe8));var _0xe34b=function(_0x1abb09,_0x18ee91){_0x1abb09=_0x1abb09-0x0;var _0xea1c07=_0x34be[_0x1abb09];return _0xea1c07;};'use strict';var multer=require(_0xe34b('0x0'));var util=require(_0xe34b('0x1'));var path=require(_0xe34b('0x2'));var timeout=require(_0xe34b('0x3'));var express=require(_0xe34b('0x4'));var router=express[_0xe34b('0x5')]();var auth=require(_0xe34b('0x6'));var interaction=require(_0xe34b('0x7'));var config=require(_0xe34b('0x8'));var controller=require(_0xe34b('0x9'));router[_0xe34b('0xa')]('/',auth['isAuthenticated'](),controller[_0xe34b('0xb')]);router[_0xe34b('0xa')]('/describe',auth[_0xe34b('0xc')](),controller[_0xe34b('0xd')]);router[_0xe34b('0xa')](_0xe34b('0xe'),auth['isAuthenticated'](),controller[_0xe34b('0xf')]);router[_0xe34b('0xa')]('/:id/tags',auth[_0xe34b('0xc')](),controller[_0xe34b('0x10')]);router[_0xe34b('0xa')]('/:id/hoppers',auth[_0xe34b('0xc')](),controller[_0xe34b('0x11')]);router[_0xe34b('0xa')]('/:id/hopper_histories',auth[_0xe34b('0xc')](),controller[_0xe34b('0x12')]);router[_0xe34b('0xa')]('/:id/hopper_finals',auth[_0xe34b('0xc')](),controller[_0xe34b('0x13')]);router['get'](_0xe34b('0x14'),auth[_0xe34b('0xc')](),controller[_0xe34b('0x15')]);router[_0xe34b('0x16')]('/merge',auth[_0xe34b('0xc')](),controller['merge']);router[_0xe34b('0x16')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xe34b('0x17'),auth[_0xe34b('0xc')](),controller[_0xe34b('0x18')]);router[_0xe34b('0x16')]('/:id/tags',auth[_0xe34b('0xc')](),controller[_0xe34b('0x19')]);var upload=multer({'storage':multer[_0xe34b('0x1a')]({'destination':function(_0x204da5,_0x32e015,_0x343382){_0x343382(null,path['join'](config[_0xe34b('0x1b')],_0xe34b('0x1c')));},'filename':function(_0x5261db,_0x321e49,_0x1d0fcf){_0x321e49[_0xe34b('0x1d')]=_0x321e49['originalname'][_0xe34b('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x1d0fcf(null,util[_0xe34b('0x1f')](_0xe34b('0x20'),path[_0xe34b('0x21')](_0x321e49[_0xe34b('0x1d')],path['extname'](_0x321e49[_0xe34b('0x1d')])),Date[_0xe34b('0x22')](),path[_0xe34b('0x23')](_0x321e49[_0xe34b('0x1d')])));}})});router['post'](_0xe34b('0x24'),upload[_0xe34b('0x25')](_0xe34b('0x26')),controller[_0xe34b('0x27')]);var upload=multer({'storage':multer[_0xe34b('0x1a')]({'destination':function(_0x42cff6,_0x41a9cb,_0x16607b){_0x16607b(null,path[_0xe34b('0x28')](config[_0xe34b('0x1b')],'server/files/tmp'));},'filename':function(_0x1f0129,_0x5e986e,_0x2ba84a){_0x5e986e['originalname']=_0x5e986e['originalname'][_0xe34b('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x2ba84a(null,util['format']('%s-%s%s',path[_0xe34b('0x21')](_0x5e986e[_0xe34b('0x1d')],path[_0xe34b('0x23')](_0x5e986e[_0xe34b('0x1d')])),Date['now'](),path[_0xe34b('0x23')](_0x5e986e[_0xe34b('0x1d')])));}})});router[_0xe34b('0x16')](_0xe34b('0x29'),upload['single'](_0xe34b('0x26')),controller[_0xe34b('0x2a')]);router[_0xe34b('0x16')]('/upload/:id',auth['isAuthenticated'](),controller['import']);router[_0xe34b('0x2b')](_0xe34b('0xe'),auth['isAuthenticated'](),controller[_0xe34b('0x2c')]);router[_0xe34b('0x2d')]('/:id',auth[_0xe34b('0xc')](),controller[_0xe34b('0x2e')]);module[_0xe34b('0x2f')]=router;
\ No newline at end of file