1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x8793=['index','isAuthenticated','show','post','create','put','/:id','update','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./whatsappApplication.controller'];(function(_0x35a019,_0x41cfb8){var _0x3c0851=function(_0x1a59aa){while(--_0x1a59aa){_0x35a019['push'](_0x35a019['shift']());}};_0x3c0851(++_0x41cfb8);}(_0x8793,0x1e4));var _0x3879=function(_0x42bdad,_0x12836c){_0x42bdad=_0x42bdad-0x0;var _0x122626=_0x8793[_0x42bdad];return _0x122626;};'use strict';var multer=require(_0x3879('0x0'));var util=require(_0x3879('0x1'));var path=require('path');var timeout=require(_0x3879('0x2'));var express=require(_0x3879('0x3'));var router=express[_0x3879('0x4')]();var fs_extra=require(_0x3879('0x5'));var auth=require(_0x3879('0x6'));var interaction=require(_0x3879('0x7'));var config=require('../../config/environment');var controller=require(_0x3879('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x3879('0x9')]);router['get']('/:id',auth[_0x3879('0xa')](),controller[_0x3879('0xb')]);router[_0x3879('0xc')]('/',auth[_0x3879('0xa')](),controller[_0x3879('0xd')]);router[_0x3879('0xe')](_0x3879('0xf'),auth[_0x3879('0xa')](),controller[_0x3879('0x10')]);router['delete'](_0x3879('0xf'),auth[_0x3879('0xa')](),controller['destroy']);module['exports']=router;