bd183b1642bbd96da1f3ea75c28f2e1833e4b950
[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 _0x848b=['get','/:id','isAuthenticated','show','post','update','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x2d34d6,_0x397ff9){var _0x1d3d12=function(_0x558800){while(--_0x558800){_0x2d34d6['push'](_0x2d34d6['shift']());}};_0x1d3d12(++_0x397ff9);}(_0x848b,0x17f));var _0xb848=function(_0x2c5599,_0x41d6a8){_0x2c5599=_0x2c5599-0x0;var _0x55e07a=_0x848b[_0x2c5599];return _0x55e07a;};'use strict';var multer=require(_0xb848('0x0'));var util=require('util');var path=require(_0xb848('0x1'));var timeout=require(_0xb848('0x2'));var express=require('express');var router=express[_0xb848('0x3')]();var fs_extra=require(_0xb848('0x4'));var auth=require(_0xb848('0x5'));var interaction=require(_0xb848('0x6'));var config=require(_0xb848('0x7'));var controller=require('./whatsappApplication.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xb848('0x8')](_0xb848('0x9'),auth[_0xb848('0xa')](),controller[_0xb848('0xb')]);router[_0xb848('0xc')]('/',auth[_0xb848('0xa')](),controller['create']);router['put'](_0xb848('0x9'),auth[_0xb848('0xa')](),controller[_0xb848('0xd')]);router[_0xb848('0xe')](_0xb848('0x9'),auth[_0xb848('0xa')](),controller[_0xb848('0xf')]);module[_0xb848('0x10')]=router;