Built motion from commit 47436d59.|2.6.7
[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 _0x9ee5=['update','delete','destroy','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','isAuthenticated','index','/:id','show','post','create','put'];(function(_0x3bcde9,_0x5c02ce){var _0x2c9eff=function(_0x1454e4){while(--_0x1454e4){_0x3bcde9['push'](_0x3bcde9['shift']());}};_0x2c9eff(++_0x5c02ce);}(_0x9ee5,0x1bb));var _0x59ee=function(_0x456319,_0x642f5a){_0x456319=_0x456319-0x0;var _0x2f5fbb=_0x9ee5[_0x456319];return _0x2f5fbb;};'use strict';var multer=require(_0x59ee('0x0'));var util=require(_0x59ee('0x1'));var path=require('path');var timeout=require(_0x59ee('0x2'));var express=require(_0x59ee('0x3'));var router=express['Router']();var fs_extra=require(_0x59ee('0x4'));var auth=require(_0x59ee('0x5'));var interaction=require(_0x59ee('0x6'));var config=require(_0x59ee('0x7'));var controller=require(_0x59ee('0x8'));router[_0x59ee('0x9')]('/',auth[_0x59ee('0xa')](),controller[_0x59ee('0xb')]);router['get'](_0x59ee('0xc'),auth[_0x59ee('0xa')](),controller[_0x59ee('0xd')]);router[_0x59ee('0xe')]('/',auth['isAuthenticated'](),controller[_0x59ee('0xf')]);router[_0x59ee('0x10')](_0x59ee('0xc'),auth[_0x59ee('0xa')](),controller[_0x59ee('0x11')]);router[_0x59ee('0x12')](_0x59ee('0xc'),auth[_0x59ee('0xa')](),controller[_0x59ee('0x13')]);module['exports']=router;