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 _0x0e20=['update','delete','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./intDeskAccount.controller','isAuthenticated','get','/:id','/:id/configurations','getConfigurations','create','addConfiguration','put'];(function(_0x497c14,_0x56f7bf){var _0x31bb35=function(_0x22f85c){while(--_0x22f85c){_0x497c14['push'](_0x497c14['shift']());}};_0x31bb35(++_0x56f7bf);}(_0x0e20,0x192));var _0x00e2=function(_0x22ae26,_0x4a01d5){_0x22ae26=_0x22ae26-0x0;var _0x2da4b1=_0x0e20[_0x22ae26];return _0x2da4b1;};'use strict';var multer=require(_0x00e2('0x0'));var util=require(_0x00e2('0x1'));var path=require('path');var timeout=require(_0x00e2('0x2'));var express=require(_0x00e2('0x3'));var router=express[_0x00e2('0x4')]();var auth=require(_0x00e2('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x00e2('0x6'));var controller=require(_0x00e2('0x7'));router['get']('/',auth[_0x00e2('0x8')](),controller['index']);router[_0x00e2('0x9')](_0x00e2('0xa'),auth[_0x00e2('0x8')](),controller['show']);router['get'](_0x00e2('0xb'),auth[_0x00e2('0x8')](),controller[_0x00e2('0xc')]);router[_0x00e2('0x9')]('/:id/fields',auth[_0x00e2('0x8')](),controller['getFields']);router['post']('/',auth[_0x00e2('0x8')](),controller[_0x00e2('0xd')]);router['post'](_0x00e2('0xb'),auth[_0x00e2('0x8')](),controller[_0x00e2('0xe')]);router[_0x00e2('0xf')](_0x00e2('0xa'),auth[_0x00e2('0x8')](),controller[_0x00e2('0x10')]);router[_0x00e2('0x11')]('/:id',auth[_0x00e2('0x8')](),controller['destroy']);module[_0x00e2('0x12')]=router;