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