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 _0x412a=['express','../../config/environment','./intVtigerAccount.controller','isAuthenticated','get','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','update','delete','destroy','exports','multer','path','connect-timeout'];(function(_0x1a8008,_0x43ed13){var _0x468b0c=function(_0x584b6b){while(--_0x584b6b){_0x1a8008['push'](_0x1a8008['shift']());}};_0x468b0c(++_0x43ed13);}(_0x412a,0x13d));var _0xa412=function(_0x624d13,_0x4111af){_0x624d13=_0x624d13-0x0;var _0x60166c=_0x412a[_0x624d13];return _0x60166c;};'use strict';var multer=require(_0xa412('0x0'));var util=require('util');var path=require(_0xa412('0x1'));var timeout=require(_0xa412('0x2'));var express=require(_0xa412('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa412('0x4'));var controller=require(_0xa412('0x5'));router['get']('/',auth[_0xa412('0x6')](),controller['index']);router[_0xa412('0x7')](_0xa412('0x8'),auth[_0xa412('0x6')](),controller['show']);router['get'](_0xa412('0x9'),auth[_0xa412('0x6')](),controller[_0xa412('0xa')]);router[_0xa412('0x7')](_0xa412('0xb'),auth['isAuthenticated'](),controller[_0xa412('0xc')]);router[_0xa412('0xd')]('/',auth[_0xa412('0x6')](),controller[_0xa412('0xe')]);router[_0xa412('0xd')](_0xa412('0x9'),auth[_0xa412('0x6')](),controller[_0xa412('0xf')]);router['put'](_0xa412('0x8'),auth[_0xa412('0x6')](),controller[_0xa412('0x10')]);router[_0xa412('0x11')](_0xa412('0x8'),auth[_0xa412('0x6')](),controller[_0xa412('0x12')]);module[_0xa412('0x13')]=router;