670ae5d23606e0102a70f4b47db04d284c5afa16
[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 _0xaf5c=['get','index','/:id','show','post','isAuthenticated','create','put','delete','destroy','exports','multer','path','express','Router','../../components/auth/service','../../config/environment'];(function(_0x55969b,_0x1ebe62){var _0x3d7fc1=function(_0x5f2dbe){while(--_0x5f2dbe){_0x55969b['push'](_0x55969b['shift']());}};_0x3d7fc1(++_0x1ebe62);}(_0xaf5c,0x13d));var _0xcaf5=function(_0x475aea,_0x428d3f){_0x475aea=_0x475aea-0x0;var _0x3d428c=_0xaf5c[_0x475aea];return _0x3d428c;};'use strict';var multer=require(_0xcaf5('0x0'));var util=require('util');var path=require(_0xcaf5('0x1'));var timeout=require('connect-timeout');var express=require(_0xcaf5('0x2'));var router=express[_0xcaf5('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xcaf5('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xcaf5('0x5'));var controller=require('./whatsappApplication.controller');router[_0xcaf5('0x6')]('/',auth['isAuthenticated'](),controller[_0xcaf5('0x7')]);router['get'](_0xcaf5('0x8'),auth['isAuthenticated'](),controller[_0xcaf5('0x9')]);router[_0xcaf5('0xa')]('/',auth[_0xcaf5('0xb')](),controller[_0xcaf5('0xc')]);router[_0xcaf5('0xd')](_0xcaf5('0x8'),auth['isAuthenticated'](),controller['update']);router[_0xcaf5('0xe')](_0xcaf5('0x8'),auth[_0xcaf5('0xb')](),controller[_0xcaf5('0xf')]);module[_0xcaf5('0x10')]=router;