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