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