Built motion from commit f94df7f0.|2.5.48
[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 _0x2d30=['../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','isAuthenticated','get','/describe','describe','show','post','tracked','whatsapp','whatsappmessage:create','/:id/status','status','put','/:id','update','/:id/accept','accept','/:id/reject','reject','delete','destroy','connect-timeout','express','Router','fs-extra'];(function(_0x9c2427,_0x17c865){var _0x51984f=function(_0x177af6){while(--_0x177af6){_0x9c2427['push'](_0x9c2427['shift']());}};_0x51984f(++_0x17c865);}(_0x2d30,0x1d8));var _0x02d3=function(_0x170941,_0x38d105){_0x170941=_0x170941-0x0;var _0x50e48d=_0x2d30[_0x170941];return _0x50e48d;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x02d3('0x0'));var express=require(_0x02d3('0x1'));var router=express[_0x02d3('0x2')]();var fs_extra=require(_0x02d3('0x3'));var auth=require(_0x02d3('0x4'));var interaction=require(_0x02d3('0x5'));var config=require(_0x02d3('0x6'));var controller=require(_0x02d3('0x7'));router['get']('/',auth[_0x02d3('0x8')](),controller['index']);router[_0x02d3('0x9')](_0x02d3('0xa'),auth[_0x02d3('0x8')](),controller[_0x02d3('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x02d3('0xc')]);router[_0x02d3('0xd')]('/',auth[_0x02d3('0x8')](),interaction[_0x02d3('0xe')](_0x02d3('0xf'),_0x02d3('0x10')),controller['create']);router[_0x02d3('0xd')](_0x02d3('0x11'),controller[_0x02d3('0x12')]);router[_0x02d3('0x13')](_0x02d3('0x14'),auth[_0x02d3('0x8')](),controller[_0x02d3('0x15')]);router['put'](_0x02d3('0x16'),auth[_0x02d3('0x8')](),controller[_0x02d3('0x17')]);router[_0x02d3('0x13')](_0x02d3('0x18'),auth['isAuthenticated'](),controller[_0x02d3('0x19')]);router[_0x02d3('0x1a')]('/:id',auth[_0x02d3('0x8')](),controller[_0x02d3('0x1b')]);module['exports']=router;