X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FcmCompany%2Findex.js;h=a39bb7fcfeb45325a379c5e9e7b28e46b258bc90;hb=ebe00679b2d367c1cf2b2b91609ee1ce4bd8fb94;hp=cf7bab373cf94327b8290a49860374a1b116abbd;hpb=fb34d7d7b73e912de94d572e15e1910ea03e3516;p=motion2.git diff --git a/server/api/cmCompany/index.js b/server/api/cmCompany/index.js index cf7bab3..a39bb7f 100644 --- a/server/api/cmCompany/index.js +++ b/server/api/cmCompany/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xd2ee=['getContacts','post','addContacts','put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','isAuthenticated','index','/describe','describe','get','show'];(function(_0x1a4f8d,_0x57ce58){var _0x436671=function(_0x477f72){while(--_0x477f72){_0x1a4f8d['push'](_0x1a4f8d['shift']());}};_0x436671(++_0x57ce58);}(_0xd2ee,0x1a7));var _0xed2e=function(_0x58c701,_0xd216a9){_0x58c701=_0x58c701-0x0;var _0x24a7ce=_0xd2ee[_0x58c701];return _0x24a7ce;};'use strict';var multer=require(_0xed2e('0x0'));var util=require(_0xed2e('0x1'));var path=require('path');var timeout=require(_0xed2e('0x2'));var express=require('express');var router=express[_0xed2e('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xed2e('0x4'));var interaction=require(_0xed2e('0x5'));var config=require(_0xed2e('0x6'));var controller=require(_0xed2e('0x7'));router['get']('/',auth[_0xed2e('0x8')](),controller[_0xed2e('0x9')]);router['get'](_0xed2e('0xa'),auth[_0xed2e('0x8')](),controller[_0xed2e('0xb')]);router[_0xed2e('0xc')]('/:id',auth[_0xed2e('0x8')](),controller[_0xed2e('0xd')]);router[_0xed2e('0xc')]('/:id/contacts',auth[_0xed2e('0x8')](),controller[_0xed2e('0xe')]);router[_0xed2e('0xf')]('/',auth['isAuthenticated'](),controller['create']);router['post']('/:id/contacts',auth[_0xed2e('0x8')](),controller[_0xed2e('0x10')]);router[_0xed2e('0x11')](_0xed2e('0x12'),auth['isAuthenticated'](),controller[_0xed2e('0x13')]);router[_0xed2e('0x14')]('/:id',auth[_0xed2e('0x8')](),controller[_0xed2e('0x15')]);module[_0xed2e('0x16')]=router; \ No newline at end of file +var _0xaf38=['get','isAuthenticated','index','/describe','describe','/:id','show','getContacts','post','create','addContacts','put','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0xaa24f8,_0x19e09f){var _0x39c565=function(_0xde1729){while(--_0xde1729){_0xaa24f8['push'](_0xaa24f8['shift']());}};_0x39c565(++_0x19e09f);}(_0xaf38,0x10b));var _0x8af3=function(_0x36a5df,_0x3711be){_0x36a5df=_0x36a5df-0x0;var _0x4e671f=_0xaf38[_0x36a5df];return _0x4e671f;};'use strict';var multer=require(_0x8af3('0x0'));var util=require(_0x8af3('0x1'));var path=require(_0x8af3('0x2'));var timeout=require(_0x8af3('0x3'));var express=require(_0x8af3('0x4'));var router=express[_0x8af3('0x5')]();var fs_extra=require(_0x8af3('0x6'));var auth=require(_0x8af3('0x7'));var interaction=require(_0x8af3('0x8'));var config=require('../../config/environment');var controller=require('./cmCompany.controller');router[_0x8af3('0x9')]('/',auth[_0x8af3('0xa')](),controller[_0x8af3('0xb')]);router[_0x8af3('0x9')](_0x8af3('0xc'),auth[_0x8af3('0xa')](),controller[_0x8af3('0xd')]);router['get'](_0x8af3('0xe'),auth[_0x8af3('0xa')](),controller[_0x8af3('0xf')]);router[_0x8af3('0x9')]('/:id/contacts',auth[_0x8af3('0xa')](),controller[_0x8af3('0x10')]);router[_0x8af3('0x11')]('/',auth[_0x8af3('0xa')](),controller[_0x8af3('0x12')]);router[_0x8af3('0x11')]('/:id/contacts',auth[_0x8af3('0xa')](),controller[_0x8af3('0x13')]);router[_0x8af3('0x14')]('/:id',auth[_0x8af3('0xa')](),controller['update']);router['delete'](_0x8af3('0xe'),auth[_0x8af3('0xa')](),controller[_0x8af3('0x15')]);module[_0x8af3('0x16')]=router; \ No newline at end of file