0785c2b439bb40ea510251231340736f809722bb
[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 _0x37c6=['isAuthenticated','show','create','put','update','exports','multer','path','connect-timeout','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','get','index','/:id'];(function(_0xb9cb84,_0x32e936){var _0x272e1c=function(_0xadddcb){while(--_0xadddcb){_0xb9cb84['push'](_0xb9cb84['shift']());}};_0x272e1c(++_0x32e936);}(_0x37c6,0xba));var _0x637c=function(_0x2cc887,_0x21e1d1){_0x2cc887=_0x2cc887-0x0;var _0xaa2a2c=_0x37c6[_0x2cc887];return _0xaa2a2c;};'use strict';var multer=require(_0x637c('0x0'));var util=require('util');var path=require(_0x637c('0x1'));var timeout=require(_0x637c('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x637c('0x3'));var config=require(_0x637c('0x4'));var controller=require(_0x637c('0x5'));router[_0x637c('0x6')]('/',auth['isAuthenticated'](),controller[_0x637c('0x7')]);router[_0x637c('0x6')](_0x637c('0x8'),auth[_0x637c('0x9')](),controller[_0x637c('0xa')]);router['post']('/',auth[_0x637c('0x9')](),controller[_0x637c('0xb')]);router[_0x637c('0xc')](_0x637c('0x8'),auth[_0x637c('0x9')](),controller[_0x637c('0xd')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x637c('0xe')]=router;