1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x992e=['/:id/reject','reject','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./whatsappMessage.controller','isAuthenticated','index','get','/describe','describe','show','tracked','whatsapp','whatsappmessage:create','post','status','put','/:id','update','/:id/accept','accept'];(function(_0x215991,_0x1d3392){var _0x1ee492=function(_0x596514){while(--_0x596514){_0x215991['push'](_0x215991['shift']());}};_0x1ee492(++_0x1d3392);}(_0x992e,0x1c7));var _0xe992=function(_0x33c603,_0x6d0ce4){_0x33c603=_0x33c603-0x0;var _0xae96f4=_0x992e[_0x33c603];return _0xae96f4;};'use strict';var multer=require(_0xe992('0x0'));var util=require(_0xe992('0x1'));var path=require(_0xe992('0x2'));var timeout=require(_0xe992('0x3'));var express=require(_0xe992('0x4'));var router=express[_0xe992('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xe992('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xe992('0x7'));var controller=require(_0xe992('0x8'));router['get']('/',auth[_0xe992('0x9')](),controller[_0xe992('0xa')]);router[_0xe992('0xb')](_0xe992('0xc'),auth['isAuthenticated'](),controller[_0xe992('0xd')]);router[_0xe992('0xb')]('/:id',auth['isAuthenticated'](),controller[_0xe992('0xe')]);router['post']('/',auth[_0xe992('0x9')](),interaction[_0xe992('0xf')](_0xe992('0x10'),_0xe992('0x11')),controller['create']);router[_0xe992('0x12')]('/:id/status',controller[_0xe992('0x13')]);router[_0xe992('0x14')](_0xe992('0x15'),auth[_0xe992('0x9')](),controller[_0xe992('0x16')]);router[_0xe992('0x14')](_0xe992('0x17'),auth[_0xe992('0x9')](),controller[_0xe992('0x18')]);router[_0xe992('0x14')](_0xe992('0x19'),auth[_0xe992('0x9')](),controller[_0xe992('0x1a')]);router[_0xe992('0x1b')](_0xe992('0x15'),auth['isAuthenticated'](),controller[_0xe992('0x1c')]);module[_0xe992('0x1d')]=router;