Built motion from commit (unavailable).|2.5.16
[motion2.git] / server / api / cmContact / index.js
index 492e169..ae12132 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2eb2=['root','server/files/tmp','originalname','replace','basename','extname','now','/csv','single','file','uploadCsv','format','/upload','upload','put','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/tags','getTags','/:id/hopper_histories','/:id/hopper_finals','getHopperFinals','post','merge','bulkCreate','setTags','diskStorage','join'];(function(_0xefd519,_0xc62635){var _0x4bb882=function(_0x37e0a1){while(--_0x37e0a1){_0xefd519['push'](_0xefd519['shift']());}};_0x4bb882(++_0xc62635);}(_0x2eb2,0x19f));var _0x22eb=function(_0x2b5eae,_0x55010d){_0x2b5eae=_0x2b5eae-0x0;var _0x5f3ac9=_0x2eb2[_0x2b5eae];return _0x5f3ac9;};'use strict';var multer=require('multer');var util=require(_0x22eb('0x0'));var path=require(_0x22eb('0x1'));var timeout=require(_0x22eb('0x2'));var express=require(_0x22eb('0x3'));var router=express[_0x22eb('0x4')]();var auth=require(_0x22eb('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x22eb('0x6'));var controller=require('./cmContact.controller');router['get']('/',auth[_0x22eb('0x7')](),controller[_0x22eb('0x8')]);router[_0x22eb('0x9')](_0x22eb('0xa'),auth[_0x22eb('0x7')](),controller[_0x22eb('0xb')]);router[_0x22eb('0x9')](_0x22eb('0xc'),auth[_0x22eb('0x7')](),controller[_0x22eb('0xd')]);router[_0x22eb('0x9')](_0x22eb('0xe'),auth['isAuthenticated'](),controller[_0x22eb('0xf')]);router['get']('/:id/hoppers',auth[_0x22eb('0x7')](),controller['getHoppers']);router[_0x22eb('0x9')](_0x22eb('0x10'),auth['isAuthenticated'](),controller['getHopperHistories']);router[_0x22eb('0x9')](_0x22eb('0x11'),auth[_0x22eb('0x7')](),controller[_0x22eb('0x12')]);router[_0x22eb('0x9')]('/:id/jscripty_sessions',auth[_0x22eb('0x7')](),controller['getJscriptySessions']);router[_0x22eb('0x13')]('/merge',auth[_0x22eb('0x7')](),controller[_0x22eb('0x14')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x22eb('0x13')]('/create_many',auth['isAuthenticated'](),controller[_0x22eb('0x15')]);router['post']('/:id/tags',auth[_0x22eb('0x7')](),controller[_0x22eb('0x16')]);var upload=multer({'storage':multer[_0x22eb('0x17')]({'destination':function(_0x1ff041,_0x3b0940,_0x4bc0a2){_0x4bc0a2(null,path[_0x22eb('0x18')](config[_0x22eb('0x19')],_0x22eb('0x1a')));},'filename':function(_0x410c25,_0x36be50,_0x517313){_0x36be50[_0x22eb('0x1b')]=_0x36be50[_0x22eb('0x1b')][_0x22eb('0x1c')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x517313(null,util['format']('%s-%s%s',path[_0x22eb('0x1d')](_0x36be50[_0x22eb('0x1b')],path[_0x22eb('0x1e')](_0x36be50[_0x22eb('0x1b')])),Date[_0x22eb('0x1f')](),path[_0x22eb('0x1e')](_0x36be50[_0x22eb('0x1b')])));}})});router['post'](_0x22eb('0x20'),upload[_0x22eb('0x21')](_0x22eb('0x22')),controller[_0x22eb('0x23')]);var upload=multer({'storage':multer[_0x22eb('0x17')]({'destination':function(_0x4da252,_0x12c133,_0x6f8ff3){_0x6f8ff3(null,path[_0x22eb('0x18')](config['root'],_0x22eb('0x1a')));},'filename':function(_0x259847,_0x4b409a,_0x32a4b6){_0x4b409a[_0x22eb('0x1b')]=_0x4b409a[_0x22eb('0x1b')][_0x22eb('0x1c')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x32a4b6(null,util[_0x22eb('0x24')]('%s-%s%s',path['basename'](_0x4b409a[_0x22eb('0x1b')],path[_0x22eb('0x1e')](_0x4b409a[_0x22eb('0x1b')])),Date[_0x22eb('0x1f')](),path[_0x22eb('0x1e')](_0x4b409a[_0x22eb('0x1b')])));}})});router[_0x22eb('0x13')](_0x22eb('0x25'),upload[_0x22eb('0x21')](_0x22eb('0x22')),controller[_0x22eb('0x26')]);router[_0x22eb('0x13')]('/upload/:id',auth[_0x22eb('0x7')](),controller['import']);router[_0x22eb('0x27')](_0x22eb('0xc'),auth[_0x22eb('0x7')](),controller[_0x22eb('0x28')]);router[_0x22eb('0x29')](_0x22eb('0xc'),auth[_0x22eb('0x7')](),controller[_0x22eb('0x2a')]);module[_0x22eb('0x2b')]=router;
\ No newline at end of file
+var _0x5eb1=['connect-timeout','express','Router','../../components/auth/service','../../config/environment','./cmContact.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/tags','getTags','/:id/hoppers','getHoppers','/:id/hopper_histories','/:id/hopper_finals','getHopperFinals','getJscriptySessions','/:id/journey','post','setTags','diskStorage','join','root','server/files/tmp','originalname','format','basename','extname','now','/csv','single','uploadCsv','file','upload','import','update','exports','util','path'];(function(_0x36ee10,_0x3e4e4b){var _0x1ae7e8=function(_0x138916){while(--_0x138916){_0x36ee10['push'](_0x36ee10['shift']());}};_0x1ae7e8(++_0x3e4e4b);}(_0x5eb1,0x7c));var _0x15eb=function(_0x52d4ad,_0x25e611){_0x52d4ad=_0x52d4ad-0x0;var _0x34a767=_0x5eb1[_0x52d4ad];return _0x34a767;};'use strict';var multer=require('multer');var util=require(_0x15eb('0x0'));var path=require(_0x15eb('0x1'));var timeout=require(_0x15eb('0x2'));var express=require(_0x15eb('0x3'));var router=express[_0x15eb('0x4')]();var auth=require(_0x15eb('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x15eb('0x6'));var controller=require(_0x15eb('0x7'));router[_0x15eb('0x8')]('/',auth[_0x15eb('0x9')](),controller['index']);router[_0x15eb('0x8')](_0x15eb('0xa'),auth['isAuthenticated'](),controller[_0x15eb('0xb')]);router[_0x15eb('0x8')](_0x15eb('0xc'),auth[_0x15eb('0x9')](),controller[_0x15eb('0xd')]);router[_0x15eb('0x8')](_0x15eb('0xe'),auth[_0x15eb('0x9')](),controller[_0x15eb('0xf')]);router[_0x15eb('0x8')](_0x15eb('0x10'),auth[_0x15eb('0x9')](),controller[_0x15eb('0x11')]);router['get'](_0x15eb('0x12'),auth['isAuthenticated'](),controller['getHopperHistories']);router['get'](_0x15eb('0x13'),auth[_0x15eb('0x9')](),controller[_0x15eb('0x14')]);router[_0x15eb('0x8')]('/:id/jscripty_sessions',auth[_0x15eb('0x9')](),controller[_0x15eb('0x15')]);router[_0x15eb('0x8')](_0x15eb('0x16'),auth['isAuthenticated'](),controller['getJourney']);router['post']('/merge',auth[_0x15eb('0x9')](),controller['merge']);router['post']('/',auth[_0x15eb('0x9')](),controller['create']);router[_0x15eb('0x17')]('/create_many',auth[_0x15eb('0x9')](),controller['bulkCreate']);router[_0x15eb('0x17')](_0x15eb('0xe'),auth['isAuthenticated'](),controller[_0x15eb('0x18')]);var upload=multer({'storage':multer[_0x15eb('0x19')]({'destination':function(_0x4b9a96,_0x12f52d,_0x42c659){_0x42c659(null,path[_0x15eb('0x1a')](config[_0x15eb('0x1b')],_0x15eb('0x1c')));},'filename':function(_0x148b93,_0x56f51d,_0x222cf1){_0x56f51d['originalname']=_0x56f51d[_0x15eb('0x1d')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x222cf1(null,util[_0x15eb('0x1e')]('%s-%s%s',path[_0x15eb('0x1f')](_0x56f51d[_0x15eb('0x1d')],path[_0x15eb('0x20')](_0x56f51d[_0x15eb('0x1d')])),Date[_0x15eb('0x21')](),path[_0x15eb('0x20')](_0x56f51d[_0x15eb('0x1d')])));}})});router[_0x15eb('0x17')](_0x15eb('0x22'),upload[_0x15eb('0x23')]('file'),controller[_0x15eb('0x24')]);var upload=multer({'storage':multer[_0x15eb('0x19')]({'destination':function(_0x394c25,_0x3f655b,_0x1fcb1a){_0x1fcb1a(null,path[_0x15eb('0x1a')](config[_0x15eb('0x1b')],'server/files/tmp'));},'filename':function(_0x4da36d,_0x1706ed,_0x1def52){_0x1706ed[_0x15eb('0x1d')]=_0x1706ed[_0x15eb('0x1d')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x1def52(null,util[_0x15eb('0x1e')]('%s-%s%s',path[_0x15eb('0x1f')](_0x1706ed['originalname'],path[_0x15eb('0x20')](_0x1706ed[_0x15eb('0x1d')])),Date[_0x15eb('0x21')](),path[_0x15eb('0x20')](_0x1706ed[_0x15eb('0x1d')])));}})});router[_0x15eb('0x17')]('/upload',upload[_0x15eb('0x23')](_0x15eb('0x25')),controller[_0x15eb('0x26')]);router['post']('/upload/:id',auth[_0x15eb('0x9')](),controller[_0x15eb('0x27')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x15eb('0x28')]);router['delete'](_0x15eb('0xc'),auth[_0x15eb('0x9')](),controller['destroy']);module[_0x15eb('0x29')]=router;
\ No newline at end of file