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 _0xff96=['/:id/configurations','isAuthenticated','getConfigurations','getFields','post','create','addConfiguration','delete','/:id','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','index','show'];(function(_0x1b828b,_0x344400){var _0x98da1a=function(_0x1a0f5b){while(--_0x1a0f5b){_0x1b828b['push'](_0x1b828b['shift']());}};_0x98da1a(++_0x344400);}(_0xff96,0x179));var _0x6ff9=function(_0x28d175,_0x5449c6){_0x28d175=_0x28d175-0x0;var _0x1ad2b0=_0xff96[_0x28d175];return _0x1ad2b0;};'use strict';var multer=require(_0x6ff9('0x0'));var util=require(_0x6ff9('0x1'));var path=require(_0x6ff9('0x2'));var timeout=require(_0x6ff9('0x3'));var express=require(_0x6ff9('0x4'));var router=express[_0x6ff9('0x5')]();var fs_extra=require(_0x6ff9('0x6'));var auth=require(_0x6ff9('0x7'));var interaction=require(_0x6ff9('0x8'));var config=require(_0x6ff9('0x9'));var controller=require(_0x6ff9('0xa'));router[_0x6ff9('0xb')]('/',auth['isAuthenticated'](),controller[_0x6ff9('0xc')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x6ff9('0xd')]);router[_0x6ff9('0xb')](_0x6ff9('0xe'),auth[_0x6ff9('0xf')](),controller[_0x6ff9('0x10')]);router[_0x6ff9('0xb')]('/:id/fields',auth[_0x6ff9('0xf')](),controller[_0x6ff9('0x11')]);router[_0x6ff9('0x12')]('/',auth[_0x6ff9('0xf')](),controller[_0x6ff9('0x13')]);router[_0x6ff9('0x12')](_0x6ff9('0xe'),auth[_0x6ff9('0xf')](),controller[_0x6ff9('0x14')]);router['put']('/:id',auth[_0x6ff9('0xf')](),controller['update']);router[_0x6ff9('0x15')](_0x6ff9('0x16'),auth[_0x6ff9('0xf')](),controller['destroy']);module['exports']=router;