237ef02c8da4334812c592c676ee41002f4da80b
[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 _0xb42b=['../../components/auth/service','./whatsappApplication.controller','get','isAuthenticated','/:id','post','put','update','destroy','multer','util','connect-timeout','Router'];(function(_0x24ef6a,_0x3d6920){var _0x128872=function(_0x2ec2a2){while(--_0x2ec2a2){_0x24ef6a['push'](_0x24ef6a['shift']());}};_0x128872(++_0x3d6920);}(_0xb42b,0xd9));var _0xbb42=function(_0x4992ef,_0xf3c325){_0x4992ef=_0x4992ef-0x0;var _0x45a522=_0xb42b[_0x4992ef];return _0x45a522;};'use strict';var multer=require(_0xbb42('0x0'));var util=require(_0xbb42('0x1'));var path=require('path');var timeout=require(_0xbb42('0x2'));var express=require('express');var router=express[_0xbb42('0x3')]();var auth=require(_0xbb42('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xbb42('0x5'));router[_0xbb42('0x6')]('/',auth[_0xbb42('0x7')](),controller['index']);router['get'](_0xbb42('0x8'),auth[_0xbb42('0x7')](),controller['show']);router[_0xbb42('0x9')]('/',auth[_0xbb42('0x7')](),controller['create']);router[_0xbb42('0xa')]('/:id',auth['isAuthenticated'](),controller[_0xbb42('0xb')]);router['delete'](_0xbb42('0x8'),auth[_0xbb42('0x7')](),controller[_0xbb42('0xc')]);module['exports']=router;