Built motion from commit (unavailable).|2.5.7
[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 _0x15a5=['./whatsappMessage.controller','get','isAuthenticated','/describe','describe','post','whatsappmessage:create','create','/:id/status','update','put','/:id/accept','/:id/reject','reject','delete','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x3e1b4a,_0x84af5f){var _0x35e175=function(_0x51e4ac){while(--_0x51e4ac){_0x3e1b4a['push'](_0x3e1b4a['shift']());}};_0x35e175(++_0x84af5f);}(_0x15a5,0x148));var _0x515a=function(_0x14c761,_0x3b8187){_0x14c761=_0x14c761-0x0;var _0x23e094=_0x15a5[_0x14c761];return _0x23e094;};'use strict';var multer=require(_0x515a('0x0'));var util=require(_0x515a('0x1'));var path=require('path');var timeout=require(_0x515a('0x2'));var express=require(_0x515a('0x3'));var router=express[_0x515a('0x4')]();var auth=require(_0x515a('0x5'));var interaction=require(_0x515a('0x6'));var config=require(_0x515a('0x7'));var controller=require(_0x515a('0x8'));router[_0x515a('0x9')]('/',auth[_0x515a('0xa')](),controller['index']);router[_0x515a('0x9')](_0x515a('0xb'),auth[_0x515a('0xa')](),controller[_0x515a('0xc')]);router[_0x515a('0x9')]('/:id',auth[_0x515a('0xa')](),controller['show']);router[_0x515a('0xd')]('/',auth[_0x515a('0xa')](),interaction['tracked']('whatsapp',_0x515a('0xe')),controller[_0x515a('0xf')]);router[_0x515a('0xd')](_0x515a('0x10'),controller['status']);router['put']('/:id',auth['isAuthenticated'](),controller[_0x515a('0x11')]);router[_0x515a('0x12')](_0x515a('0x13'),auth[_0x515a('0xa')](),controller['accept']);router[_0x515a('0x12')](_0x515a('0x14'),auth[_0x515a('0xa')](),controller[_0x515a('0x15')]);router[_0x515a('0x16')]('/:id',auth[_0x515a('0xa')](),controller['destroy']);module[_0x515a('0x17')]=router;