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 _0x7ef0=['/:id','show','post','put','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index'];(function(_0x4a6b92,_0x53929c){var _0x303f17=function(_0x30a218){while(--_0x30a218){_0x4a6b92['push'](_0x4a6b92['shift']());}};_0x303f17(++_0x53929c);}(_0x7ef0,0xbb));var _0x07ef=function(_0x1fe4d8,_0x1a1f99){_0x1fe4d8=_0x1fe4d8-0x0;var _0x3e934e=_0x7ef0[_0x1fe4d8];return _0x3e934e;};'use strict';var multer=require('multer');var util=require(_0x07ef('0x0'));var path=require(_0x07ef('0x1'));var timeout=require(_0x07ef('0x2'));var express=require(_0x07ef('0x3'));var router=express[_0x07ef('0x4')]();var auth=require(_0x07ef('0x5'));var interaction=require(_0x07ef('0x6'));var config=require(_0x07ef('0x7'));var controller=require('./whatsappApplication.controller');router[_0x07ef('0x8')]('/',auth[_0x07ef('0x9')](),controller[_0x07ef('0xa')]);router[_0x07ef('0x8')](_0x07ef('0xb'),auth[_0x07ef('0x9')](),controller[_0x07ef('0xc')]);router[_0x07ef('0xd')]('/',auth[_0x07ef('0x9')](),controller['create']);router[_0x07ef('0xe')](_0x07ef('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x07ef('0xf')](_0x07ef('0xb'),auth[_0x07ef('0x9')](),controller[_0x07ef('0x10')]);module[_0x07ef('0x11')]=router;