e1eee9950ef9fc2d4f2927b78f18aea0fd712ffc
[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 _0x8133=['path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','post','create','put','update','delete','exports','util'];(function(_0xf72e61,_0x5d97df){var _0x348ce5=function(_0x4c01c8){while(--_0x4c01c8){_0xf72e61['push'](_0xf72e61['shift']());}};_0x348ce5(++_0x5d97df);}(_0x8133,0xa9));var _0x3813=function(_0x2b04c6,_0x25978c){_0x2b04c6=_0x2b04c6-0x0;var _0x1740dd=_0x8133[_0x2b04c6];return _0x1740dd;};'use strict';var multer=require('multer');var util=require(_0x3813('0x0'));var path=require(_0x3813('0x1'));var timeout=require(_0x3813('0x2'));var express=require('express');var router=express[_0x3813('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x3813('0x4'));var interaction=require(_0x3813('0x5'));var config=require(_0x3813('0x6'));var controller=require('./whatsappApplication.controller');router[_0x3813('0x7')]('/',auth[_0x3813('0x8')](),controller['index']);router[_0x3813('0x7')](_0x3813('0x9'),auth[_0x3813('0x8')](),controller[_0x3813('0xa')]);router[_0x3813('0xb')]('/',auth[_0x3813('0x8')](),controller[_0x3813('0xc')]);router[_0x3813('0xd')]('/:id',auth[_0x3813('0x8')](),controller[_0x3813('0xe')]);router[_0x3813('0xf')](_0x3813('0x9'),auth[_0x3813('0x8')](),controller['destroy']);module[_0x3813('0x10')]=router;