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 _0x469a=['/:id/accept','accept','/:id/reject','delete','destroy','exports','path','connect-timeout','../../components/interaction/service','../../config/environment','./whatsappMessage.controller','get','isAuthenticated','index','/describe','describe','show','post','tracked','whatsapp','whatsappmessage:create','create','/:id/status','status','put','/:id','update'];(function(_0x14e2bd,_0x336f8c){var _0x50ff72=function(_0x54c267){while(--_0x54c267){_0x14e2bd['push'](_0x14e2bd['shift']());}};_0x50ff72(++_0x336f8c);}(_0x469a,0x1b6));var _0xa469=function(_0x2ec2bf,_0x64e983){_0x2ec2bf=_0x2ec2bf-0x0;var _0x2c279c=_0x469a[_0x2ec2bf];return _0x2c279c;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xa469('0x0'));var timeout=require(_0xa469('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xa469('0x2'));var config=require(_0xa469('0x3'));var controller=require(_0xa469('0x4'));router[_0xa469('0x5')]('/',auth[_0xa469('0x6')](),controller[_0xa469('0x7')]);router['get'](_0xa469('0x8'),auth[_0xa469('0x6')](),controller[_0xa469('0x9')]);router['get']('/:id',auth[_0xa469('0x6')](),controller[_0xa469('0xa')]);router[_0xa469('0xb')]('/',auth[_0xa469('0x6')](),interaction[_0xa469('0xc')](_0xa469('0xd'),_0xa469('0xe')),controller[_0xa469('0xf')]);router[_0xa469('0xb')](_0xa469('0x10'),controller[_0xa469('0x11')]);router[_0xa469('0x12')](_0xa469('0x13'),auth[_0xa469('0x6')](),controller[_0xa469('0x14')]);router[_0xa469('0x12')](_0xa469('0x15'),auth['isAuthenticated'](),controller[_0xa469('0x16')]);router['put'](_0xa469('0x17'),auth[_0xa469('0x6')](),controller['reject']);router[_0xa469('0x18')]('/:id',auth[_0xa469('0x6')](),controller[_0xa469('0x19')]);module[_0xa469('0x1a')]=router;