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