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 _0x0984=['../../components/auth/service','./intDeskAccount.controller','index','get','/:id','isAuthenticated','/:id/configurations','/:id/fields','getFields','post','addConfiguration','put','destroy','multer','util','path','connect-timeout','express'];(function(_0x811094,_0x2ca567){var _0x779048=function(_0x5f093f){while(--_0x5f093f){_0x811094['push'](_0x811094['shift']());}};_0x779048(++_0x2ca567);}(_0x0984,0x163));var _0x4098=function(_0x281e4b,_0x13cc6a){_0x281e4b=_0x281e4b-0x0;var _0x53b735=_0x0984[_0x281e4b];return _0x53b735;};'use strict';var multer=require(_0x4098('0x0'));var util=require(_0x4098('0x1'));var path=require(_0x4098('0x2'));var timeout=require(_0x4098('0x3'));var express=require(_0x4098('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x4098('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x4098('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x4098('0x7')]);router[_0x4098('0x8')](_0x4098('0x9'),auth[_0x4098('0xa')](),controller['show']);router[_0x4098('0x8')](_0x4098('0xb'),auth[_0x4098('0xa')](),controller['getConfigurations']);router[_0x4098('0x8')](_0x4098('0xc'),auth[_0x4098('0xa')](),controller[_0x4098('0xd')]);router[_0x4098('0xe')]('/',auth[_0x4098('0xa')](),controller['create']);router[_0x4098('0xe')](_0x4098('0xb'),auth['isAuthenticated'](),controller[_0x4098('0xf')]);router[_0x4098('0x10')](_0x4098('0x9'),auth[_0x4098('0xa')](),controller['update']);router['delete'](_0x4098('0x9'),auth[_0x4098('0xa')](),controller[_0x4098('0x11')]);module['exports']=router;