Built motion from commit ab870f9e.|2.5.44
[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 _0xfe65=['fs-extra','../../components/interaction/service','../../config/environment','./whatsappApplication.controller','index','get','/:id','isAuthenticated','show','post','create','put','update','destroy','exports','multer','path','connect-timeout','express','Router'];(function(_0x414f40,_0x3d9eb8){var _0x3dc477=function(_0x541c96){while(--_0x541c96){_0x414f40['push'](_0x414f40['shift']());}};_0x3dc477(++_0x3d9eb8);}(_0xfe65,0x127));var _0x5fe6=function(_0x20b633,_0x277b4f){_0x20b633=_0x20b633-0x0;var _0x13c86d=_0xfe65[_0x20b633];return _0x13c86d;};'use strict';var multer=require(_0x5fe6('0x0'));var util=require('util');var path=require(_0x5fe6('0x1'));var timeout=require(_0x5fe6('0x2'));var express=require(_0x5fe6('0x3'));var router=express[_0x5fe6('0x4')]();var fs_extra=require(_0x5fe6('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x5fe6('0x6'));var config=require(_0x5fe6('0x7'));var controller=require(_0x5fe6('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x5fe6('0x9')]);router[_0x5fe6('0xa')](_0x5fe6('0xb'),auth[_0x5fe6('0xc')](),controller[_0x5fe6('0xd')]);router[_0x5fe6('0xe')]('/',auth[_0x5fe6('0xc')](),controller[_0x5fe6('0xf')]);router[_0x5fe6('0x10')](_0x5fe6('0xb'),auth['isAuthenticated'](),controller[_0x5fe6('0x11')]);router['delete'](_0x5fe6('0xb'),auth['isAuthenticated'](),controller[_0x5fe6('0x12')]);module[_0x5fe6('0x13')]=router;