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