Built motion from commit (unavailable).|2.5.15
[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 _0x261b=['delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','put','/:id','update'];(function(_0xe0bc76,_0xd3bbe){var _0x534c8e=function(_0xcd6783){while(--_0xcd6783){_0xe0bc76['push'](_0xe0bc76['shift']());}};_0x534c8e(++_0xd3bbe);}(_0x261b,0x1e3));var _0xb261=function(_0xb84521,_0x297a4d){_0xb84521=_0xb84521-0x0;var _0x2e05b8=_0x261b[_0xb84521];return _0x2e05b8;};'use strict';var multer=require(_0xb261('0x0'));var util=require('util');var path=require(_0xb261('0x1'));var timeout=require(_0xb261('0x2'));var express=require(_0xb261('0x3'));var router=express[_0xb261('0x4')]();var auth=require(_0xb261('0x5'));var interaction=require(_0xb261('0x6'));var config=require('../../config/environment');var controller=require('./whatsappApplication.controller');router[_0xb261('0x7')]('/',auth[_0xb261('0x8')](),controller['index']);router['get']('/:id',auth[_0xb261('0x8')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xb261('0x9')](_0xb261('0xa'),auth[_0xb261('0x8')](),controller[_0xb261('0xb')]);router[_0xb261('0xc')](_0xb261('0xa'),auth[_0xb261('0x8')](),controller[_0xb261('0xd')]);module[_0xb261('0xe')]=router;