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