Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / cmContact / index.js
index 7c14045..97a8f49 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xac31=['path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./cmContact.controller','index','get','/describe','isAuthenticated','describe','/:id','show','/:id/tags','getTags','/:id/hoppers','getHoppers','getHopperHistories','/:id/hopper_finals','getHopperFinals','/:id/jscripty_sessions','post','/merge','merge','/create_many','setTags','diskStorage','join','root','server/files/tmp','originalname','replace','format','%s-%s%s','basename','extname','/csv','single','uploadCsv','now','/upload','upload','/upload/:id','put','update','delete','destroy','exports','multer','util'];(function(_0x1394c1,_0x5d5c21){var _0x9560b7=function(_0xc64d27){while(--_0xc64d27){_0x1394c1['push'](_0x1394c1['shift']());}};_0x9560b7(++_0x5d5c21);}(_0xac31,0xca));var _0x1ac3=function(_0x47de9c,_0x2c2a68){_0x47de9c=_0x47de9c-0x0;var _0x9d9906=_0xac31[_0x47de9c];return _0x9d9906;};'use strict';var multer=require(_0x1ac3('0x0'));var util=require(_0x1ac3('0x1'));var path=require(_0x1ac3('0x2'));var timeout=require(_0x1ac3('0x3'));var express=require(_0x1ac3('0x4'));var router=express[_0x1ac3('0x5')]();var auth=require(_0x1ac3('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x1ac3('0x7'));var controller=require(_0x1ac3('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x1ac3('0x9')]);router[_0x1ac3('0xa')](_0x1ac3('0xb'),auth[_0x1ac3('0xc')](),controller[_0x1ac3('0xd')]);router['get'](_0x1ac3('0xe'),auth['isAuthenticated'](),controller[_0x1ac3('0xf')]);router[_0x1ac3('0xa')](_0x1ac3('0x10'),auth['isAuthenticated'](),controller[_0x1ac3('0x11')]);router[_0x1ac3('0xa')](_0x1ac3('0x12'),auth[_0x1ac3('0xc')](),controller[_0x1ac3('0x13')]);router[_0x1ac3('0xa')]('/:id/hopper_histories',auth[_0x1ac3('0xc')](),controller[_0x1ac3('0x14')]);router[_0x1ac3('0xa')](_0x1ac3('0x15'),auth['isAuthenticated'](),controller[_0x1ac3('0x16')]);router[_0x1ac3('0xa')](_0x1ac3('0x17'),auth[_0x1ac3('0xc')](),controller['getJscriptySessions']);router[_0x1ac3('0x18')](_0x1ac3('0x19'),auth['isAuthenticated'](),controller[_0x1ac3('0x1a')]);router[_0x1ac3('0x18')]('/',auth[_0x1ac3('0xc')](),controller['create']);router[_0x1ac3('0x18')](_0x1ac3('0x1b'),auth[_0x1ac3('0xc')](),controller['bulkCreate']);router[_0x1ac3('0x18')]('/:id/tags',auth[_0x1ac3('0xc')](),controller[_0x1ac3('0x1c')]);var upload=multer({'storage':multer[_0x1ac3('0x1d')]({'destination':function(_0x3b7e51,_0x18b985,_0x557076){_0x557076(null,path[_0x1ac3('0x1e')](config[_0x1ac3('0x1f')],_0x1ac3('0x20')));},'filename':function(_0x257f60,_0x5f1918,_0x48d18a){_0x5f1918[_0x1ac3('0x21')]=_0x5f1918[_0x1ac3('0x21')][_0x1ac3('0x22')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x48d18a(null,util[_0x1ac3('0x23')](_0x1ac3('0x24'),path[_0x1ac3('0x25')](_0x5f1918[_0x1ac3('0x21')],path[_0x1ac3('0x26')](_0x5f1918[_0x1ac3('0x21')])),Date['now'](),path[_0x1ac3('0x26')](_0x5f1918[_0x1ac3('0x21')])));}})});router['post'](_0x1ac3('0x27'),upload[_0x1ac3('0x28')]('file'),controller[_0x1ac3('0x29')]);var upload=multer({'storage':multer[_0x1ac3('0x1d')]({'destination':function(_0x145486,_0x2dfdb7,_0x10db3d){_0x10db3d(null,path['join'](config['root'],'server/files/tmp'));},'filename':function(_0x528807,_0x52a1a5,_0x3ea482){_0x52a1a5['originalname']=_0x52a1a5[_0x1ac3('0x21')][_0x1ac3('0x22')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x3ea482(null,util[_0x1ac3('0x23')](_0x1ac3('0x24'),path['basename'](_0x52a1a5[_0x1ac3('0x21')],path['extname'](_0x52a1a5[_0x1ac3('0x21')])),Date[_0x1ac3('0x2a')](),path[_0x1ac3('0x26')](_0x52a1a5[_0x1ac3('0x21')])));}})});router[_0x1ac3('0x18')](_0x1ac3('0x2b'),upload[_0x1ac3('0x28')]('file'),controller[_0x1ac3('0x2c')]);router[_0x1ac3('0x18')](_0x1ac3('0x2d'),auth[_0x1ac3('0xc')](),controller['import']);router[_0x1ac3('0x2e')](_0x1ac3('0xe'),auth[_0x1ac3('0xc')](),controller[_0x1ac3('0x2f')]);router[_0x1ac3('0x30')]('/:id',auth[_0x1ac3('0xc')](),controller[_0x1ac3('0x31')]);module[_0x1ac3('0x32')]=router;
\ No newline at end of file
+var _0x5fc3=['/:id','show','/:id/tags','getTags','getHoppers','/:id/hopper_histories','/:id/hopper_finals','getHopperFinals','/:id/jscripty_sessions','getJscriptySessions','post','create','/create_many','setTags','diskStorage','join','root','originalname','replace','format','%s-%s%s','basename','now','extname','single','file','server/files/tmp','upload','/upload/:id','import','put','update','delete','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./cmContact.controller','get','isAuthenticated','/describe','describe'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5fc3,0xa8));var _0x35fc=function(_0x4c1ec2,_0x4f42b7){_0x4c1ec2=_0x4c1ec2-0x0;var _0x3f6f1c=_0x5fc3[_0x4c1ec2];return _0x3f6f1c;};'use strict';var multer=require(_0x35fc('0x0'));var util=require(_0x35fc('0x1'));var path=require('path');var timeout=require(_0x35fc('0x2'));var express=require(_0x35fc('0x3'));var router=express[_0x35fc('0x4')]();var auth=require(_0x35fc('0x5'));var interaction=require(_0x35fc('0x6'));var config=require('../../config/environment');var controller=require(_0x35fc('0x7'));router[_0x35fc('0x8')]('/',auth[_0x35fc('0x9')](),controller['index']);router['get'](_0x35fc('0xa'),auth['isAuthenticated'](),controller[_0x35fc('0xb')]);router[_0x35fc('0x8')](_0x35fc('0xc'),auth[_0x35fc('0x9')](),controller[_0x35fc('0xd')]);router[_0x35fc('0x8')](_0x35fc('0xe'),auth['isAuthenticated'](),controller[_0x35fc('0xf')]);router[_0x35fc('0x8')]('/:id/hoppers',auth[_0x35fc('0x9')](),controller[_0x35fc('0x10')]);router['get'](_0x35fc('0x11'),auth[_0x35fc('0x9')](),controller['getHopperHistories']);router['get'](_0x35fc('0x12'),auth['isAuthenticated'](),controller[_0x35fc('0x13')]);router[_0x35fc('0x8')](_0x35fc('0x14'),auth[_0x35fc('0x9')](),controller[_0x35fc('0x15')]);router['post']('/merge',auth['isAuthenticated'](),controller['merge']);router[_0x35fc('0x16')]('/',auth[_0x35fc('0x9')](),controller[_0x35fc('0x17')]);router[_0x35fc('0x16')](_0x35fc('0x18'),auth[_0x35fc('0x9')](),controller['bulkCreate']);router[_0x35fc('0x16')](_0x35fc('0xe'),auth['isAuthenticated'](),controller[_0x35fc('0x19')]);var upload=multer({'storage':multer[_0x35fc('0x1a')]({'destination':function(_0x2e513b,_0x5f56c6,_0x1a86e9){_0x1a86e9(null,path[_0x35fc('0x1b')](config[_0x35fc('0x1c')],'server/files/tmp'));},'filename':function(_0x402cff,_0x350a27,_0x3229d1){_0x350a27[_0x35fc('0x1d')]=_0x350a27[_0x35fc('0x1d')][_0x35fc('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x3229d1(null,util[_0x35fc('0x1f')](_0x35fc('0x20'),path[_0x35fc('0x21')](_0x350a27[_0x35fc('0x1d')],path['extname'](_0x350a27[_0x35fc('0x1d')])),Date[_0x35fc('0x22')](),path[_0x35fc('0x23')](_0x350a27[_0x35fc('0x1d')])));}})});router[_0x35fc('0x16')]('/csv',upload[_0x35fc('0x24')](_0x35fc('0x25')),controller['uploadCsv']);var upload=multer({'storage':multer[_0x35fc('0x1a')]({'destination':function(_0x5a93df,_0x3d4a98,_0x51cfec){_0x51cfec(null,path[_0x35fc('0x1b')](config['root'],_0x35fc('0x26')));},'filename':function(_0xdfab9f,_0x5cb986,_0x519264){_0x5cb986[_0x35fc('0x1d')]=_0x5cb986['originalname'][_0x35fc('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x519264(null,util[_0x35fc('0x1f')]('%s-%s%s',path[_0x35fc('0x21')](_0x5cb986[_0x35fc('0x1d')],path[_0x35fc('0x23')](_0x5cb986[_0x35fc('0x1d')])),Date[_0x35fc('0x22')](),path[_0x35fc('0x23')](_0x5cb986[_0x35fc('0x1d')])));}})});router[_0x35fc('0x16')]('/upload',upload[_0x35fc('0x24')](_0x35fc('0x25')),controller[_0x35fc('0x27')]);router['post'](_0x35fc('0x28'),auth[_0x35fc('0x9')](),controller[_0x35fc('0x29')]);router[_0x35fc('0x2a')](_0x35fc('0xc'),auth[_0x35fc('0x9')](),controller[_0x35fc('0x2b')]);router[_0x35fc('0x2c')](_0x35fc('0xc'),auth[_0x35fc('0x9')](),controller['destroy']);module['exports']=router;
\ No newline at end of file