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 _0x846b=['isAuthenticated','index','/:id','post','create','put','delete','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get'];(function(_0xc23d21,_0x2a5841){var _0x593b70=function(_0x3ef0a3){while(--_0x3ef0a3){_0xc23d21['push'](_0xc23d21['shift']());}};_0x593b70(++_0x2a5841);}(_0x846b,0x1d8));var _0xb846=function(_0x9da1f6,_0x53a7da){_0x9da1f6=_0x9da1f6-0x0;var _0x12e9ee=_0x846b[_0x9da1f6];return _0x12e9ee;};'use strict';var multer=require(_0xb846('0x0'));var util=require('util');var path=require(_0xb846('0x1'));var timeout=require('connect-timeout');var express=require(_0xb846('0x2'));var router=express[_0xb846('0x3')]();var fs_extra=require(_0xb846('0x4'));var auth=require(_0xb846('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xb846('0x6'));var controller=require('./whatsappApplication.controller');router[_0xb846('0x7')]('/',auth[_0xb846('0x8')](),controller[_0xb846('0x9')]);router[_0xb846('0x7')](_0xb846('0xa'),auth[_0xb846('0x8')](),controller['show']);router[_0xb846('0xb')]('/',auth[_0xb846('0x8')](),controller[_0xb846('0xc')]);router[_0xb846('0xd')]('/:id',auth[_0xb846('0x8')](),controller['update']);router[_0xb846('0xe')](_0xb846('0xa'),auth[_0xb846('0x8')](),controller['destroy']);module[_0xb846('0xf')]=router;