fa357f0480e0cb9c1f57c53fd1438f5d24ccd1c6
[motion2.git] / server / api / userProfile / 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 _0xbf9d=['/:id','/:id/sections','getSections','/:id/resources','getResources','post','create','/:id/clone','clone','addResources','update','delete','destroy','removeSections','removeResources','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','index','isAuthenticated'];(function(_0x15dbd6,_0x2b67e9){var _0x598e01=function(_0x1b9f69){while(--_0x1b9f69){_0x15dbd6['push'](_0x15dbd6['shift']());}};_0x598e01(++_0x2b67e9);}(_0xbf9d,0x1c9));var _0xdbf9=function(_0x5e1e1b,_0x298762){_0x5e1e1b=_0x5e1e1b-0x0;var _0x179180=_0xbf9d[_0x5e1e1b];return _0x179180;};'use strict';var multer=require('multer');var util=require(_0xdbf9('0x0'));var path=require('path');var timeout=require(_0xdbf9('0x1'));var express=require(_0xdbf9('0x2'));var router=express[_0xdbf9('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xdbf9('0x4'));var interaction=require(_0xdbf9('0x5'));var config=require(_0xdbf9('0x6'));var controller=require(_0xdbf9('0x7'));router[_0xdbf9('0x8')]('/',auth['isAuthenticated'](),controller[_0xdbf9('0x9')]);router[_0xdbf9('0x8')]('/describe',auth[_0xdbf9('0xa')](),controller['describe']);router['get'](_0xdbf9('0xb'),auth[_0xdbf9('0xa')](),controller['show']);router[_0xdbf9('0x8')](_0xdbf9('0xc'),auth[_0xdbf9('0xa')](),controller[_0xdbf9('0xd')]);router[_0xdbf9('0x8')](_0xdbf9('0xe'),auth['isAuthenticated'](),controller[_0xdbf9('0xf')]);router[_0xdbf9('0x10')]('/',auth[_0xdbf9('0xa')](),controller[_0xdbf9('0x11')]);router[_0xdbf9('0x10')](_0xdbf9('0x12'),auth[_0xdbf9('0xa')](),controller[_0xdbf9('0x13')]);router[_0xdbf9('0x10')](_0xdbf9('0xc'),auth[_0xdbf9('0xa')](),controller['addSections']);router[_0xdbf9('0x10')]('/:id/resources',auth['isAuthenticated'](),controller[_0xdbf9('0x14')]);router['put'](_0xdbf9('0xb'),auth[_0xdbf9('0xa')](),controller[_0xdbf9('0x15')]);router[_0xdbf9('0x16')]('/:id',auth['isAuthenticated'](),controller[_0xdbf9('0x17')]);router[_0xdbf9('0x16')]('/:id/sections',auth[_0xdbf9('0xa')](),controller[_0xdbf9('0x18')]);router[_0xdbf9('0x16')](_0xdbf9('0xe'),auth[_0xdbf9('0xa')](),controller[_0xdbf9('0x19')]);module['exports']=router;