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