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 _0xf903=['get','isAuthenticated','index','show','post','create','put','update','delete','/:id','exports','multer','util','connect-timeout','express','Router','../../config/environment','./whatsappApplication.controller'];(function(_0x37c0ba,_0x1288e1){var _0x363844=function(_0x4bfa7b){while(--_0x4bfa7b){_0x37c0ba['push'](_0x37c0ba['shift']());}};_0x363844(++_0x1288e1);}(_0xf903,0xe3));var _0x3f90=function(_0x10fc48,_0xa5dd68){_0x10fc48=_0x10fc48-0x0;var _0x2113b3=_0xf903[_0x10fc48];return _0x2113b3;};'use strict';var multer=require(_0x3f90('0x0'));var util=require(_0x3f90('0x1'));var path=require('path');var timeout=require(_0x3f90('0x2'));var express=require(_0x3f90('0x3'));var router=express[_0x3f90('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3f90('0x5'));var controller=require(_0x3f90('0x6'));router[_0x3f90('0x7')]('/',auth[_0x3f90('0x8')](),controller[_0x3f90('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x3f90('0xa')]);router[_0x3f90('0xb')]('/',auth['isAuthenticated'](),controller[_0x3f90('0xc')]);router[_0x3f90('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x3f90('0xe')]);router[_0x3f90('0xf')](_0x3f90('0x10'),auth[_0x3f90('0x8')](),controller['destroy']);module[_0x3f90('0x11')]=router;