3670b7c4818c47316ad5d6f6716892d2550d76fe
[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 _0xd894=['update','delete','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./whatsappApplication.controller','get','isAuthenticated','/:id','create','put'];(function(_0x1165a0,_0xd3da6b){var _0x528860=function(_0x3df103){while(--_0x3df103){_0x1165a0['push'](_0x1165a0['shift']());}};_0x528860(++_0xd3da6b);}(_0xd894,0x146));var _0x4d89=function(_0x34e7f3,_0x2b4113){_0x34e7f3=_0x34e7f3-0x0;var _0x6cdf8e=_0xd894[_0x34e7f3];return _0x6cdf8e;};'use strict';var multer=require(_0x4d89('0x0'));var util=require('util');var path=require(_0x4d89('0x1'));var timeout=require(_0x4d89('0x2'));var express=require(_0x4d89('0x3'));var router=express[_0x4d89('0x4')]();var fs_extra=require(_0x4d89('0x5'));var auth=require(_0x4d89('0x6'));var interaction=require(_0x4d89('0x7'));var config=require('../../config/environment');var controller=require(_0x4d89('0x8'));router[_0x4d89('0x9')]('/',auth[_0x4d89('0xa')](),controller['index']);router['get'](_0x4d89('0xb'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x4d89('0xa')](),controller[_0x4d89('0xc')]);router[_0x4d89('0xd')](_0x4d89('0xb'),auth[_0x4d89('0xa')](),controller[_0x4d89('0xe')]);router[_0x4d89('0xf')](_0x4d89('0xb'),auth[_0x4d89('0xa')](),controller['destroy']);module[_0x4d89('0x10')]=router;