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 _0x35b3=['multer','util','path','connect-timeout','Router','../../components/auth/service','./whatsappApplication.controller','get','isAuthenticated','index','show','post','create','put','/:id','update','delete','destroy','exports'];(function(_0x2ec9a3,_0x4c511d){var _0x245fc0=function(_0x281fc8){while(--_0x281fc8){_0x2ec9a3['push'](_0x2ec9a3['shift']());}};_0x245fc0(++_0x4c511d);}(_0x35b3,0x143));var _0x335b=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x35b3[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x335b('0x0'));var util=require(_0x335b('0x1'));var path=require(_0x335b('0x2'));var timeout=require(_0x335b('0x3'));var express=require('express');var router=express[_0x335b('0x4')]();var auth=require(_0x335b('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x335b('0x6'));router[_0x335b('0x7')]('/',auth[_0x335b('0x8')](),controller[_0x335b('0x9')]);router[_0x335b('0x7')]('/:id',auth[_0x335b('0x8')](),controller[_0x335b('0xa')]);router[_0x335b('0xb')]('/',auth['isAuthenticated'](),controller[_0x335b('0xc')]);router[_0x335b('0xd')](_0x335b('0xe'),auth[_0x335b('0x8')](),controller[_0x335b('0xf')]);router[_0x335b('0x10')](_0x335b('0xe'),auth['isAuthenticated'](),controller[_0x335b('0x11')]);module[_0x335b('0x12')]=router;