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 _0x7da7=['/:id/accept','/:id/reject','reject','destroy','exports','multer','util','path','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','describe','/:id','post','tracked','whatsappmessage:create','create','/:id/status','put'];(function(_0x5161fc,_0x37c5f6){var _0x38490b=function(_0x49ebd8){while(--_0x49ebd8){_0x5161fc['push'](_0x5161fc['shift']());}};_0x38490b(++_0x37c5f6);}(_0x7da7,0x10d));var _0x77da=function(_0x46c1d5,_0x5ca335){_0x46c1d5=_0x46c1d5-0x0;var _0x40fe7b=_0x7da7[_0x46c1d5];return _0x40fe7b;};'use strict';var multer=require(_0x77da('0x0'));var util=require(_0x77da('0x1'));var path=require(_0x77da('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x77da('0x3')]();var fs_extra=require(_0x77da('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x77da('0x5'));var config=require(_0x77da('0x6'));var controller=require('./whatsappMessage.controller');router[_0x77da('0x7')]('/',auth[_0x77da('0x8')](),controller['index']);router[_0x77da('0x7')]('/describe',auth[_0x77da('0x8')](),controller[_0x77da('0x9')]);router[_0x77da('0x7')](_0x77da('0xa'),auth[_0x77da('0x8')](),controller['show']);router[_0x77da('0xb')]('/',auth[_0x77da('0x8')](),interaction[_0x77da('0xc')]('whatsapp',_0x77da('0xd')),controller[_0x77da('0xe')]);router[_0x77da('0xb')](_0x77da('0xf'),controller['status']);router[_0x77da('0x10')](_0x77da('0xa'),auth[_0x77da('0x8')](),controller['update']);router['put'](_0x77da('0x11'),auth[_0x77da('0x8')](),controller['accept']);router[_0x77da('0x10')](_0x77da('0x12'),auth[_0x77da('0x8')](),controller[_0x77da('0x13')]);router['delete'](_0x77da('0xa'),auth['isAuthenticated'](),controller[_0x77da('0x14')]);module[_0x77da('0x15')]=router;