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 _0x4fb4=['express','Router','fs-extra','../../components/interaction/service','../../config/environment','./whatsappInteraction.controller','get','isAuthenticated','index','/describe','describe','show','/:id/messages','getMessages','/:id/download','download','create','post','/:id/tags','tracked','whatsapp','addTags','put','/:id','whatsappinteraction:update','delete','whatsappinteraction:destroy','destroy','util','path','connect-timeout'];(function(_0x596f6e,_0x3f8857){var _0x1e0803=function(_0x31f91f){while(--_0x31f91f){_0x596f6e['push'](_0x596f6e['shift']());}};_0x1e0803(++_0x3f8857);}(_0x4fb4,0x190));var _0x44fb=function(_0x29c429,_0x210110){_0x29c429=_0x29c429-0x0;var _0x233be3=_0x4fb4[_0x29c429];return _0x233be3;};'use strict';var multer=require('multer');var util=require(_0x44fb('0x0'));var path=require(_0x44fb('0x1'));var timeout=require(_0x44fb('0x2'));var express=require(_0x44fb('0x3'));var router=express[_0x44fb('0x4')]();var fs_extra=require(_0x44fb('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x44fb('0x6'));var config=require(_0x44fb('0x7'));var controller=require(_0x44fb('0x8'));router[_0x44fb('0x9')]('/',auth[_0x44fb('0xa')](),controller[_0x44fb('0xb')]);router[_0x44fb('0x9')](_0x44fb('0xc'),auth['isAuthenticated'](),controller[_0x44fb('0xd')]);router[_0x44fb('0x9')]('/:id',auth[_0x44fb('0xa')](),controller[_0x44fb('0xe')]);router[_0x44fb('0x9')](_0x44fb('0xf'),auth[_0x44fb('0xa')](),controller[_0x44fb('0x10')]);router[_0x44fb('0x9')](_0x44fb('0x11'),auth[_0x44fb('0xa')](),controller[_0x44fb('0x12')]);router['post']('/',auth[_0x44fb('0xa')](),controller[_0x44fb('0x13')]);router[_0x44fb('0x14')](_0x44fb('0xf'),auth[_0x44fb('0xa')](),controller['addMessage']);router[_0x44fb('0x14')](_0x44fb('0x15'),auth[_0x44fb('0xa')](),interaction[_0x44fb('0x16')](_0x44fb('0x17'),'whatsappinteraction:addtags'),controller[_0x44fb('0x18')]);router[_0x44fb('0x19')](_0x44fb('0x1a'),auth[_0x44fb('0xa')](),interaction[_0x44fb('0x16')](_0x44fb('0x17'),_0x44fb('0x1b')),controller['update']);router[_0x44fb('0x1c')](_0x44fb('0x1a'),auth[_0x44fb('0xa')](),interaction[_0x44fb('0x16')](_0x44fb('0x17'),_0x44fb('0x1d')),controller[_0x44fb('0x1e')]);router[_0x44fb('0x1c')](_0x44fb('0x15'),auth[_0x44fb('0xa')](),controller['removeTags']);module['exports']=router;