Built motion from commit 19a84241.|2.5.34
[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 _0xa36e=['multer','util','path','Router','fs-extra','../../components/auth/service','../../config/environment','./whatsappApplication.controller','isAuthenticated','index','get','/:id','show','post','create','put','update','destroy','exports'];(function(_0x21ab35,_0x2ca82c){var _0x2ca4e3=function(_0x91d9f3){while(--_0x91d9f3){_0x21ab35['push'](_0x21ab35['shift']());}};_0x2ca4e3(++_0x2ca82c);}(_0xa36e,0x85));var _0xea36=function(_0x5639e1,_0x421603){_0x5639e1=_0x5639e1-0x0;var _0x197e82=_0xa36e[_0x5639e1];return _0x197e82;};'use strict';var multer=require(_0xea36('0x0'));var util=require(_0xea36('0x1'));var path=require(_0xea36('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xea36('0x3')]();var fs_extra=require(_0xea36('0x4'));var auth=require(_0xea36('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xea36('0x6'));var controller=require(_0xea36('0x7'));router['get']('/',auth[_0xea36('0x8')](),controller[_0xea36('0x9')]);router[_0xea36('0xa')](_0xea36('0xb'),auth[_0xea36('0x8')](),controller[_0xea36('0xc')]);router[_0xea36('0xd')]('/',auth[_0xea36('0x8')](),controller[_0xea36('0xe')]);router[_0xea36('0xf')](_0xea36('0xb'),auth[_0xea36('0x8')](),controller[_0xea36('0x10')]);router['delete'](_0xea36('0xb'),auth['isAuthenticated'](),controller[_0xea36('0x11')]);module[_0xea36('0x12')]=router;