4796165dff3da4699af2bacb950ca6f086e85fdf
[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 _0x682c=['../../config/environment','./intDeskAccount.controller','isAuthenticated','get','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','put','update','delete','/:id','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x172747,_0x1732bd){var _0x509692=function(_0x448c56){while(--_0x448c56){_0x172747['push'](_0x172747['shift']());}};_0x509692(++_0x1732bd);}(_0x682c,0x1dc));var _0xc682=function(_0x19cd3c,_0x53993d){_0x19cd3c=_0x19cd3c-0x0;var _0xba217f=_0x682c[_0x19cd3c];return _0xba217f;};'use strict';var multer=require(_0xc682('0x0'));var util=require(_0xc682('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xc682('0x2'));var router=express[_0xc682('0x3')]();var fs_extra=require(_0xc682('0x4'));var auth=require(_0xc682('0x5'));var interaction=require(_0xc682('0x6'));var config=require(_0xc682('0x7'));var controller=require(_0xc682('0x8'));router['get']('/',auth[_0xc682('0x9')](),controller['index']);router[_0xc682('0xa')]('/:id',auth[_0xc682('0x9')](),controller[_0xc682('0xb')]);router[_0xc682('0xa')](_0xc682('0xc'),auth['isAuthenticated'](),controller[_0xc682('0xd')]);router[_0xc682('0xa')](_0xc682('0xe'),auth['isAuthenticated'](),controller[_0xc682('0xf')]);router[_0xc682('0x10')]('/',auth[_0xc682('0x9')](),controller[_0xc682('0x11')]);router['post'](_0xc682('0xc'),auth[_0xc682('0x9')](),controller['addConfiguration']);router[_0xc682('0x12')]('/:id',auth[_0xc682('0x9')](),controller[_0xc682('0x13')]);router[_0xc682('0x14')](_0xc682('0x15'),auth[_0xc682('0x9')](),controller['destroy']);module[_0xc682('0x16')]=router;