Built motion from commit (unavailable).|2.5.13
[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 _0xaa22=['reject','destroy','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','describe','tracked','whatsapp','whatsappmessage:create','/:id/status','put','/:id','/:id/reject'];(function(_0x8c43de,_0x90ff31){var _0xa6591b=function(_0x469716){while(--_0x469716){_0x8c43de['push'](_0x8c43de['shift']());}};_0xa6591b(++_0x90ff31);}(_0xaa22,0x1dd));var _0x2aa2=function(_0x3590a1,_0x3c3439){_0x3590a1=_0x3590a1-0x0;var _0x3d893a=_0xaa22[_0x3590a1];return _0x3d893a;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2aa2('0x0'));var timeout=require('connect-timeout');var express=require(_0x2aa2('0x1'));var router=express[_0x2aa2('0x2')]();var auth=require(_0x2aa2('0x3'));var interaction=require(_0x2aa2('0x4'));var config=require(_0x2aa2('0x5'));var controller=require('./whatsappMessage.controller');router['get']('/',auth[_0x2aa2('0x6')](),controller[_0x2aa2('0x7')]);router[_0x2aa2('0x8')]('/describe',auth[_0x2aa2('0x6')](),controller[_0x2aa2('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x2aa2('0x6')](),interaction[_0x2aa2('0xa')](_0x2aa2('0xb'),_0x2aa2('0xc')),controller['create']);router['post'](_0x2aa2('0xd'),controller['status']);router[_0x2aa2('0xe')](_0x2aa2('0xf'),auth[_0x2aa2('0x6')](),controller['update']);router[_0x2aa2('0xe')]('/:id/accept',auth[_0x2aa2('0x6')](),controller['accept']);router[_0x2aa2('0xe')](_0x2aa2('0x10'),auth[_0x2aa2('0x6')](),controller[_0x2aa2('0x11')]);router['delete'](_0x2aa2('0xf'),auth[_0x2aa2('0x6')](),controller[_0x2aa2('0x12')]);module['exports']=router;