7f15ade5c9f3d4a6c80770ff7564a3d30ea49da0
[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 _0xf588=['path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','isAuthenticated','index','/:id','show','post','create','update','delete','destroy','multer'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0xf588,0x19f));var _0x8f58=function(_0x595fab,_0x796c33){_0x595fab=_0x595fab-0x0;var _0x5961c1=_0xf588[_0x595fab];return _0x5961c1;};'use strict';var multer=require(_0x8f58('0x0'));var util=require('util');var path=require(_0x8f58('0x1'));var timeout=require('connect-timeout');var express=require(_0x8f58('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x8f58('0x3'));var interaction=require(_0x8f58('0x4'));var config=require(_0x8f58('0x5'));var controller=require(_0x8f58('0x6'));router['get']('/',auth[_0x8f58('0x7')](),controller[_0x8f58('0x8')]);router['get'](_0x8f58('0x9'),auth[_0x8f58('0x7')](),controller[_0x8f58('0xa')]);router[_0x8f58('0xb')]('/',auth['isAuthenticated'](),controller[_0x8f58('0xc')]);router['put'](_0x8f58('0x9'),auth[_0x8f58('0x7')](),controller[_0x8f58('0xd')]);router[_0x8f58('0xe')](_0x8f58('0x9'),auth[_0x8f58('0x7')](),controller[_0x8f58('0xf')]);module['exports']=router;