8bf7a886eda86fa5e77f43eb93d7be14c6d4d139
[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 _0x9a86=['/:id/fields','post','addConfiguration','put','update','destroy','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations'];(function(_0x3753d9,_0x5a50ce){var _0x22e295=function(_0xf07355){while(--_0xf07355){_0x3753d9['push'](_0x3753d9['shift']());}};_0x22e295(++_0x5a50ce);}(_0x9a86,0xae));var _0x69a8=function(_0x5ad07c,_0x324dcd){_0x5ad07c=_0x5ad07c-0x0;var _0x204bae=_0x9a86[_0x5ad07c];return _0x204bae;};'use strict';var multer=require(_0x69a8('0x0'));var util=require(_0x69a8('0x1'));var path=require(_0x69a8('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x69a8('0x3')]();var fs_extra=require(_0x69a8('0x4'));var auth=require(_0x69a8('0x5'));var interaction=require(_0x69a8('0x6'));var config=require(_0x69a8('0x7'));var controller=require(_0x69a8('0x8'));router[_0x69a8('0x9')]('/',auth[_0x69a8('0xa')](),controller['index']);router[_0x69a8('0x9')](_0x69a8('0xb'),auth[_0x69a8('0xa')](),controller[_0x69a8('0xc')]);router['get'](_0x69a8('0xd'),auth['isAuthenticated'](),controller[_0x69a8('0xe')]);router[_0x69a8('0x9')](_0x69a8('0xf'),auth[_0x69a8('0xa')](),controller['getFields']);router[_0x69a8('0x10')]('/',auth[_0x69a8('0xa')](),controller['create']);router[_0x69a8('0x10')](_0x69a8('0xd'),auth['isAuthenticated'](),controller[_0x69a8('0x11')]);router[_0x69a8('0x12')](_0x69a8('0xb'),auth[_0x69a8('0xa')](),controller[_0x69a8('0x13')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x69a8('0x14')]);module['exports']=router;