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