Built motion from commit 58b0471d.|2.6.29
[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 _0x0c58=['Router','fs-extra','../../components/auth/service','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index','/:id','post','put','update','destroy','exports','multer','util','express'];(function(_0x42b3e3,_0x3e2593){var _0x622dcb=function(_0xaa400e){while(--_0xaa400e){_0x42b3e3['push'](_0x42b3e3['shift']());}};_0x622dcb(++_0x3e2593);}(_0x0c58,0x1a6));var _0x80c5=function(_0x1180d4,_0xfc5134){_0x1180d4=_0x1180d4-0x0;var _0x3742db=_0x0c58[_0x1180d4];return _0x3742db;};'use strict';var multer=require(_0x80c5('0x0'));var util=require(_0x80c5('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x80c5('0x2'));var router=express[_0x80c5('0x3')]();var fs_extra=require(_0x80c5('0x4'));var auth=require(_0x80c5('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x80c5('0x6'));var controller=require(_0x80c5('0x7'));router[_0x80c5('0x8')]('/',auth[_0x80c5('0x9')](),controller[_0x80c5('0xa')]);router[_0x80c5('0x8')](_0x80c5('0xb'),auth[_0x80c5('0x9')](),controller['show']);router[_0x80c5('0xc')]('/',auth[_0x80c5('0x9')](),controller['create']);router[_0x80c5('0xd')](_0x80c5('0xb'),auth[_0x80c5('0x9')](),controller[_0x80c5('0xe')]);router['delete']('/:id',auth[_0x80c5('0x9')](),controller[_0x80c5('0xf')]);module[_0x80c5('0x10')]=router;