X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FcannedAnswer%2Findex.js;fp=server%2Fapi%2FcannedAnswer%2Findex.js;h=ec96189e92aa93b20c96d21721adf6dc079efe76;hb=fed88ff2b9fedc76d735d841a58c735e5087ca2f;hp=626452e0628671ac7647a12513436772f44de9f4;hpb=7cda1c65c6741ebe625028920920ca9ef572e569;p=motion2.git diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js index 626452e..ec96189 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 _0x7afa=['path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','/:id','isAuthenticated','show','post','put','update','exports','multer','util'];(function(_0x719af9,_0x3dea59){var _0x3029f7=function(_0x180931){while(--_0x180931){_0x719af9['push'](_0x719af9['shift']());}};_0x3029f7(++_0x3dea59);}(_0x7afa,0x1eb));var _0xa7af=function(_0x3c6112,_0x949d82){_0x3c6112=_0x3c6112-0x0;var _0xf99be=_0x7afa[_0x3c6112];return _0xf99be;};'use strict';var multer=require(_0xa7af('0x0'));var util=require(_0xa7af('0x1'));var path=require(_0xa7af('0x2'));var timeout=require('connect-timeout');var express=require(_0xa7af('0x3'));var router=express[_0xa7af('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xa7af('0x5'));var interaction=require(_0xa7af('0x6'));var config=require(_0xa7af('0x7'));var controller=require(_0xa7af('0x8'));router[_0xa7af('0x9')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xa7af('0xa'),auth[_0xa7af('0xb')](),controller[_0xa7af('0xc')]);router[_0xa7af('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0xa7af('0xe')]('/:id',auth[_0xa7af('0xb')](),controller[_0xa7af('0xf')]);router['delete']('/:id',auth[_0xa7af('0xb')](),controller['destroy']);module[_0xa7af('0x10')]=router; \ No newline at end of file +var _0x1799=['../../config/environment','get','isAuthenticated','show','post','create','update','delete','/:id','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x2f1997,_0x339b45){var _0x2bf632=function(_0x267df2){while(--_0x267df2){_0x2f1997['push'](_0x2f1997['shift']());}};_0x2bf632(++_0x339b45);}(_0x1799,0x6b));var _0x9179=function(_0x43c2ae,_0x1371fb){_0x43c2ae=_0x43c2ae-0x0;var _0x1d23b9=_0x1799[_0x43c2ae];return _0x1d23b9;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x9179('0x0'));var express=require('express');var router=express[_0x9179('0x1')]();var fs_extra=require(_0x9179('0x2'));var auth=require(_0x9179('0x3'));var interaction=require(_0x9179('0x4'));var config=require(_0x9179('0x5'));var controller=require('./cannedAnswer.controller');router[_0x9179('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x9179('0x6')]('/:id',auth[_0x9179('0x7')](),controller[_0x9179('0x8')]);router[_0x9179('0x9')]('/',auth[_0x9179('0x7')](),controller[_0x9179('0xa')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x9179('0xb')]);router[_0x9179('0xc')](_0x9179('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router; \ No newline at end of file