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