934dd6d4d4b0e6a22c5dd840b2df4eb72636bf83
[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 _0x163b=['/:id/fields','getFields','post','create','addConfiguration','put','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskAccount.controller','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations'];(function(_0xd1d19a,_0x1933f0){var _0x52a79d=function(_0x5199e2){while(--_0x5199e2){_0xd1d19a['push'](_0xd1d19a['shift']());}};_0x52a79d(++_0x1933f0);}(_0x163b,0x170));var _0xb163=function(_0x56163f,_0x2d9b08){_0x56163f=_0x56163f-0x0;var _0x45016b=_0x163b[_0x56163f];return _0x45016b;};'use strict';var multer=require(_0xb163('0x0'));var util=require(_0xb163('0x1'));var path=require(_0xb163('0x2'));var timeout=require(_0xb163('0x3'));var express=require(_0xb163('0x4'));var router=express[_0xb163('0x5')]();var auth=require(_0xb163('0x6'));var interaction=require(_0xb163('0x7'));var config=require(_0xb163('0x8'));var controller=require(_0xb163('0x9'));router[_0xb163('0xa')]('/',auth[_0xb163('0xb')](),controller['index']);router[_0xb163('0xa')](_0xb163('0xc'),auth[_0xb163('0xb')](),controller[_0xb163('0xd')]);router[_0xb163('0xa')](_0xb163('0xe'),auth[_0xb163('0xb')](),controller[_0xb163('0xf')]);router['get'](_0xb163('0x10'),auth[_0xb163('0xb')](),controller[_0xb163('0x11')]);router[_0xb163('0x12')]('/',auth['isAuthenticated'](),controller[_0xb163('0x13')]);router[_0xb163('0x12')](_0xb163('0xe'),auth[_0xb163('0xb')](),controller[_0xb163('0x14')]);router[_0xb163('0x15')](_0xb163('0xc'),auth[_0xb163('0xb')](),controller['update']);router[_0xb163('0x16')]('/:id',auth[_0xb163('0xb')](),controller[_0xb163('0x17')]);module['exports']=router;