Built motion from commit 53172ac8.|2.6.30
[motion2.git] / server / api / whatsappAccount / index.js
index 7472bda..1da7b7a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb7b4=['Router','fs-extra','../../config/environment','./whatsappAccount.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','getAgents','/:id/applications','getApplications','post','create','addDisposition','addAnswer','/:id/users','addAgents','/:id/notify','notify','/:id/send','send','put','update','delete','destroy','removeDispositions','removeAgents','exports','multer','util','connect-timeout','express'];(function(_0x2d7125,_0x595e62){var _0x14ce33=function(_0x113ca0){while(--_0x113ca0){_0x2d7125['push'](_0x2d7125['shift']());}};_0x14ce33(++_0x595e62);}(_0xb7b4,0x182));var _0x4b7b=function(_0x5226ed,_0x2b7ad3){_0x5226ed=_0x5226ed-0x0;var _0x383da6=_0xb7b4[_0x5226ed];return _0x383da6;};'use strict';var multer=require(_0x4b7b('0x0'));var util=require(_0x4b7b('0x1'));var path=require('path');var timeout=require(_0x4b7b('0x2'));var express=require(_0x4b7b('0x3'));var router=express[_0x4b7b('0x4')]();var fs_extra=require(_0x4b7b('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x4b7b('0x6'));var controller=require(_0x4b7b('0x7'));router[_0x4b7b('0x8')]('/',auth[_0x4b7b('0x9')](),controller[_0x4b7b('0xa')]);router[_0x4b7b('0x8')](_0x4b7b('0xb'),auth[_0x4b7b('0x9')](),controller[_0x4b7b('0xc')]);router[_0x4b7b('0x8')](_0x4b7b('0xd'),auth[_0x4b7b('0x9')](),controller[_0x4b7b('0xe')]);router[_0x4b7b('0x8')](_0x4b7b('0xf'),auth[_0x4b7b('0x9')](),controller[_0x4b7b('0x10')]);router[_0x4b7b('0x8')](_0x4b7b('0x11'),auth['isAuthenticated'](),controller[_0x4b7b('0x12')]);router[_0x4b7b('0x8')]('/:id/users',auth['isAuthenticated'](),controller[_0x4b7b('0x13')]);router['get'](_0x4b7b('0x14'),auth[_0x4b7b('0x9')](),controller[_0x4b7b('0x15')]);router[_0x4b7b('0x16')]('/',auth[_0x4b7b('0x9')](),controller[_0x4b7b('0x17')]);router[_0x4b7b('0x16')]('/:id/dispositions',auth[_0x4b7b('0x9')](),controller[_0x4b7b('0x18')]);router[_0x4b7b('0x16')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0x4b7b('0x19')]);router[_0x4b7b('0x16')](_0x4b7b('0x1a'),auth[_0x4b7b('0x9')](),controller[_0x4b7b('0x1b')]);router[_0x4b7b('0x16')]('/:id/applications',auth[_0x4b7b('0x9')](),controller['addApplications']);router['post'](_0x4b7b('0x1c'),controller[_0x4b7b('0x1d')]);router['post'](_0x4b7b('0x1e'),auth[_0x4b7b('0x9')](),controller[_0x4b7b('0x1f')]);router[_0x4b7b('0x20')](_0x4b7b('0xd'),auth[_0x4b7b('0x9')](),controller[_0x4b7b('0x21')]);router[_0x4b7b('0x22')](_0x4b7b('0xd'),auth[_0x4b7b('0x9')](),controller[_0x4b7b('0x23')]);router[_0x4b7b('0x22')](_0x4b7b('0xf'),auth['isAuthenticated'](),controller[_0x4b7b('0x24')]);router[_0x4b7b('0x22')](_0x4b7b('0x11'),auth[_0x4b7b('0x9')](),controller['removeAnswers']);router['delete'](_0x4b7b('0x1a'),auth['isAuthenticated'](),controller[_0x4b7b('0x25')]);module[_0x4b7b('0x26')]=router;
\ No newline at end of file
+var _0x613e=['util','path','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/dispositions','/:id/users','getAgents','/:id/applications','getApplications','create','post','addDisposition','addAnswer','addAgents','addApplications','/:id/notify','notify','send','put','update','delete','destroy','/:id/canned_answers','removeAnswers','exports','multer'];(function(_0x591e16,_0x5aefc1){var _0x543b35=function(_0x81e3be){while(--_0x81e3be){_0x591e16['push'](_0x591e16['shift']());}};_0x543b35(++_0x5aefc1);}(_0x613e,0x131));var _0xe613=function(_0x32ff94,_0x4c03f4){_0x32ff94=_0x32ff94-0x0;var _0x439bc8=_0x613e[_0x32ff94];return _0x439bc8;};'use strict';var multer=require(_0xe613('0x0'));var util=require(_0xe613('0x1'));var path=require(_0xe613('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe613('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xe613('0x4'));var config=require(_0xe613('0x5'));var controller=require('./whatsappAccount.controller');router[_0xe613('0x6')]('/',auth[_0xe613('0x7')](),controller[_0xe613('0x8')]);router[_0xe613('0x6')](_0xe613('0x9'),auth['isAuthenticated'](),controller[_0xe613('0xa')]);router[_0xe613('0x6')](_0xe613('0xb'),auth[_0xe613('0x7')](),controller[_0xe613('0xc')]);router[_0xe613('0x6')](_0xe613('0xd'),auth[_0xe613('0x7')](),controller['getDispositions']);router[_0xe613('0x6')]('/:id/canned_answers',auth[_0xe613('0x7')](),controller['getAnswers']);router[_0xe613('0x6')](_0xe613('0xe'),auth[_0xe613('0x7')](),controller[_0xe613('0xf')]);router[_0xe613('0x6')](_0xe613('0x10'),auth[_0xe613('0x7')](),controller[_0xe613('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0xe613('0x12')]);router[_0xe613('0x13')](_0xe613('0xd'),auth[_0xe613('0x7')](),controller[_0xe613('0x14')]);router['post']('/:id/canned_answers',auth[_0xe613('0x7')](),controller[_0xe613('0x15')]);router[_0xe613('0x13')]('/:id/users',auth[_0xe613('0x7')](),controller[_0xe613('0x16')]);router[_0xe613('0x13')](_0xe613('0x10'),auth[_0xe613('0x7')](),controller[_0xe613('0x17')]);router[_0xe613('0x13')](_0xe613('0x18'),controller[_0xe613('0x19')]);router['post']('/:id/send',auth[_0xe613('0x7')](),controller[_0xe613('0x1a')]);router[_0xe613('0x1b')]('/:id',auth['isAuthenticated'](),controller[_0xe613('0x1c')]);router[_0xe613('0x1d')](_0xe613('0xb'),auth[_0xe613('0x7')](),controller[_0xe613('0x1e')]);router['delete']('/:id/dispositions',auth[_0xe613('0x7')](),controller['removeDispositions']);router['delete'](_0xe613('0x1f'),auth[_0xe613('0x7')](),controller[_0xe613('0x20')]);router[_0xe613('0x1d')](_0xe613('0xe'),auth['isAuthenticated'](),controller['removeAgents']);module[_0xe613('0x21')]=router;
\ No newline at end of file