c5d6e04e01a6aa74866dc5593d731443dbbd8a45
[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 _0xa236=['update','delete','exports','multer','util','connect-timeout','Router','./whatsappApplication.controller','get','isAuthenticated','/:id','show','put'];(function(_0x4f2498,_0x6428e1){var _0xe9a958=function(_0x174154){while(--_0x174154){_0x4f2498['push'](_0x4f2498['shift']());}};_0xe9a958(++_0x6428e1);}(_0xa236,0xe0));var _0x6a23=function(_0x5205ec,_0x85b986){_0x5205ec=_0x5205ec-0x0;var _0x1fbcd6=_0xa236[_0x5205ec];return _0x1fbcd6;};'use strict';var multer=require(_0x6a23('0x0'));var util=require(_0x6a23('0x1'));var path=require('path');var timeout=require(_0x6a23('0x2'));var express=require('express');var router=express[_0x6a23('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x6a23('0x4'));router[_0x6a23('0x5')]('/',auth[_0x6a23('0x6')](),controller['index']);router[_0x6a23('0x5')](_0x6a23('0x7'),auth[_0x6a23('0x6')](),controller[_0x6a23('0x8')]);router['post']('/',auth[_0x6a23('0x6')](),controller['create']);router[_0x6a23('0x9')](_0x6a23('0x7'),auth[_0x6a23('0x6')](),controller[_0x6a23('0xa')]);router[_0x6a23('0xb')]('/:id',auth[_0x6a23('0x6')](),controller['destroy']);module[_0x6a23('0xc')]=router;