X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FcannedAnswer%2Findex.js;h=46c00fefb5852d7f84e5f08219b568e98bd99860;hb=ff1c11e14fca8d30ba993bf9ad292fb70d9b0b0b;hp=5fbbfddf1c5332cc7ba45829da659ff9df37be15;hpb=3b6ec49862a5197d06e7453a43d40dcd68709ea0;p=motion2.git diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js index 5fbbfdd..46c00fe 100644 --- a/server/api/cannedAnswer/index.js +++ b/server/api/cannedAnswer/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x726f=['fs-extra','../../components/interaction/service','../../config/environment','index','get','isAuthenticated','show','post','create','put','update','delete','/:id','destroy','exports','multer','util','connect-timeout','express','Router'];(function(_0x1a6c7f,_0x5aee3f){var _0x1d378d=function(_0x3faee3){while(--_0x3faee3){_0x1a6c7f['push'](_0x1a6c7f['shift']());}};_0x1d378d(++_0x5aee3f);}(_0x726f,0x163));var _0xf726=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0x726f[_0x8c43de];return _0xa6591b;};'use strict';var multer=require(_0xf726('0x0'));var util=require(_0xf726('0x1'));var path=require('path');var timeout=require(_0xf726('0x2'));var express=require(_0xf726('0x3'));var router=express[_0xf726('0x4')]();var fs_extra=require(_0xf726('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf726('0x6'));var config=require(_0xf726('0x7'));var controller=require('./cannedAnswer.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xf726('0x8')]);router[_0xf726('0x9')]('/:id',auth[_0xf726('0xa')](),controller[_0xf726('0xb')]);router[_0xf726('0xc')]('/',auth[_0xf726('0xa')](),controller[_0xf726('0xd')]);router[_0xf726('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xf726('0xf')]);router[_0xf726('0x10')](_0xf726('0x11'),auth['isAuthenticated'](),controller[_0xf726('0x12')]);module[_0xf726('0x13')]=router; \ No newline at end of file +var _0xe885=['fs-extra','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','put','update','destroy','path','express'];(function(_0x9a8f1,_0x559257){var _0x4acfc=function(_0x653180){while(--_0x653180){_0x9a8f1['push'](_0x9a8f1['shift']());}};_0x4acfc(++_0x559257);}(_0xe885,0x7c));var _0x5e88=function(_0x5175df,_0x12b843){_0x5175df=_0x5175df-0x0;var _0x1e1c5e=_0xe885[_0x5175df];return _0x1e1c5e;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x5e88('0x0'));var timeout=require('connect-timeout');var express=require(_0x5e88('0x1'));var router=express['Router']();var fs_extra=require(_0x5e88('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0x5e88('0x3'));var config=require(_0x5e88('0x4'));var controller=require('./cannedAnswer.controller');router[_0x5e88('0x5')]('/',auth['isAuthenticated'](),controller[_0x5e88('0x6')]);router[_0x5e88('0x5')](_0x5e88('0x7'),auth[_0x5e88('0x8')](),controller[_0x5e88('0x9')]);router[_0x5e88('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x5e88('0xb')](_0x5e88('0x7'),auth[_0x5e88('0x8')](),controller[_0x5e88('0xc')]);router['delete'](_0x5e88('0x7'),auth['isAuthenticated'](),controller[_0x5e88('0xd')]);module['exports']=router; \ No newline at end of file