e57987f327a94ff7d4cfe234385436667ee6c6c8
[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 _0xd4bd=['Router','../../components/auth/service','../../config/environment','./whatsappApplication.controller','isAuthenticated','index','get','/:id','show','post','create','put','update','delete','destroy','exports','util','path','connect-timeout'];(function(_0x55d829,_0x43f06c){var _0x52163b=function(_0x493cd8){while(--_0x493cd8){_0x55d829['push'](_0x55d829['shift']());}};_0x52163b(++_0x43f06c);}(_0xd4bd,0x11a));var _0xdd4b=function(_0x383d46,_0x21a277){_0x383d46=_0x383d46-0x0;var _0xa53c2a=_0xd4bd[_0x383d46];return _0xa53c2a;};'use strict';var multer=require('multer');var util=require(_0xdd4b('0x0'));var path=require(_0xdd4b('0x1'));var timeout=require(_0xdd4b('0x2'));var express=require('express');var router=express[_0xdd4b('0x3')]();var auth=require(_0xdd4b('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xdd4b('0x5'));var controller=require(_0xdd4b('0x6'));router['get']('/',auth[_0xdd4b('0x7')](),controller[_0xdd4b('0x8')]);router[_0xdd4b('0x9')](_0xdd4b('0xa'),auth[_0xdd4b('0x7')](),controller[_0xdd4b('0xb')]);router[_0xdd4b('0xc')]('/',auth['isAuthenticated'](),controller[_0xdd4b('0xd')]);router[_0xdd4b('0xe')]('/:id',auth[_0xdd4b('0x7')](),controller[_0xdd4b('0xf')]);router[_0xdd4b('0x10')](_0xdd4b('0xa'),auth[_0xdd4b('0x7')](),controller[_0xdd4b('0x11')]);module[_0xdd4b('0x12')]=router;