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