7d0f30060277342d5639135dd896373a6b8bf1b6
[motion2.git] / server / api / whatsappApplication / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xa7b6=['fs-extra','../../components/interaction/service','./whatsappApplication.controller','get','isAuthenticated','/:id','post','update','destroy','multer','util','path','connect-timeout','express'];(function(_0x2f4e3e,_0x8ea6b5){var _0x1ae46d=function(_0x23bc0a){while(--_0x23bc0a){_0x2f4e3e['push'](_0x2f4e3e['shift']());}};_0x1ae46d(++_0x8ea6b5);}(_0xa7b6,0x95));var _0x6a7b=function(_0x55d58f,_0x2bea83){_0x55d58f=_0x55d58f-0x0;var _0x1ad6e6=_0xa7b6[_0x55d58f];return _0x1ad6e6;};'use strict';var multer=require(_0x6a7b('0x0'));var util=require(_0x6a7b('0x1'));var path=require(_0x6a7b('0x2'));var timeout=require(_0x6a7b('0x3'));var express=require(_0x6a7b('0x4'));var router=express['Router']();var fs_extra=require(_0x6a7b('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x6a7b('0x6'));var config=require('../../config/environment');var controller=require(_0x6a7b('0x7'));router[_0x6a7b('0x8')]('/',auth[_0x6a7b('0x9')](),controller['index']);router[_0x6a7b('0x8')](_0x6a7b('0xa'),auth[_0x6a7b('0x9')](),controller['show']);router[_0x6a7b('0xb')]('/',auth[_0x6a7b('0x9')](),controller['create']);router['put'](_0x6a7b('0xa'),auth['isAuthenticated'](),controller[_0x6a7b('0xc')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x6a7b('0xd')]);module['exports']=router;