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 _0xcb12=['describe','/:id','show','post','tracked','whatsapp','/:id/status','status','put','/:id/accept','accept','/:id/reject','delete','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe'];(function(_0x566bdf,_0x1f4861){var _0x331215=function(_0x524d0d){while(--_0x524d0d){_0x566bdf['push'](_0x566bdf['shift']());}};_0x331215(++_0x1f4861);}(_0xcb12,0x160));var _0x2cb1=function(_0xb11496,_0x23fb82){_0xb11496=_0xb11496-0x0;var _0x449fa8=_0xcb12[_0xb11496];return _0x449fa8;};'use strict';var multer=require(_0x2cb1('0x0'));var util=require('util');var path=require(_0x2cb1('0x1'));var timeout=require(_0x2cb1('0x2'));var express=require(_0x2cb1('0x3'));var router=express[_0x2cb1('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x2cb1('0x5'));var interaction=require(_0x2cb1('0x6'));var config=require(_0x2cb1('0x7'));var controller=require('./whatsappMessage.controller');router[_0x2cb1('0x8')]('/',auth[_0x2cb1('0x9')](),controller[_0x2cb1('0xa')]);router[_0x2cb1('0x8')](_0x2cb1('0xb'),auth[_0x2cb1('0x9')](),controller[_0x2cb1('0xc')]);router[_0x2cb1('0x8')](_0x2cb1('0xd'),auth[_0x2cb1('0x9')](),controller[_0x2cb1('0xe')]);router[_0x2cb1('0xf')]('/',auth[_0x2cb1('0x9')](),interaction[_0x2cb1('0x10')](_0x2cb1('0x11'),'whatsappmessage:create'),controller['create']);router['post'](_0x2cb1('0x12'),controller[_0x2cb1('0x13')]);router[_0x2cb1('0x14')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x2cb1('0x14')](_0x2cb1('0x15'),auth['isAuthenticated'](),controller[_0x2cb1('0x16')]);router[_0x2cb1('0x14')](_0x2cb1('0x17'),auth['isAuthenticated'](),controller['reject']);router[_0x2cb1('0x18')]('/:id',auth[_0x2cb1('0x9')](),controller['destroy']);module[_0x2cb1('0x19')]=router;