Built motion from commit 994c64e1.|2.6.1
[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 _0x3f30=['connect-timeout','express','../../components/auth/service','../../config/environment','get','isAuthenticated','post','create','put','/:id','update','destroy','multer','util','path'];(function(_0x3e7599,_0x50dd21){var _0x534d2a=function(_0x552ce2){while(--_0x552ce2){_0x3e7599['push'](_0x3e7599['shift']());}};_0x534d2a(++_0x50dd21);}(_0x3f30,0x165));var _0x03f3=function(_0xd7ae81,_0x48bcb0){_0xd7ae81=_0xd7ae81-0x0;var _0xc760fa=_0x3f30[_0xd7ae81];return _0xc760fa;};'use strict';var multer=require(_0x03f3('0x0'));var util=require(_0x03f3('0x1'));var path=require(_0x03f3('0x2'));var timeout=require(_0x03f3('0x3'));var express=require(_0x03f3('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x03f3('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x03f3('0x6'));var controller=require('./whatsappApplication.controller');router[_0x03f3('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth[_0x03f3('0x8')](),controller['show']);router[_0x03f3('0x9')]('/',auth[_0x03f3('0x8')](),controller[_0x03f3('0xa')]);router[_0x03f3('0xb')](_0x03f3('0xc'),auth[_0x03f3('0x8')](),controller[_0x03f3('0xd')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x03f3('0xe')]);module['exports']=router;