X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FwhatsappAccount%2Findex.js;h=43acde1ccea68474a866592396e681d2f4e006e1;hb=784ff39bf52a5b7c5ee0b7b10d0e51f0257b5940;hp=d4de0372a08a7f4cb3c75730e4ce479ef18fc40b;hpb=17b36376d3b7411763084143a03a7c6d2fc5e7b1;p=motion2.git diff --git a/server/api/whatsappAccount/index.js b/server/api/whatsappAccount/index.js index d4de037..43acde1 100644 --- a/server/api/whatsappAccount/index.js +++ b/server/api/whatsappAccount/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x9f0e=['addAgents','addApplications','/:id/notify','notify','send','put','update','delete','removeDispositions','removeAnswers','removeAgents','exports','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./whatsappAccount.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/users','getAgents','/:id/applications','getApplications','post','create','addDisposition','addAnswer'];(function(_0x4d4d4b,_0x123fe1){var _0x2f95d1=function(_0x300c54){while(--_0x300c54){_0x4d4d4b['push'](_0x4d4d4b['shift']());}};_0x2f95d1(++_0x123fe1);}(_0x9f0e,0x116));var _0xe9f0=function(_0x15d970,_0x817aa0){_0x15d970=_0x15d970-0x0;var _0x54f774=_0x9f0e[_0x15d970];return _0x54f774;};'use strict';var multer=require(_0xe9f0('0x0'));var util=require(_0xe9f0('0x1'));var path=require(_0xe9f0('0x2'));var timeout=require(_0xe9f0('0x3'));var express=require(_0xe9f0('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xe9f0('0x5'));var config=require(_0xe9f0('0x6'));var controller=require(_0xe9f0('0x7'));router[_0xe9f0('0x8')]('/',auth[_0xe9f0('0x9')](),controller['index']);router['get'](_0xe9f0('0xa'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0xb')]);router['get'](_0xe9f0('0xc'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0xd')]);router[_0xe9f0('0x8')](_0xe9f0('0xe'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0xf')]);router[_0xe9f0('0x8')](_0xe9f0('0x10'),auth['isAuthenticated'](),controller[_0xe9f0('0x11')]);router[_0xe9f0('0x8')](_0xe9f0('0x12'),auth['isAuthenticated'](),controller[_0xe9f0('0x13')]);router['get'](_0xe9f0('0x14'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x15')]);router[_0xe9f0('0x16')]('/',auth['isAuthenticated'](),controller[_0xe9f0('0x17')]);router['post'](_0xe9f0('0xe'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x18')]);router['post'](_0xe9f0('0x10'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x19')]);router['post'](_0xe9f0('0x12'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x1a')]);router[_0xe9f0('0x16')](_0xe9f0('0x14'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x1b')]);router['post'](_0xe9f0('0x1c'),controller[_0xe9f0('0x1d')]);router[_0xe9f0('0x16')]('/:id/send',auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x1e')]);router[_0xe9f0('0x1f')](_0xe9f0('0xc'),auth['isAuthenticated'](),controller[_0xe9f0('0x20')]);router[_0xe9f0('0x21')]('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0xe9f0('0x21')](_0xe9f0('0xe'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x22')]);router[_0xe9f0('0x21')]('/:id/canned_answers',auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x23')]);router[_0xe9f0('0x21')](_0xe9f0('0x12'),auth[_0xe9f0('0x9')](),controller[_0xe9f0('0x24')]);module[_0xe9f0('0x25')]=router; \ No newline at end of file +var _0xf2e3=['/:id/notify','notify','/:id/send','update','delete','removeAnswers','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappAccount.controller','get','index','/describe','isAuthenticated','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/users','getAgents','getApplications','post','create','addDisposition','addAnswer','addAgents','/:id/applications','addApplications'];(function(_0x5463dc,_0xaf0ea9){var _0x9b3032=function(_0x2641c5){while(--_0x2641c5){_0x5463dc['push'](_0x5463dc['shift']());}};_0x9b3032(++_0xaf0ea9);}(_0xf2e3,0x9b));var _0x3f2e=function(_0x616290,_0x280b7f){_0x616290=_0x616290-0x0;var _0x453879=_0xf2e3[_0x616290];return _0x453879;};'use strict';var multer=require(_0x3f2e('0x0'));var util=require('util');var path=require(_0x3f2e('0x1'));var timeout=require(_0x3f2e('0x2'));var express=require(_0x3f2e('0x3'));var router=express[_0x3f2e('0x4')]();var auth=require(_0x3f2e('0x5'));var interaction=require(_0x3f2e('0x6'));var config=require(_0x3f2e('0x7'));var controller=require(_0x3f2e('0x8'));router[_0x3f2e('0x9')]('/',auth['isAuthenticated'](),controller[_0x3f2e('0xa')]);router[_0x3f2e('0x9')](_0x3f2e('0xb'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0xd')]);router[_0x3f2e('0x9')](_0x3f2e('0xe'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0xf')]);router[_0x3f2e('0x9')](_0x3f2e('0x10'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x11')]);router[_0x3f2e('0x9')](_0x3f2e('0x12'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x13')]);router[_0x3f2e('0x9')](_0x3f2e('0x14'),auth['isAuthenticated'](),controller[_0x3f2e('0x15')]);router[_0x3f2e('0x9')]('/:id/applications',auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x16')]);router[_0x3f2e('0x17')]('/',auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x18')]);router['post'](_0x3f2e('0x10'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x19')]);router['post'](_0x3f2e('0x12'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x1a')]);router[_0x3f2e('0x17')](_0x3f2e('0x14'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x1b')]);router[_0x3f2e('0x17')](_0x3f2e('0x1c'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x1d')]);router['post'](_0x3f2e('0x1e'),controller[_0x3f2e('0x1f')]);router[_0x3f2e('0x17')](_0x3f2e('0x20'),auth[_0x3f2e('0xc')](),controller['send']);router['put'](_0x3f2e('0xe'),auth[_0x3f2e('0xc')](),controller[_0x3f2e('0x21')]);router[_0x3f2e('0x22')](_0x3f2e('0xe'),auth[_0x3f2e('0xc')](),controller['destroy']);router['delete'](_0x3f2e('0x10'),auth[_0x3f2e('0xc')](),controller['removeDispositions']);router['delete'](_0x3f2e('0x12'),auth['isAuthenticated'](),controller[_0x3f2e('0x23')]);router[_0x3f2e('0x22')]('/:id/users',auth['isAuthenticated'](),controller['removeAgents']);module[_0x3f2e('0x24')]=router; \ No newline at end of file