Built motion from commit 9d0783e6.|2.6.13
[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 _0x5cd5=['../../config/environment','./userProfile.controller','get','isAuthenticated','/:id','/:id/sections','getSections','/:id/resources','post','/:id/clone','clone','addResources','put','update','delete','removeSections','removeResources','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x5e9e3d,_0x567718){var _0x579c2c=function(_0xc24425){while(--_0xc24425){_0x5e9e3d['push'](_0x5e9e3d['shift']());}};_0x579c2c(++_0x567718);}(_0x5cd5,0x10b));var _0x55cd=function(_0x45b9cd,_0x5caca1){_0x45b9cd=_0x45b9cd-0x0;var _0x468d3c=_0x5cd5[_0x45b9cd];return _0x468d3c;};'use strict';var multer=require(_0x55cd('0x0'));var util=require(_0x55cd('0x1'));var path=require(_0x55cd('0x2'));var timeout=require(_0x55cd('0x3'));var express=require(_0x55cd('0x4'));var router=express[_0x55cd('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x55cd('0x6'));var interaction=require(_0x55cd('0x7'));var config=require(_0x55cd('0x8'));var controller=require(_0x55cd('0x9'));router[_0x55cd('0xa')]('/',auth[_0x55cd('0xb')](),controller['index']);router[_0x55cd('0xa')]('/describe',auth[_0x55cd('0xb')](),controller['describe']);router[_0x55cd('0xa')](_0x55cd('0xc'),auth[_0x55cd('0xb')](),controller['show']);router['get'](_0x55cd('0xd'),auth[_0x55cd('0xb')](),controller[_0x55cd('0xe')]);router[_0x55cd('0xa')](_0x55cd('0xf'),auth[_0x55cd('0xb')](),controller['getResources']);router['post']('/',auth[_0x55cd('0xb')](),controller['create']);router[_0x55cd('0x10')](_0x55cd('0x11'),auth['isAuthenticated'](),controller[_0x55cd('0x12')]);router['post']('/:id/sections',auth[_0x55cd('0xb')](),controller['addSections']);router[_0x55cd('0x10')](_0x55cd('0xf'),auth[_0x55cd('0xb')](),controller[_0x55cd('0x13')]);router[_0x55cd('0x14')](_0x55cd('0xc'),auth['isAuthenticated'](),controller[_0x55cd('0x15')]);router[_0x55cd('0x16')](_0x55cd('0xc'),auth[_0x55cd('0xb')](),controller['destroy']);router[_0x55cd('0x16')](_0x55cd('0xd'),auth['isAuthenticated'](),controller[_0x55cd('0x17')]);router[_0x55cd('0x16')](_0x55cd('0xf'),auth[_0x55cd('0xb')](),controller[_0x55cd('0x18')]);module['exports']=router;