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 _0xbbf9=['update','delete','destroy','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./whatsappApplication.controller','isAuthenticated','index','/:id','show','post','put'];(function(_0x117f4c,_0x36a9b1){var _0x2b24e9=function(_0x31761b){while(--_0x31761b){_0x117f4c['push'](_0x117f4c['shift']());}};_0x2b24e9(++_0x36a9b1);}(_0xbbf9,0x8b));var _0x9bbf=function(_0x42de15,_0x4eb272){_0x42de15=_0x42de15-0x0;var _0x46fca8=_0xbbf9[_0x42de15];return _0x46fca8;};'use strict';var multer=require('multer');var util=require(_0x9bbf('0x0'));var path=require(_0x9bbf('0x1'));var timeout=require(_0x9bbf('0x2'));var express=require(_0x9bbf('0x3'));var router=express[_0x9bbf('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x9bbf('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x9bbf('0x6'));var controller=require(_0x9bbf('0x7'));router['get']('/',auth[_0x9bbf('0x8')](),controller[_0x9bbf('0x9')]);router['get'](_0x9bbf('0xa'),auth['isAuthenticated'](),controller[_0x9bbf('0xb')]);router[_0x9bbf('0xc')]('/',auth[_0x9bbf('0x8')](),controller['create']);router[_0x9bbf('0xd')](_0x9bbf('0xa'),auth[_0x9bbf('0x8')](),controller[_0x9bbf('0xe')]);router[_0x9bbf('0xf')]('/:id',auth[_0x9bbf('0x8')](),controller[_0x9bbf('0x10')]);module['exports']=router;