5c1202cf3d584e253d4fbf13618174194641968f
[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 _0x0607=['delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index','/:id','show','post','create'];(function(_0x1e172a,_0x52102b){var _0x96338b=function(_0x307313){while(--_0x307313){_0x1e172a['push'](_0x1e172a['shift']());}};_0x96338b(++_0x52102b);}(_0x0607,0x107));var _0x7060=function(_0x2d7f0e,_0x3e6fbd){_0x2d7f0e=_0x2d7f0e-0x0;var _0x110b07=_0x0607[_0x2d7f0e];return _0x110b07;};'use strict';var multer=require(_0x7060('0x0'));var util=require(_0x7060('0x1'));var path=require(_0x7060('0x2'));var timeout=require('connect-timeout');var express=require(_0x7060('0x3'));var router=express[_0x7060('0x4')]();var fs_extra=require(_0x7060('0x5'));var auth=require(_0x7060('0x6'));var interaction=require(_0x7060('0x7'));var config=require(_0x7060('0x8'));var controller=require(_0x7060('0x9'));router[_0x7060('0xa')]('/',auth[_0x7060('0xb')](),controller[_0x7060('0xc')]);router[_0x7060('0xa')](_0x7060('0xd'),auth[_0x7060('0xb')](),controller[_0x7060('0xe')]);router[_0x7060('0xf')]('/',auth['isAuthenticated'](),controller[_0x7060('0x10')]);router['put'](_0x7060('0xd'),auth[_0x7060('0xb')](),controller['update']);router[_0x7060('0x11')](_0x7060('0xd'),auth['isAuthenticated'](),controller[_0x7060('0x12')]);module[_0x7060('0x13')]=router;