Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / api / whatsappAccount / index.js
index 8a03ef0..e81bffa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf8ec=['addAgents','addApplications','/:id/notify','/:id/send','send','put','/:id','delete','destroy','removeDispositions','removeAnswers','removeAgents','exports','multer','util','path','connect-timeout','Router','fs-extra','./whatsappAccount.controller','get','isAuthenticated','index','/:id/dispositions','getDispositions','getAnswers','/:id/users','getAgents','getApplications','post','create','addDisposition','/:id/canned_answers','addAnswer'];(function(_0x29f225,_0x52768f){var _0x59e83f=function(_0x10343d){while(--_0x10343d){_0x29f225['push'](_0x29f225['shift']());}};_0x59e83f(++_0x52768f);}(_0xf8ec,0x13f));var _0xcf8e=function(_0x5416db,_0x55683a){_0x5416db=_0x5416db-0x0;var _0x243e35=_0xf8ec[_0x5416db];return _0x243e35;};'use strict';var multer=require(_0xcf8e('0x0'));var util=require(_0xcf8e('0x1'));var path=require(_0xcf8e('0x2'));var timeout=require(_0xcf8e('0x3'));var express=require('express');var router=express[_0xcf8e('0x4')]();var fs_extra=require(_0xcf8e('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xcf8e('0x6'));router[_0xcf8e('0x7')]('/',auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x9')]);router[_0xcf8e('0x7')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0xcf8e('0x7')]('/:id',auth[_0xcf8e('0x8')](),controller['show']);router[_0xcf8e('0x7')](_0xcf8e('0xa'),auth[_0xcf8e('0x8')](),controller[_0xcf8e('0xb')]);router[_0xcf8e('0x7')]('/:id/canned_answers',auth[_0xcf8e('0x8')](),controller[_0xcf8e('0xc')]);router[_0xcf8e('0x7')](_0xcf8e('0xd'),auth['isAuthenticated'](),controller[_0xcf8e('0xe')]);router[_0xcf8e('0x7')]('/:id/applications',auth[_0xcf8e('0x8')](),controller[_0xcf8e('0xf')]);router[_0xcf8e('0x10')]('/',auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x11')]);router[_0xcf8e('0x10')](_0xcf8e('0xa'),auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x12')]);router[_0xcf8e('0x10')](_0xcf8e('0x13'),auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x14')]);router[_0xcf8e('0x10')]('/:id/users',auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x15')]);router['post']('/:id/applications',auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x16')]);router['post'](_0xcf8e('0x17'),controller['notify']);router['post'](_0xcf8e('0x18'),auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x19')]);router[_0xcf8e('0x1a')](_0xcf8e('0x1b'),auth[_0xcf8e('0x8')](),controller['update']);router[_0xcf8e('0x1c')]('/:id',auth['isAuthenticated'](),controller[_0xcf8e('0x1d')]);router[_0xcf8e('0x1c')](_0xcf8e('0xa'),auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x1e')]);router['delete'](_0xcf8e('0x13'),auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x1f')]);router['delete'](_0xcf8e('0xd'),auth[_0xcf8e('0x8')](),controller[_0xcf8e('0x20')]);module[_0xcf8e('0x21')]=router;
\ No newline at end of file
+var _0xfc48=['exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/users','/:id/applications','post','create','addDisposition','addAnswer','addAgents','addApplications','/:id/notify','notify','/:id/send','send','put','destroy','removeDispositions','delete','removeAnswers','removeAgents'];(function(_0xe73080,_0x24c56d){var _0x12cbc4=function(_0x1377e2){while(--_0x1377e2){_0xe73080['push'](_0xe73080['shift']());}};_0x12cbc4(++_0x24c56d);}(_0xfc48,0x160));var _0x8fc4=function(_0x3a0728,_0x20d678){_0x3a0728=_0x3a0728-0x0;var _0x2efe07=_0xfc48[_0x3a0728];return _0x2efe07;};'use strict';var multer=require(_0x8fc4('0x0'));var util=require(_0x8fc4('0x1'));var path=require(_0x8fc4('0x2'));var timeout=require('connect-timeout');var express=require(_0x8fc4('0x3'));var router=express[_0x8fc4('0x4')]();var fs_extra=require(_0x8fc4('0x5'));var auth=require(_0x8fc4('0x6'));var interaction=require(_0x8fc4('0x7'));var config=require(_0x8fc4('0x8'));var controller=require('./whatsappAccount.controller');router[_0x8fc4('0x9')]('/',auth['isAuthenticated'](),controller[_0x8fc4('0xa')]);router[_0x8fc4('0x9')](_0x8fc4('0xb'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0xd')]);router[_0x8fc4('0x9')](_0x8fc4('0xe'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0xf')]);router['get'](_0x8fc4('0x10'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x11')]);router[_0x8fc4('0x9')](_0x8fc4('0x12'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x13')]);router['get'](_0x8fc4('0x14'),auth['isAuthenticated'](),controller['getAgents']);router[_0x8fc4('0x9')](_0x8fc4('0x15'),auth['isAuthenticated'](),controller['getApplications']);router[_0x8fc4('0x16')]('/',auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x17')]);router['post'](_0x8fc4('0x10'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x18')]);router[_0x8fc4('0x16')](_0x8fc4('0x12'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x19')]);router[_0x8fc4('0x16')]('/:id/users',auth['isAuthenticated'](),controller[_0x8fc4('0x1a')]);router[_0x8fc4('0x16')](_0x8fc4('0x15'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x1b')]);router[_0x8fc4('0x16')](_0x8fc4('0x1c'),controller[_0x8fc4('0x1d')]);router[_0x8fc4('0x16')](_0x8fc4('0x1e'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x1f')]);router[_0x8fc4('0x20')](_0x8fc4('0xe'),auth[_0x8fc4('0xc')](),controller['update']);router['delete'](_0x8fc4('0xe'),auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x21')]);router['delete']('/:id/dispositions',auth[_0x8fc4('0xc')](),controller[_0x8fc4('0x22')]);router[_0x8fc4('0x23')](_0x8fc4('0x12'),auth['isAuthenticated'](),controller[_0x8fc4('0x24')]);router['delete']('/:id/users',auth['isAuthenticated'](),controller[_0x8fc4('0x25')]);module[_0x8fc4('0x26')]=router;
\ No newline at end of file