Built motion from commit 4e7c323b.|2.5.34
[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 _0x8320=['express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','isAuthenticated','index','show','create','put','/:id','update','delete','destroy','exports','path'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x8320,0x87));var _0x0832=function(_0x52fa77,_0x2b381b){_0x52fa77=_0x52fa77-0x0;var _0x477535=_0x8320[_0x52fa77];return _0x477535;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x0832('0x0'));var timeout=require('connect-timeout');var express=require(_0x0832('0x1'));var router=express['Router']();var fs_extra=require(_0x0832('0x2'));var auth=require(_0x0832('0x3'));var interaction=require(_0x0832('0x4'));var config=require(_0x0832('0x5'));var controller=require(_0x0832('0x6'));router['get']('/',auth[_0x0832('0x7')](),controller[_0x0832('0x8')]);router['get']('/:id',auth[_0x0832('0x7')](),controller[_0x0832('0x9')]);router['post']('/',auth[_0x0832('0x7')](),controller[_0x0832('0xa')]);router[_0x0832('0xb')](_0x0832('0xc'),auth[_0x0832('0x7')](),controller[_0x0832('0xd')]);router[_0x0832('0xe')](_0x0832('0xc'),auth['isAuthenticated'](),controller[_0x0832('0xf')]);module[_0x0832('0x10')]=router;