5de9c3d44da5e6bab9afd37433c7db7032680a88
[motion2.git] / server / api / whatsappMessage / 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 _0xb3e0=['reject','delete','destroy','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','post','tracked','whatsapp','whatsappmessage:create','create','/:id/status','status','put','update','/:id/accept','accept'];(function(_0x4453d3,_0x2f5ae8){var _0xd83d3=function(_0x1954d0){while(--_0x1954d0){_0x4453d3['push'](_0x4453d3['shift']());}};_0xd83d3(++_0x2f5ae8);}(_0xb3e0,0x19a));var _0x0b3e=function(_0x11e6d6,_0x93cb1){_0x11e6d6=_0x11e6d6-0x0;var _0x4df6bb=_0xb3e0[_0x11e6d6];return _0x4df6bb;};'use strict';var multer=require(_0x0b3e('0x0'));var util=require('util');var path=require(_0x0b3e('0x1'));var timeout=require(_0x0b3e('0x2'));var express=require(_0x0b3e('0x3'));var router=express['Router']();var auth=require(_0x0b3e('0x4'));var interaction=require(_0x0b3e('0x5'));var config=require(_0x0b3e('0x6'));var controller=require(_0x0b3e('0x7'));router[_0x0b3e('0x8')]('/',auth[_0x0b3e('0x9')](),controller[_0x0b3e('0xa')]);router[_0x0b3e('0x8')](_0x0b3e('0xb'),auth[_0x0b3e('0x9')](),controller[_0x0b3e('0xc')]);router['get'](_0x0b3e('0xd'),auth[_0x0b3e('0x9')](),controller['show']);router[_0x0b3e('0xe')]('/',auth[_0x0b3e('0x9')](),interaction[_0x0b3e('0xf')](_0x0b3e('0x10'),_0x0b3e('0x11')),controller[_0x0b3e('0x12')]);router['post'](_0x0b3e('0x13'),controller[_0x0b3e('0x14')]);router[_0x0b3e('0x15')](_0x0b3e('0xd'),auth[_0x0b3e('0x9')](),controller[_0x0b3e('0x16')]);router[_0x0b3e('0x15')](_0x0b3e('0x17'),auth[_0x0b3e('0x9')](),controller[_0x0b3e('0x18')]);router['put']('/:id/reject',auth[_0x0b3e('0x9')](),controller[_0x0b3e('0x19')]);router[_0x0b3e('0x1a')](_0x0b3e('0xd'),auth[_0x0b3e('0x9')](),controller[_0x0b3e('0x1b')]);module[_0x0b3e('0x1c')]=router;