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 _0xa379=['path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','post','create','addConfiguration','update','delete','destroy','exports','util'];(function(_0x32805f,_0x3c28a4){var _0x424b2c=function(_0x1cbc1f){while(--_0x1cbc1f){_0x32805f['push'](_0x32805f['shift']());}};_0x424b2c(++_0x3c28a4);}(_0xa379,0x16f));var _0x9a37=function(_0x22513a,_0x468238){_0x22513a=_0x22513a-0x0;var _0x4e187c=_0xa379[_0x22513a];return _0x4e187c;};'use strict';var multer=require('multer');var util=require(_0x9a37('0x0'));var path=require(_0x9a37('0x1'));var timeout=require(_0x9a37('0x2'));var express=require(_0x9a37('0x3'));var router=express[_0x9a37('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x9a37('0x5'));var config=require(_0x9a37('0x6'));var controller=require(_0x9a37('0x7'));router[_0x9a37('0x8')]('/',auth[_0x9a37('0x9')](),controller[_0x9a37('0xa')]);router[_0x9a37('0x8')](_0x9a37('0xb'),auth[_0x9a37('0x9')](),controller[_0x9a37('0xc')]);router[_0x9a37('0x8')](_0x9a37('0xd'),auth[_0x9a37('0x9')](),controller[_0x9a37('0xe')]);router[_0x9a37('0x8')](_0x9a37('0xf'),auth['isAuthenticated'](),controller['getFields']);router[_0x9a37('0x10')]('/',auth[_0x9a37('0x9')](),controller[_0x9a37('0x11')]);router[_0x9a37('0x10')](_0x9a37('0xd'),auth[_0x9a37('0x9')](),controller[_0x9a37('0x12')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x9a37('0x13')]);router[_0x9a37('0x14')](_0x9a37('0xb'),auth[_0x9a37('0x9')](),controller[_0x9a37('0x15')]);module[_0x9a37('0x16')]=router;