Built motion from commit b5413ace.|2.6.9
[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 _0x0514=['index','post','create','update','delete','exports','multer','path','connect-timeout','express','Router','fs-extra','./whatsappApplication.controller','isAuthenticated'];(function(_0x40c209,_0xcd3ca3){var _0x3ea459=function(_0x4dfe0b){while(--_0x4dfe0b){_0x40c209['push'](_0x40c209['shift']());}};_0x3ea459(++_0xcd3ca3);}(_0x0514,0x180));var _0x4051=function(_0x12a5a6,_0x1ecba3){_0x12a5a6=_0x12a5a6-0x0;var _0x2f8d3=_0x0514[_0x12a5a6];return _0x2f8d3;};'use strict';var multer=require(_0x4051('0x0'));var util=require('util');var path=require(_0x4051('0x1'));var timeout=require(_0x4051('0x2'));var express=require(_0x4051('0x3'));var router=express[_0x4051('0x4')]();var fs_extra=require(_0x4051('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x4051('0x6'));router['get']('/',auth[_0x4051('0x7')](),controller[_0x4051('0x8')]);router['get']('/:id',auth[_0x4051('0x7')](),controller['show']);router[_0x4051('0x9')]('/',auth['isAuthenticated'](),controller[_0x4051('0xa')]);router['put']('/:id',auth[_0x4051('0x7')](),controller[_0x4051('0xb')]);router[_0x4051('0xc')]('/:id',auth[_0x4051('0x7')](),controller['destroy']);module[_0x4051('0xd')]=router;