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 _0x21de=['describe','post','put','/:id','delete','destroy','util','path','express','Router','../../components/auth/service','../../config/environment','./whatsappTransferReport.controller','isAuthenticated','index','get'];(function(_0x57474e,_0x4178b8){var _0xfaae8c=function(_0x2e34d1){while(--_0x2e34d1){_0x57474e['push'](_0x57474e['shift']());}};_0xfaae8c(++_0x4178b8);}(_0x21de,0x96));var _0xe21d=function(_0x3afc75,_0x32dc5b){_0x3afc75=_0x3afc75-0x0;var _0x16f415=_0x21de[_0x3afc75];return _0x16f415;};'use strict';var multer=require('multer');var util=require(_0xe21d('0x0'));var path=require(_0xe21d('0x1'));var timeout=require('connect-timeout');var express=require(_0xe21d('0x2'));var router=express[_0xe21d('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xe21d('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xe21d('0x5'));var controller=require(_0xe21d('0x6'));router['get']('/',auth[_0xe21d('0x7')](),controller[_0xe21d('0x8')]);router[_0xe21d('0x9')]('/describe',auth[_0xe21d('0x7')](),controller[_0xe21d('0xa')]);router[_0xe21d('0x9')]('/:id',auth[_0xe21d('0x7')](),controller['show']);router[_0xe21d('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xe21d('0xc')](_0xe21d('0xd'),auth[_0xe21d('0x7')](),controller['update']);router[_0xe21d('0xe')](_0xe21d('0xd'),auth[_0xe21d('0x7')](),controller[_0xe21d('0xf')]);module['exports']=router;