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 _0xc746=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','index','isAuthenticated','show','post','create','put','/:id','update','destroy','exports','multer','util','path','connect-timeout'];(function(_0x3ee22c,_0x26f867){var _0x4a545a=function(_0x5d92a0){while(--_0x5d92a0){_0x3ee22c['push'](_0x3ee22c['shift']());}};_0x4a545a(++_0x26f867);}(_0xc746,0x1f4));var _0x6c74=function(_0x466495,_0x3cbe81){_0x466495=_0x466495-0x0;var _0x32fdbf=_0xc746[_0x466495];return _0x32fdbf;};'use strict';var multer=require(_0x6c74('0x0'));var util=require(_0x6c74('0x1'));var path=require(_0x6c74('0x2'));var timeout=require(_0x6c74('0x3'));var express=require(_0x6c74('0x4'));var router=express[_0x6c74('0x5')]();var auth=require(_0x6c74('0x6'));var interaction=require(_0x6c74('0x7'));var config=require(_0x6c74('0x8'));var controller=require(_0x6c74('0x9'));router[_0x6c74('0xa')]('/',auth['isAuthenticated'](),controller[_0x6c74('0xb')]);router[_0x6c74('0xa')]('/:id',auth[_0x6c74('0xc')](),controller[_0x6c74('0xd')]);router[_0x6c74('0xe')]('/',auth['isAuthenticated'](),controller[_0x6c74('0xf')]);router[_0x6c74('0x10')](_0x6c74('0x11'),auth[_0x6c74('0xc')](),controller[_0x6c74('0x12')]);router['delete'](_0x6c74('0x11'),auth[_0x6c74('0xc')](),controller[_0x6c74('0x13')]);module[_0x6c74('0x14')]=router;