Built motion from commit 9d0783e6.|2.6.13
[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 _0xa1ce=['Router','fs-extra','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index','post','put','/:id','update','delete','exports','util','path','express'];(function(_0x30bb7c,_0x27a364){var _0x3b32be=function(_0x4b031d){while(--_0x4b031d){_0x30bb7c['push'](_0x30bb7c['shift']());}};_0x3b32be(++_0x27a364);}(_0xa1ce,0x140));var _0xea1c=function(_0x2fb307,_0x3f90d6){_0x2fb307=_0x2fb307-0x0;var _0x3623e5=_0xa1ce[_0x2fb307];return _0x3623e5;};'use strict';var multer=require('multer');var util=require(_0xea1c('0x0'));var path=require(_0xea1c('0x1'));var timeout=require('connect-timeout');var express=require(_0xea1c('0x2'));var router=express[_0xea1c('0x3')]();var fs_extra=require(_0xea1c('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xea1c('0x5'));var config=require(_0xea1c('0x6'));var controller=require(_0xea1c('0x7'));router[_0xea1c('0x8')]('/',auth[_0xea1c('0x9')](),controller[_0xea1c('0xa')]);router[_0xea1c('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xea1c('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xea1c('0xc')](_0xea1c('0xd'),auth['isAuthenticated'](),controller[_0xea1c('0xe')]);router[_0xea1c('0xf')](_0xea1c('0xd'),auth[_0xea1c('0x9')](),controller['destroy']);module[_0xea1c('0x10')]=router;