Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / cmContact / index.js
index 74d447e..34e5fb0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5a47=['/:id/tags','getTags','getAdditionalPhones','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','/:id/hopper_finals','/:id/journey','getJourney','post','/merge','merge','create','bulkCreate','setTags','/:id/phones','setAdditionalPhones','/:id/duplicateAdditionalPhones','duplicateAdditionalPhones','/:id/rescheduleAdditionalPhones','rescheduleAdditionalPhones','diskStorage','join','server/files/tmp','originalname','format','%s-%s%s','basename','extname','/csv','single','file','root','replace','now','upload','/upload/:id','import','/uploadUpdates/:id','importUpdates','put','delete','destroy','exports','multer','util','path','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmContact.controller','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0x14b1fc,_0x477c25){var _0x160a4=function(_0x4ce0bc){while(--_0x4ce0bc){_0x14b1fc['push'](_0x14b1fc['shift']());}};_0x160a4(++_0x477c25);}(_0x5a47,0xa5));var _0x75a4=function(_0x6ed0c9,_0x1a98e7){_0x6ed0c9=_0x6ed0c9-0x0;var _0x28880b=_0x5a47[_0x6ed0c9];return _0x28880b;};'use strict';var multer=require(_0x75a4('0x0'));var util=require(_0x75a4('0x1'));var path=require(_0x75a4('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x75a4('0x3'));var auth=require(_0x75a4('0x4'));var interaction=require(_0x75a4('0x5'));var config=require(_0x75a4('0x6'));var controller=require(_0x75a4('0x7'));router[_0x75a4('0x8')]('/',auth[_0x75a4('0x9')](),controller[_0x75a4('0xa')]);router[_0x75a4('0x8')](_0x75a4('0xb'),auth[_0x75a4('0x9')](),controller[_0x75a4('0xc')]);router['get'](_0x75a4('0xd'),auth['isAuthenticated'](),controller[_0x75a4('0xe')]);router['get'](_0x75a4('0xf'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x10')]);router[_0x75a4('0x8')]('/:id/phones',auth['isAuthenticated'](),controller[_0x75a4('0x11')]);router[_0x75a4('0x8')](_0x75a4('0x12'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x13')]);router['get'](_0x75a4('0x14'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x15')]);router[_0x75a4('0x8')](_0x75a4('0x16'),auth[_0x75a4('0x9')](),controller['getHopperFinals']);router[_0x75a4('0x8')]('/:id/jscripty_sessions',auth[_0x75a4('0x9')](),controller['getJscriptySessions']);router['get'](_0x75a4('0x17'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x18')]);router[_0x75a4('0x19')](_0x75a4('0x1a'),auth['isAuthenticated'](),controller[_0x75a4('0x1b')]);router[_0x75a4('0x19')]('/',auth[_0x75a4('0x9')](),controller[_0x75a4('0x1c')]);router['post']('/create_many',auth['isAuthenticated'](),controller[_0x75a4('0x1d')]);router['post'](_0x75a4('0xf'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x1e')]);router[_0x75a4('0x19')](_0x75a4('0x1f'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x20')]);router[_0x75a4('0x19')](_0x75a4('0x21'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x22')]);router[_0x75a4('0x19')](_0x75a4('0x23'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x24')]);var upload=multer({'storage':multer[_0x75a4('0x25')]({'destination':function(_0x578e8d,_0x5022a1,_0x2b4f25){_0x2b4f25(null,path[_0x75a4('0x26')](config['root'],_0x75a4('0x27')));},'filename':function(_0x229695,_0xb598f0,_0x5a8bef){_0xb598f0[_0x75a4('0x28')]=_0xb598f0['originalname']['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x5a8bef(null,util[_0x75a4('0x29')](_0x75a4('0x2a'),path[_0x75a4('0x2b')](_0xb598f0[_0x75a4('0x28')],path[_0x75a4('0x2c')](_0xb598f0[_0x75a4('0x28')])),Date['now'](),path[_0x75a4('0x2c')](_0xb598f0['originalname'])));}})});router[_0x75a4('0x19')](_0x75a4('0x2d'),upload[_0x75a4('0x2e')](_0x75a4('0x2f')),controller['uploadCsv']);var upload=multer({'storage':multer[_0x75a4('0x25')]({'destination':function(_0x3c27dd,_0x2be856,_0x4109d2){_0x4109d2(null,path[_0x75a4('0x26')](config[_0x75a4('0x30')],'server/files/tmp'));},'filename':function(_0x5a4f14,_0x3099cb,_0x4047a7){_0x3099cb['originalname']=_0x3099cb[_0x75a4('0x28')][_0x75a4('0x31')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x4047a7(null,util['format'](_0x75a4('0x2a'),path[_0x75a4('0x2b')](_0x3099cb[_0x75a4('0x28')],path[_0x75a4('0x2c')](_0x3099cb['originalname'])),Date[_0x75a4('0x32')](),path[_0x75a4('0x2c')](_0x3099cb[_0x75a4('0x28')])));}})});router['post']('/upload',upload['single'](_0x75a4('0x2f')),controller[_0x75a4('0x33')]);router[_0x75a4('0x19')](_0x75a4('0x34'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x35')]);router[_0x75a4('0x19')](_0x75a4('0x36'),auth['isAuthenticated'](),controller[_0x75a4('0x37')]);router[_0x75a4('0x38')](_0x75a4('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x75a4('0x39')](_0x75a4('0xd'),auth[_0x75a4('0x9')](),controller[_0x75a4('0x3a')]);module[_0x75a4('0x3b')]=router;
\ No newline at end of file
+var _0xb7e7=['getJourney','post','merge','create','/create_many','bulkCreate','setTags','diskStorage','join','server/files/tmp','originalname','replace','format','%s-%s%s','basename','extname','/csv','/upload','single','upload','/upload/:id','import','put','update','destroy','multer','path','express','../../components/auth/service','../../config/environment','./cmContact.controller','get','/describe','isAuthenticated','/:id','show','/:id/tags','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','getHopperFinals','/:id/jscripty_sessions','/:id/journey'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xb7e7,0x121));var _0x7b7e=function(_0x38a7ac,_0x45514b){_0x38a7ac=_0x38a7ac-0x0;var _0x53061a=_0xb7e7[_0x38a7ac];return _0x53061a;};'use strict';var multer=require(_0x7b7e('0x0'));var util=require('util');var path=require(_0x7b7e('0x1'));var timeout=require('connect-timeout');var express=require(_0x7b7e('0x2'));var router=express['Router']();var auth=require(_0x7b7e('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x7b7e('0x4'));var controller=require(_0x7b7e('0x5'));router[_0x7b7e('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x7b7e('0x6')](_0x7b7e('0x7'),auth[_0x7b7e('0x8')](),controller['describe']);router[_0x7b7e('0x6')](_0x7b7e('0x9'),auth[_0x7b7e('0x8')](),controller[_0x7b7e('0xa')]);router[_0x7b7e('0x6')](_0x7b7e('0xb'),auth[_0x7b7e('0x8')](),controller['getTags']);router[_0x7b7e('0x6')](_0x7b7e('0xc'),auth[_0x7b7e('0x8')](),controller[_0x7b7e('0xd')]);router[_0x7b7e('0x6')](_0x7b7e('0xe'),auth[_0x7b7e('0x8')](),controller[_0x7b7e('0xf')]);router[_0x7b7e('0x6')]('/:id/hopper_finals',auth[_0x7b7e('0x8')](),controller[_0x7b7e('0x10')]);router['get'](_0x7b7e('0x11'),auth['isAuthenticated'](),controller['getJscriptySessions']);router[_0x7b7e('0x6')](_0x7b7e('0x12'),auth[_0x7b7e('0x8')](),controller[_0x7b7e('0x13')]);router[_0x7b7e('0x14')]('/merge',auth['isAuthenticated'](),controller[_0x7b7e('0x15')]);router[_0x7b7e('0x14')]('/',auth[_0x7b7e('0x8')](),controller[_0x7b7e('0x16')]);router[_0x7b7e('0x14')](_0x7b7e('0x17'),auth[_0x7b7e('0x8')](),controller[_0x7b7e('0x18')]);router[_0x7b7e('0x14')](_0x7b7e('0xb'),auth[_0x7b7e('0x8')](),controller[_0x7b7e('0x19')]);var upload=multer({'storage':multer[_0x7b7e('0x1a')]({'destination':function(_0x3bec7d,_0x9776c3,_0x864287){_0x864287(null,path[_0x7b7e('0x1b')](config['root'],_0x7b7e('0x1c')));},'filename':function(_0x43db4f,_0x24718c,_0x4c0647){_0x24718c[_0x7b7e('0x1d')]=_0x24718c[_0x7b7e('0x1d')][_0x7b7e('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x4c0647(null,util[_0x7b7e('0x1f')](_0x7b7e('0x20'),path[_0x7b7e('0x21')](_0x24718c[_0x7b7e('0x1d')],path[_0x7b7e('0x22')](_0x24718c['originalname'])),Date['now'](),path['extname'](_0x24718c[_0x7b7e('0x1d')])));}})});router[_0x7b7e('0x14')](_0x7b7e('0x23'),upload['single']('file'),controller['uploadCsv']);var upload=multer({'storage':multer[_0x7b7e('0x1a')]({'destination':function(_0x3c8192,_0x16a3c7,_0x7aa71){_0x7aa71(null,path[_0x7b7e('0x1b')](config['root'],_0x7b7e('0x1c')));},'filename':function(_0x21a15,_0x4c46b8,_0x57b9da){_0x4c46b8['originalname']=_0x4c46b8[_0x7b7e('0x1d')][_0x7b7e('0x1e')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-');_0x57b9da(null,util['format'](_0x7b7e('0x20'),path['basename'](_0x4c46b8[_0x7b7e('0x1d')],path[_0x7b7e('0x22')](_0x4c46b8[_0x7b7e('0x1d')])),Date['now'](),path[_0x7b7e('0x22')](_0x4c46b8[_0x7b7e('0x1d')])));}})});router[_0x7b7e('0x14')](_0x7b7e('0x24'),upload[_0x7b7e('0x25')]('file'),controller[_0x7b7e('0x26')]);router['post'](_0x7b7e('0x27'),auth[_0x7b7e('0x8')](),controller[_0x7b7e('0x28')]);router[_0x7b7e('0x29')](_0x7b7e('0x9'),auth[_0x7b7e('0x8')](),controller[_0x7b7e('0x2a')]);router['delete']('/:id',auth[_0x7b7e('0x8')](),controller[_0x7b7e('0x2b')]);module['exports']=router;
\ No newline at end of file