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 _0xb184=['delete','destroy','util','path','connect-timeout','express','Router','../../components/interaction/service','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','create','post','/:id/configurations','addConfiguration','put','update'];(function(_0x17eba5,_0x434f32){var _0x1aa6f1=function(_0x163713){while(--_0x163713){_0x17eba5['push'](_0x17eba5['shift']());}};_0x1aa6f1(++_0x434f32);}(_0xb184,0x128));var _0x4b18=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb184[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0x4b18('0x0'));var path=require(_0x4b18('0x1'));var timeout=require(_0x4b18('0x2'));var express=require(_0x4b18('0x3'));var router=express[_0x4b18('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x4b18('0x5'));var config=require('../../config/environment');var controller=require('./intDeskAccount.controller');router[_0x4b18('0x6')]('/',auth[_0x4b18('0x7')](),controller[_0x4b18('0x8')]);router[_0x4b18('0x6')](_0x4b18('0x9'),auth[_0x4b18('0x7')](),controller[_0x4b18('0xa')]);router['get']('/:id/configurations',auth[_0x4b18('0x7')](),controller['getConfigurations']);router['get'](_0x4b18('0xb'),auth[_0x4b18('0x7')](),controller[_0x4b18('0xc')]);router['post']('/',auth[_0x4b18('0x7')](),controller[_0x4b18('0xd')]);router[_0x4b18('0xe')](_0x4b18('0xf'),auth[_0x4b18('0x7')](),controller[_0x4b18('0x10')]);router[_0x4b18('0x11')](_0x4b18('0x9'),auth['isAuthenticated'](),controller[_0x4b18('0x12')]);router[_0x4b18('0x13')](_0x4b18('0x9'),auth['isAuthenticated'](),controller[_0x4b18('0x14')]);module['exports']=router;