6f7b647fa7b4b13121cc5321aa7c5ff59c1df2f1
[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 _0xe7b7=['multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','post','create','put','update','delete','destroy','exports'];(function(_0x41f5b4,_0x21e771){var _0x42e618=function(_0x5b5458){while(--_0x5b5458){_0x41f5b4['push'](_0x41f5b4['shift']());}};_0x42e618(++_0x21e771);}(_0xe7b7,0xe4));var _0x7e7b=function(_0x3202dc,_0x281fc){_0x3202dc=_0x3202dc-0x0;var _0x76897a=_0xe7b7[_0x3202dc];return _0x76897a;};'use strict';var multer=require(_0x7e7b('0x0'));var util=require(_0x7e7b('0x1'));var path=require(_0x7e7b('0x2'));var timeout=require(_0x7e7b('0x3'));var express=require(_0x7e7b('0x4'));var router=express[_0x7e7b('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x7e7b('0x6'));var interaction=require(_0x7e7b('0x7'));var config=require('../../config/environment');var controller=require('./whatsappApplication.controller');router[_0x7e7b('0x8')]('/',auth[_0x7e7b('0x9')](),controller[_0x7e7b('0xa')]);router['get'](_0x7e7b('0xb'),auth[_0x7e7b('0x9')](),controller['show']);router[_0x7e7b('0xc')]('/',auth[_0x7e7b('0x9')](),controller[_0x7e7b('0xd')]);router[_0x7e7b('0xe')]('/:id',auth[_0x7e7b('0x9')](),controller[_0x7e7b('0xf')]);router[_0x7e7b('0x10')](_0x7e7b('0xb'),auth[_0x7e7b('0x9')](),controller[_0x7e7b('0x11')]);module[_0x7e7b('0x12')]=router;