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