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