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 _0x6bca=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./whatsappApplication.controller','/:id','isAuthenticated','post','update','delete','destroy','multer','util','path'];(function(_0x484599,_0x56224f){var _0x2c91f1=function(_0x40dab9){while(--_0x40dab9){_0x484599['push'](_0x484599['shift']());}};_0x2c91f1(++_0x56224f);}(_0x6bca,0xa2));var _0xa6bc=function(_0x599a9e,_0xee6f1f){_0x599a9e=_0x599a9e-0x0;var _0x2390e0=_0x6bca[_0x599a9e];return _0x2390e0;};'use strict';var multer=require(_0xa6bc('0x0'));var util=require(_0xa6bc('0x1'));var path=require(_0xa6bc('0x2'));var timeout=require(_0xa6bc('0x3'));var express=require(_0xa6bc('0x4'));var router=express[_0xa6bc('0x5')]();var auth=require(_0xa6bc('0x6'));var interaction=require(_0xa6bc('0x7'));var config=require('../../config/environment');var controller=require(_0xa6bc('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xa6bc('0x9'),auth[_0xa6bc('0xa')](),controller['show']);router[_0xa6bc('0xb')]('/',auth[_0xa6bc('0xa')](),controller['create']);router['put']('/:id',auth[_0xa6bc('0xa')](),controller[_0xa6bc('0xc')]);router[_0xa6bc('0xd')](_0xa6bc('0x9'),auth['isAuthenticated'](),controller[_0xa6bc('0xe')]);module['exports']=router;