Built motion from commit 85328c08.|2.5.50
[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 _0x00d0=['post','isAuthenticated','create','put','update','delete','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','/:id','show'];(function(_0xeb4f99,_0x263cea){var _0x5723fc=function(_0x4f4e85){while(--_0x4f4e85){_0xeb4f99['push'](_0xeb4f99['shift']());}};_0x5723fc(++_0x263cea);}(_0x00d0,0x15b));var _0x000d=function(_0x214132,_0x203c94){_0x214132=_0x214132-0x0;var _0x272e5d=_0x00d0[_0x214132];return _0x272e5d;};'use strict';var multer=require('multer');var util=require(_0x000d('0x0'));var path=require(_0x000d('0x1'));var timeout=require(_0x000d('0x2'));var express=require(_0x000d('0x3'));var router=express[_0x000d('0x4')]();var fs_extra=require(_0x000d('0x5'));var auth=require(_0x000d('0x6'));var interaction=require(_0x000d('0x7'));var config=require(_0x000d('0x8'));var controller=require(_0x000d('0x9'));router[_0x000d('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0x000d('0xa')](_0x000d('0xb'),auth['isAuthenticated'](),controller[_0x000d('0xc')]);router[_0x000d('0xd')]('/',auth[_0x000d('0xe')](),controller[_0x000d('0xf')]);router[_0x000d('0x10')](_0x000d('0xb'),auth['isAuthenticated'](),controller[_0x000d('0x11')]);router[_0x000d('0x12')](_0x000d('0xb'),auth[_0x000d('0xe')](),controller[_0x000d('0x13')]);module['exports']=router;