Built motion from commit 746c7d2a.|2.5.35
[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 _0xc409=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./whatsappApplication.controller','index','get','/:id','isAuthenticated','show','post','create','put','delete','destroy','multer','util'];(function(_0x364048,_0x34dea3){var _0x591678=function(_0x239c0a){while(--_0x239c0a){_0x364048['push'](_0x364048['shift']());}};_0x591678(++_0x34dea3);}(_0xc409,0x1b6));var _0x9c40=function(_0x2d356b,_0x2fd34d){_0x2d356b=_0x2d356b-0x0;var _0x324c1f=_0xc409[_0x2d356b];return _0x324c1f;};'use strict';var multer=require(_0x9c40('0x0'));var util=require(_0x9c40('0x1'));var path=require(_0x9c40('0x2'));var timeout=require(_0x9c40('0x3'));var express=require(_0x9c40('0x4'));var router=express[_0x9c40('0x5')]();var fs_extra=require(_0x9c40('0x6'));var auth=require(_0x9c40('0x7'));var interaction=require(_0x9c40('0x8'));var config=require('../../config/environment');var controller=require(_0x9c40('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x9c40('0xa')]);router[_0x9c40('0xb')](_0x9c40('0xc'),auth[_0x9c40('0xd')](),controller[_0x9c40('0xe')]);router[_0x9c40('0xf')]('/',auth[_0x9c40('0xd')](),controller[_0x9c40('0x10')]);router[_0x9c40('0x11')](_0x9c40('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x9c40('0x12')](_0x9c40('0xc'),auth[_0x9c40('0xd')](),controller[_0x9c40('0x13')]);module['exports']=router;