Built motion from commit 3e059bc2.|2.5.32
[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 _0xdbdf=['get','isAuthenticated','index','/:id','show','post','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./whatsappApplication.controller'];(function(_0x3e70a7,_0x57014b){var _0x269c3a=function(_0x3e15b4){while(--_0x3e15b4){_0x3e70a7['push'](_0x3e70a7['shift']());}};_0x269c3a(++_0x57014b);}(_0xdbdf,0x1a6));var _0xfdbd=function(_0x1301b4,_0x2fb602){_0x1301b4=_0x1301b4-0x0;var _0x4252dc=_0xdbdf[_0x1301b4];return _0x4252dc;};'use strict';var multer=require(_0xfdbd('0x0'));var util=require(_0xfdbd('0x1'));var path=require(_0xfdbd('0x2'));var timeout=require(_0xfdbd('0x3'));var express=require(_0xfdbd('0x4'));var router=express[_0xfdbd('0x5')]();var fs_extra=require(_0xfdbd('0x6'));var auth=require(_0xfdbd('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xfdbd('0x8'));var controller=require(_0xfdbd('0x9'));router[_0xfdbd('0xa')]('/',auth[_0xfdbd('0xb')](),controller[_0xfdbd('0xc')]);router[_0xfdbd('0xa')](_0xfdbd('0xd'),auth['isAuthenticated'](),controller[_0xfdbd('0xe')]);router[_0xfdbd('0xf')]('/',auth[_0xfdbd('0xb')](),controller['create']);router['put'](_0xfdbd('0xd'),auth[_0xfdbd('0xb')](),controller['update']);router['delete']('/:id',auth[_0xfdbd('0xb')](),controller['destroy']);module['exports']=router;