e12dd4c5874cde4dd86123b60dbb5bdfcfb91d27
[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 _0x26eb=['../../components/auth/service','../../components/interaction/service','./whatsappApplication.controller','get','index','/:id','isAuthenticated','show','post','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0xbaf37e,_0x35fa9a){var _0x2f4f56=function(_0x5eb71f){while(--_0x5eb71f){_0xbaf37e['push'](_0xbaf37e['shift']());}};_0x2f4f56(++_0x35fa9a);}(_0x26eb,0x173));var _0xb26e=function(_0xbb8ec7,_0xe5764b){_0xbb8ec7=_0xbb8ec7-0x0;var _0x60edab=_0x26eb[_0xbb8ec7];return _0x60edab;};'use strict';var multer=require(_0xb26e('0x0'));var util=require(_0xb26e('0x1'));var path=require(_0xb26e('0x2'));var timeout=require(_0xb26e('0x3'));var express=require(_0xb26e('0x4'));var router=express[_0xb26e('0x5')]();var fs_extra=require(_0xb26e('0x6'));var auth=require(_0xb26e('0x7'));var interaction=require(_0xb26e('0x8'));var config=require('../../config/environment');var controller=require(_0xb26e('0x9'));router[_0xb26e('0xa')]('/',auth['isAuthenticated'](),controller[_0xb26e('0xb')]);router['get'](_0xb26e('0xc'),auth[_0xb26e('0xd')](),controller[_0xb26e('0xe')]);router[_0xb26e('0xf')]('/',auth[_0xb26e('0xd')](),controller[_0xb26e('0x10')]);router[_0xb26e('0x11')](_0xb26e('0xc'),auth[_0xb26e('0xd')](),controller['update']);router[_0xb26e('0x12')](_0xb26e('0xc'),auth[_0xb26e('0xd')](),controller[_0xb26e('0x13')]);module[_0xb26e('0x14')]=router;