Built motion from commit 00bf23f6.|2.6.16
[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 _0xfc24=['/:id','isAuthenticated','show','post','create','update','destroy','exports','multer','path','Router','../../components/auth/service','../../config/environment','./whatsappApplication.controller','get'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xfc24,0x1d9));var _0x4fc2=function(_0x2962d5,_0x38deda){_0x2962d5=_0x2962d5-0x0;var _0x273406=_0xfc24[_0x2962d5];return _0x273406;};'use strict';var multer=require(_0x4fc2('0x0'));var util=require('util');var path=require(_0x4fc2('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x4fc2('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x4fc2('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x4fc2('0x4'));var controller=require(_0x4fc2('0x5'));router[_0x4fc2('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x4fc2('0x6')](_0x4fc2('0x7'),auth[_0x4fc2('0x8')](),controller[_0x4fc2('0x9')]);router[_0x4fc2('0xa')]('/',auth['isAuthenticated'](),controller[_0x4fc2('0xb')]);router['put']('/:id',auth[_0x4fc2('0x8')](),controller[_0x4fc2('0xc')]);router['delete']('/:id',auth[_0x4fc2('0x8')](),controller[_0x4fc2('0xd')]);module[_0x4fc2('0xe')]=router;