Built motion from commit 449495f6.|2.6.27
[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 _0x7b6b=['../../components/interaction/service','./whatsappApplication.controller','isAuthenticated','get','/:id','show','post','create','put','delete','destroy','multer','util','../../components/auth/service'];(function(_0x260859,_0x3cfcff){var _0x4b77f8=function(_0x2e48f8){while(--_0x2e48f8){_0x260859['push'](_0x260859['shift']());}};_0x4b77f8(++_0x3cfcff);}(_0x7b6b,0x115));var _0xb7b6=function(_0x5c82fb,_0x54b63f){_0x5c82fb=_0x5c82fb-0x0;var _0x32e310=_0x7b6b[_0x5c82fb];return _0x32e310;};'use strict';var multer=require(_0xb7b6('0x0'));var util=require(_0xb7b6('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xb7b6('0x2'));var interaction=require(_0xb7b6('0x3'));var config=require('../../config/environment');var controller=require(_0xb7b6('0x4'));router['get']('/',auth[_0xb7b6('0x5')](),controller['index']);router[_0xb7b6('0x6')](_0xb7b6('0x7'),auth[_0xb7b6('0x5')](),controller[_0xb7b6('0x8')]);router[_0xb7b6('0x9')]('/',auth[_0xb7b6('0x5')](),controller[_0xb7b6('0xa')]);router[_0xb7b6('0xb')](_0xb7b6('0x7'),auth[_0xb7b6('0x5')](),controller['update']);router[_0xb7b6('0xc')]('/:id',auth[_0xb7b6('0x5')](),controller[_0xb7b6('0xd')]);module['exports']=router;