Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / whatsappInteraction / index.js
index 23b380f..103ee5e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc7a3=['show','/:id/messages','post','create','addMessage','/:id/tags','tracked','whatsappinteraction:addtags','addTags','whatsapp','update','whatsappinteraction:destroy','destroy','removeTags','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc7a3,0xbd));var _0x3c7a=function(_0x4bff6e,_0x164fbf){_0x4bff6e=_0x4bff6e-0x0;var _0x13f65f=_0xc7a3[_0x4bff6e];return _0x13f65f;};'use strict';var multer=require('multer');var util=require(_0x3c7a('0x0'));var path=require(_0x3c7a('0x1'));var timeout=require(_0x3c7a('0x2'));var express=require(_0x3c7a('0x3'));var router=express[_0x3c7a('0x4')]();var fs_extra=require(_0x3c7a('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x3c7a('0x6'));var config=require(_0x3c7a('0x7'));var controller=require('./whatsappInteraction.controller');router[_0x3c7a('0x8')]('/',auth[_0x3c7a('0x9')](),controller[_0x3c7a('0xa')]);router['get'](_0x3c7a('0xb'),auth['isAuthenticated'](),controller[_0x3c7a('0xc')]);router['get'](_0x3c7a('0xd'),auth[_0x3c7a('0x9')](),controller[_0x3c7a('0xe')]);router['get'](_0x3c7a('0xf'),auth[_0x3c7a('0x9')](),controller['getMessages']);router[_0x3c7a('0x8')]('/:id/download',auth[_0x3c7a('0x9')](),controller['download']);router[_0x3c7a('0x10')]('/',auth[_0x3c7a('0x9')](),controller[_0x3c7a('0x11')]);router[_0x3c7a('0x10')](_0x3c7a('0xf'),auth['isAuthenticated'](),controller[_0x3c7a('0x12')]);router[_0x3c7a('0x10')](_0x3c7a('0x13'),auth[_0x3c7a('0x9')](),interaction[_0x3c7a('0x14')]('whatsapp',_0x3c7a('0x15')),controller[_0x3c7a('0x16')]);router['put']('/:id',auth[_0x3c7a('0x9')](),interaction[_0x3c7a('0x14')](_0x3c7a('0x17'),'whatsappinteraction:update'),controller[_0x3c7a('0x18')]);router['delete'](_0x3c7a('0xd'),auth[_0x3c7a('0x9')](),interaction[_0x3c7a('0x14')](_0x3c7a('0x17'),_0x3c7a('0x19')),controller[_0x3c7a('0x1a')]);router['delete'](_0x3c7a('0x13'),auth[_0x3c7a('0x9')](),controller[_0x3c7a('0x1b')]);module[_0x3c7a('0x1c')]=router;
\ No newline at end of file
+var _0x6b8f=['/:id/messages','getMessages','post','create','addMessage','tracked','whatsapp','addTags','whatsappinteraction:update','delete','/:id/tags','removeTags','util','connect-timeout','fs-extra','../../components/auth/service','../../config/environment','./whatsappInteraction.controller','get','index','/describe','isAuthenticated','/:id','show'];(function(_0x3efd7b,_0x10db4d){var _0x26f00d=function(_0xeaf493){while(--_0xeaf493){_0x3efd7b['push'](_0x3efd7b['shift']());}};_0x26f00d(++_0x10db4d);}(_0x6b8f,0x1bc));var _0xf6b8=function(_0xc407d2,_0x1d251b){_0xc407d2=_0xc407d2-0x0;var _0x3b620a=_0x6b8f[_0xc407d2];return _0x3b620a;};'use strict';var multer=require('multer');var util=require(_0xf6b8('0x0'));var path=require('path');var timeout=require(_0xf6b8('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xf6b8('0x2'));var auth=require(_0xf6b8('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xf6b8('0x4'));var controller=require(_0xf6b8('0x5'));router[_0xf6b8('0x6')]('/',auth['isAuthenticated'](),controller[_0xf6b8('0x7')]);router[_0xf6b8('0x6')](_0xf6b8('0x8'),auth[_0xf6b8('0x9')](),controller['describe']);router['get'](_0xf6b8('0xa'),auth['isAuthenticated'](),controller[_0xf6b8('0xb')]);router[_0xf6b8('0x6')](_0xf6b8('0xc'),auth[_0xf6b8('0x9')](),controller[_0xf6b8('0xd')]);router[_0xf6b8('0x6')]('/:id/download',auth['isAuthenticated'](),controller['download']);router[_0xf6b8('0xe')]('/',auth[_0xf6b8('0x9')](),controller[_0xf6b8('0xf')]);router[_0xf6b8('0xe')]('/:id/messages',auth['isAuthenticated'](),controller[_0xf6b8('0x10')]);router[_0xf6b8('0xe')]('/:id/tags',auth[_0xf6b8('0x9')](),interaction[_0xf6b8('0x11')](_0xf6b8('0x12'),'whatsappinteraction:addtags'),controller[_0xf6b8('0x13')]);router['put'](_0xf6b8('0xa'),auth[_0xf6b8('0x9')](),interaction[_0xf6b8('0x11')](_0xf6b8('0x12'),_0xf6b8('0x14')),controller['update']);router['delete'](_0xf6b8('0xa'),auth['isAuthenticated'](),interaction[_0xf6b8('0x11')](_0xf6b8('0x12'),'whatsappinteraction:destroy'),controller['destroy']);router[_0xf6b8('0x15')](_0xf6b8('0x16'),auth[_0xf6b8('0x9')](),controller[_0xf6b8('0x17')]);module['exports']=router;
\ No newline at end of file