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 _0xb81e=['../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','isAuthenticated','index','get','getConfigurations','/:id/fields','getFields','create','post','/:id/configurations','put','/:id','update','delete','destroy','exports','Router','fs-extra'];(function(_0x2d61b2,_0x142947){var _0x12df89=function(_0x31c717){while(--_0x31c717){_0x2d61b2['push'](_0x2d61b2['shift']());}};_0x12df89(++_0x142947);}(_0xb81e,0xc6));var _0xeb81=function(_0x4382f9,_0x1c3641){_0x4382f9=_0x4382f9-0x0;var _0x50b785=_0xb81e[_0x4382f9];return _0x50b785;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xeb81('0x0')]();var fs_extra=require(_0xeb81('0x1'));var auth=require('../../components/auth/service');var interaction=require(_0xeb81('0x2'));var config=require(_0xeb81('0x3'));var controller=require(_0xeb81('0x4'));router['get']('/',auth[_0xeb81('0x5')](),controller[_0xeb81('0x6')]);router[_0xeb81('0x7')]('/:id',auth[_0xeb81('0x5')](),controller['show']);router['get']('/:id/configurations',auth[_0xeb81('0x5')](),controller[_0xeb81('0x8')]);router['get'](_0xeb81('0x9'),auth[_0xeb81('0x5')](),controller[_0xeb81('0xa')]);router['post']('/',auth[_0xeb81('0x5')](),controller[_0xeb81('0xb')]);router[_0xeb81('0xc')](_0xeb81('0xd'),auth[_0xeb81('0x5')](),controller['addConfiguration']);router[_0xeb81('0xe')](_0xeb81('0xf'),auth[_0xeb81('0x5')](),controller[_0xeb81('0x10')]);router[_0xeb81('0x11')](_0xeb81('0xf'),auth[_0xeb81('0x5')](),controller[_0xeb81('0x12')]);module[_0xeb81('0x13')]=router;