b147345c216440068fa6e8497c2cd5264fff6f67
[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 _0xdfab=['exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index','/:id','show','post','create','update','destroy'];(function(_0x157ef5,_0x2d2e5f){var _0x1f6596=function(_0x446c1d){while(--_0x446c1d){_0x157ef5['push'](_0x157ef5['shift']());}};_0x1f6596(++_0x2d2e5f);}(_0xdfab,0xd9));var _0xbdfa=function(_0x2dd390,_0x1bc894){_0x2dd390=_0x2dd390-0x0;var _0x3afe47=_0xdfab[_0x2dd390];return _0x3afe47;};'use strict';var multer=require(_0xbdfa('0x0'));var util=require(_0xbdfa('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xbdfa('0x2'));var router=express[_0xbdfa('0x3')]();var auth=require(_0xbdfa('0x4'));var interaction=require(_0xbdfa('0x5'));var config=require(_0xbdfa('0x6'));var controller=require(_0xbdfa('0x7'));router[_0xbdfa('0x8')]('/',auth[_0xbdfa('0x9')](),controller[_0xbdfa('0xa')]);router[_0xbdfa('0x8')](_0xbdfa('0xb'),auth['isAuthenticated'](),controller[_0xbdfa('0xc')]);router[_0xbdfa('0xd')]('/',auth[_0xbdfa('0x9')](),controller[_0xbdfa('0xe')]);router['put']('/:id',auth[_0xbdfa('0x9')](),controller[_0xbdfa('0xf')]);router['delete'](_0xbdfa('0xb'),auth['isAuthenticated'](),controller[_0xbdfa('0x10')]);module[_0xbdfa('0x11')]=router;