Built motion from commit 5b761a7b.|2.5.36
[motion2.git] / server / api / intDeskAccount / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x41a9=['/:id/fields','getFields','/:id/configurations','addConfiguration','destroy','util','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','isAuthenticated','index','get','/:id','getConfigurations'];(function(_0x1e4360,_0x930b9b){var _0x31e6b4=function(_0x49dd8e){while(--_0x49dd8e){_0x1e4360['push'](_0x1e4360['shift']());}};_0x31e6b4(++_0x930b9b);}(_0x41a9,0x1a5));var _0x941a=function(_0x5e74cd,_0x14e454){_0x5e74cd=_0x5e74cd-0x0;var _0x1a0402=_0x41a9[_0x5e74cd];return _0x1a0402;};'use strict';var multer=require('multer');var util=require(_0x941a('0x0'));var path=require('path');var timeout=require(_0x941a('0x1'));var express=require(_0x941a('0x2'));var router=express['Router']();var fs_extra=require(_0x941a('0x3'));var auth=require(_0x941a('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x941a('0x5'));var controller=require('./intDeskAccount.controller');router['get']('/',auth[_0x941a('0x6')](),controller[_0x941a('0x7')]);router[_0x941a('0x8')](_0x941a('0x9'),auth[_0x941a('0x6')](),controller['show']);router[_0x941a('0x8')]('/:id/configurations',auth[_0x941a('0x6')](),controller[_0x941a('0xa')]);router[_0x941a('0x8')](_0x941a('0xb'),auth[_0x941a('0x6')](),controller[_0x941a('0xc')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x941a('0xd'),auth[_0x941a('0x6')](),controller[_0x941a('0xe')]);router['put'](_0x941a('0x9'),auth[_0x941a('0x6')](),controller['update']);router['delete'](_0x941a('0x9'),auth[_0x941a('0x6')](),controller[_0x941a('0xf')]);module['exports']=router;