d5f9f213920cf1c3b51fbc06d0030391ea099f9f
[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 _0x591b=['./intDeskAccount.controller','isAuthenticated','index','get','show','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','put','/:id','update','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x3eac01,_0x2d02a5){var _0x14dd2d=function(_0x59b71c){while(--_0x59b71c){_0x3eac01['push'](_0x3eac01['shift']());}};_0x14dd2d(++_0x2d02a5);}(_0x591b,0x1c0));var _0xb591=function(_0xd68a97,_0x1de280){_0xd68a97=_0xd68a97-0x0;var _0x2fde38=_0x591b[_0xd68a97];return _0x2fde38;};'use strict';var multer=require(_0xb591('0x0'));var util=require(_0xb591('0x1'));var path=require(_0xb591('0x2'));var timeout=require(_0xb591('0x3'));var express=require(_0xb591('0x4'));var router=express['Router']();var fs_extra=require(_0xb591('0x5'));var auth=require(_0xb591('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb591('0x7'));var controller=require(_0xb591('0x8'));router['get']('/',auth[_0xb591('0x9')](),controller[_0xb591('0xa')]);router[_0xb591('0xb')]('/:id',auth['isAuthenticated'](),controller[_0xb591('0xc')]);router[_0xb591('0xb')](_0xb591('0xd'),auth[_0xb591('0x9')](),controller['getConfigurations']);router[_0xb591('0xb')](_0xb591('0xe'),auth[_0xb591('0x9')](),controller[_0xb591('0xf')]);router[_0xb591('0x10')]('/',auth[_0xb591('0x9')](),controller[_0xb591('0x11')]);router[_0xb591('0x10')](_0xb591('0xd'),auth['isAuthenticated'](),controller[_0xb591('0x12')]);router[_0xb591('0x13')](_0xb591('0x14'),auth[_0xb591('0x9')](),controller[_0xb591('0x15')]);router['delete']('/:id',auth[_0xb591('0x9')](),controller[_0xb591('0x16')]);module[_0xb591('0x17')]=router;