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 _0x55a9=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','isAuthenticated','index','get','show','post','put','/:id','update','exports','multer','path','connect-timeout','express'];(function(_0x5ab02d,_0x58ebb6){var _0x5f668f=function(_0x28ce51){while(--_0x28ce51){_0x5ab02d['push'](_0x5ab02d['shift']());}};_0x5f668f(++_0x58ebb6);}(_0x55a9,0x6e));var _0x955a=function(_0x32f47a,_0x229f9c){_0x32f47a=_0x32f47a-0x0;var _0x2c99da=_0x55a9[_0x32f47a];return _0x2c99da;};'use strict';var multer=require(_0x955a('0x0'));var util=require('util');var path=require(_0x955a('0x1'));var timeout=require(_0x955a('0x2'));var express=require(_0x955a('0x3'));var router=express[_0x955a('0x4')]();var fs_extra=require(_0x955a('0x5'));var auth=require(_0x955a('0x6'));var interaction=require(_0x955a('0x7'));var config=require(_0x955a('0x8'));var controller=require(_0x955a('0x9'));router['get']('/',auth[_0x955a('0xa')](),controller[_0x955a('0xb')]);router[_0x955a('0xc')]('/:id',auth[_0x955a('0xa')](),controller[_0x955a('0xd')]);router[_0x955a('0xe')]('/',auth[_0x955a('0xa')](),controller['create']);router[_0x955a('0xf')](_0x955a('0x10'),auth['isAuthenticated'](),controller[_0x955a('0x11')]);router['delete'](_0x955a('0x10'),auth[_0x955a('0xa')](),controller['destroy']);module[_0x955a('0x12')]=router;