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 _0xe190=['../../components/interaction/service','../../config/environment','./whatsappApplication.controller','isAuthenticated','index','get','/:id','show','post','create','delete','destroy','exports','multer','connect-timeout','express','fs-extra'];(function(_0x16d9d7,_0x4cc7fd){var _0x596ed0=function(_0x500b6e){while(--_0x500b6e){_0x16d9d7['push'](_0x16d9d7['shift']());}};_0x596ed0(++_0x4cc7fd);}(_0xe190,0xa6));var _0x0e19=function(_0x1a1d86,_0x2edf7e){_0x1a1d86=_0x1a1d86-0x0;var _0x4faaff=_0xe190[_0x1a1d86];return _0x4faaff;};'use strict';var multer=require(_0x0e19('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x0e19('0x1'));var express=require(_0x0e19('0x2'));var router=express['Router']();var fs_extra=require(_0x0e19('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x0e19('0x4'));var config=require(_0x0e19('0x5'));var controller=require(_0x0e19('0x6'));router['get']('/',auth[_0x0e19('0x7')](),controller[_0x0e19('0x8')]);router[_0x0e19('0x9')](_0x0e19('0xa'),auth['isAuthenticated'](),controller[_0x0e19('0xb')]);router[_0x0e19('0xc')]('/',auth[_0x0e19('0x7')](),controller[_0x0e19('0xd')]);router['put']('/:id',auth[_0x0e19('0x7')](),controller['update']);router[_0x0e19('0xe')](_0x0e19('0xa'),auth[_0x0e19('0x7')](),controller[_0x0e19('0xf')]);module[_0x0e19('0x10')]=router;