e57da7c5c66cdea9fa75eb5a44b37692a3d8c553
[motion2.git] / server / api / whatsappApplication / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe555=['delete','/:id','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','show','post','create','put','update'];(function(_0x3bcf9e,_0x148a5d){var _0x1bb37c=function(_0xcaf5da){while(--_0xcaf5da){_0x3bcf9e['push'](_0x3bcf9e['shift']());}};_0x1bb37c(++_0x148a5d);}(_0xe555,0x88));var _0x5e55=function(_0x2d8434,_0x43d781){_0x2d8434=_0x2d8434-0x0;var _0x26b9e4=_0xe555[_0x2d8434];return _0x26b9e4;};'use strict';var multer=require(_0x5e55('0x0'));var util=require(_0x5e55('0x1'));var path=require('path');var timeout=require(_0x5e55('0x2'));var express=require(_0x5e55('0x3'));var router=express[_0x5e55('0x4')]();var auth=require(_0x5e55('0x5'));var interaction=require(_0x5e55('0x6'));var config=require(_0x5e55('0x7'));var controller=require(_0x5e55('0x8'));router[_0x5e55('0x9')]('/',auth[_0x5e55('0xa')](),controller['index']);router[_0x5e55('0x9')]('/:id',auth[_0x5e55('0xa')](),controller[_0x5e55('0xb')]);router[_0x5e55('0xc')]('/',auth[_0x5e55('0xa')](),controller[_0x5e55('0xd')]);router[_0x5e55('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x5e55('0xf')]);router[_0x5e55('0x10')](_0x5e55('0x11'),auth[_0x5e55('0xa')](),controller['destroy']);module[_0x5e55('0x12')]=router;