Built motion from commit 42801a18.|2.6.28
[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 _0x3a28=['reject','destroy','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','/describe','isAuthenticated','describe','/:id','show','post','tracked','whatsapp','whatsappmessage:create','create','/:id/status','status','put','/:id/accept','accept','/:id/reject'];(function(_0x2e41e2,_0x4e7250){var _0x2844d6=function(_0x28ce24){while(--_0x28ce24){_0x2e41e2['push'](_0x2e41e2['shift']());}};_0x2844d6(++_0x4e7250);}(_0x3a28,0x6a));var _0x83a2=function(_0x1e7b16,_0x4607a1){_0x1e7b16=_0x1e7b16-0x0;var _0x37fadc=_0x3a28[_0x1e7b16];return _0x37fadc;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x83a2('0x0'));var express=require(_0x83a2('0x1'));var router=express[_0x83a2('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x83a2('0x3'));var interaction=require(_0x83a2('0x4'));var config=require(_0x83a2('0x5'));var controller=require(_0x83a2('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x83a2('0x7')](_0x83a2('0x8'),auth[_0x83a2('0x9')](),controller[_0x83a2('0xa')]);router['get'](_0x83a2('0xb'),auth[_0x83a2('0x9')](),controller[_0x83a2('0xc')]);router[_0x83a2('0xd')]('/',auth[_0x83a2('0x9')](),interaction[_0x83a2('0xe')](_0x83a2('0xf'),_0x83a2('0x10')),controller[_0x83a2('0x11')]);router[_0x83a2('0xd')](_0x83a2('0x12'),controller[_0x83a2('0x13')]);router[_0x83a2('0x14')](_0x83a2('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x83a2('0x14')](_0x83a2('0x15'),auth[_0x83a2('0x9')](),controller[_0x83a2('0x16')]);router[_0x83a2('0x14')](_0x83a2('0x17'),auth['isAuthenticated'](),controller[_0x83a2('0x18')]);router['delete'](_0x83a2('0xb'),auth[_0x83a2('0x9')](),controller[_0x83a2('0x19')]);module['exports']=router;