X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FmailMessage%2Findex.js;h=b7c24b8e51a975bc94504d75c04ad545f7979994;hb=c593ef5de079879fb7bfbdd8f8d4d8640e684821;hp=a4aa2af0e9b58cb59115c082e3177a679691fe61;hpb=7b947914a77b8347fb1d6de0275fa1bbfcdf6ff9;p=motion2.git diff --git a/server/api/mailMessage/index.js b/server/api/mailMessage/index.js index a4aa2af..b7c24b8 100644 --- a/server/api/mailMessage/index.js +++ b/server/api/mailMessage/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xddb4=['delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./mailMessage.controller','get','/describe','isAuthenticated','/:id','show','/:id/download','download','tracked','mail','mailmessage:create','put','update','/:id/accept','accept','reject'];(function(_0x1f73fd,_0x466e0a){var _0x46171d=function(_0x10e42a){while(--_0x10e42a){_0x1f73fd['push'](_0x1f73fd['shift']());}};_0x46171d(++_0x466e0a);}(_0xddb4,0x162));var _0x4ddb=function(_0x311aad,_0x54d658){_0x311aad=_0x311aad-0x0;var _0x1779bd=_0xddb4[_0x311aad];return _0x1779bd;};'use strict';var multer=require(_0x4ddb('0x0'));var util=require(_0x4ddb('0x1'));var path=require(_0x4ddb('0x2'));var timeout=require(_0x4ddb('0x3'));var express=require(_0x4ddb('0x4'));var router=express[_0x4ddb('0x5')]();var fs_extra=require(_0x4ddb('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4ddb('0x7'));var controller=require(_0x4ddb('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x4ddb('0x9')](_0x4ddb('0xa'),auth[_0x4ddb('0xb')](),controller['describe']);router[_0x4ddb('0x9')](_0x4ddb('0xc'),auth['isAuthenticated'](),controller[_0x4ddb('0xd')]);router['get'](_0x4ddb('0xe'),auth[_0x4ddb('0xb')](),controller[_0x4ddb('0xf')]);router['post']('/',auth[_0x4ddb('0xb')](),interaction[_0x4ddb('0x10')](_0x4ddb('0x11'),_0x4ddb('0x12')),controller['create']);router[_0x4ddb('0x13')](_0x4ddb('0xc'),auth[_0x4ddb('0xb')](),controller[_0x4ddb('0x14')]);router[_0x4ddb('0x13')](_0x4ddb('0x15'),auth[_0x4ddb('0xb')](),controller[_0x4ddb('0x16')]);router[_0x4ddb('0x13')]('/:id/reject',auth[_0x4ddb('0xb')](),controller[_0x4ddb('0x17')]);router[_0x4ddb('0x18')](_0x4ddb('0xc'),auth['isAuthenticated'](),controller[_0x4ddb('0x19')]);module[_0x4ddb('0x1a')]=router; \ No newline at end of file +var _0x50a8=['describe','/:id','download','post','tracked','mail','update','put','/:id/accept','accept','/:id/reject','exports','multer','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailMessage.controller','get','isAuthenticated','index'];(function(_0x44b3bd,_0x44c97d){var _0x1efc4a=function(_0x5d0205){while(--_0x5d0205){_0x44b3bd['push'](_0x44b3bd['shift']());}};_0x1efc4a(++_0x44c97d);}(_0x50a8,0x198));var _0x850a=function(_0x4f7588,_0x399e6b){_0x4f7588=_0x4f7588-0x0;var _0x535c70=_0x50a8[_0x4f7588];return _0x535c70;};'use strict';var multer=require(_0x850a('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x850a('0x1'));var router=express['Router']();var fs_extra=require(_0x850a('0x2'));var auth=require(_0x850a('0x3'));var interaction=require(_0x850a('0x4'));var config=require(_0x850a('0x5'));var controller=require(_0x850a('0x6'));router[_0x850a('0x7')]('/',auth[_0x850a('0x8')](),controller[_0x850a('0x9')]);router[_0x850a('0x7')]('/describe',auth['isAuthenticated'](),controller[_0x850a('0xa')]);router[_0x850a('0x7')](_0x850a('0xb'),auth[_0x850a('0x8')](),controller['show']);router[_0x850a('0x7')]('/:id/download',auth['isAuthenticated'](),controller[_0x850a('0xc')]);router[_0x850a('0xd')]('/',auth[_0x850a('0x8')](),interaction[_0x850a('0xe')](_0x850a('0xf'),'mailmessage:create'),controller['create']);router['put'](_0x850a('0xb'),auth['isAuthenticated'](),controller[_0x850a('0x10')]);router[_0x850a('0x11')](_0x850a('0x12'),auth[_0x850a('0x8')](),controller[_0x850a('0x13')]);router['put'](_0x850a('0x14'),auth['isAuthenticated'](),controller['reject']);router['delete']('/:id',auth[_0x850a('0x8')](),controller['destroy']);module[_0x850a('0x15')]=router; \ No newline at end of file