Built motion from commit (unavailable).|2.5.7
[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 _0xb3ba=['put','update','delete','/:id','destroy','/:id/sections','removeSections','/:id/resources','removeResources','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfile.controller','get','isAuthenticated','index','describe','show','getSections','getResources','post','create','/:id/clone','clone','addSections'];(function(_0x119a7b,_0x1a7052){var _0x2be96d=function(_0x1f884c){while(--_0x1f884c){_0x119a7b['push'](_0x119a7b['shift']());}};_0x2be96d(++_0x1a7052);}(_0xb3ba,0xbd));var _0xab3b=function(_0x1b50eb,_0x16afde){_0x1b50eb=_0x1b50eb-0x0;var _0x50d44b=_0xb3ba[_0x1b50eb];return _0x50d44b;};'use strict';var multer=require('multer');var util=require(_0xab3b('0x0'));var path=require(_0xab3b('0x1'));var timeout=require(_0xab3b('0x2'));var express=require(_0xab3b('0x3'));var router=express[_0xab3b('0x4')]();var auth=require(_0xab3b('0x5'));var interaction=require(_0xab3b('0x6'));var config=require(_0xab3b('0x7'));var controller=require(_0xab3b('0x8'));router[_0xab3b('0x9')]('/',auth[_0xab3b('0xa')](),controller[_0xab3b('0xb')]);router[_0xab3b('0x9')]('/describe',auth[_0xab3b('0xa')](),controller[_0xab3b('0xc')]);router[_0xab3b('0x9')]('/:id',auth[_0xab3b('0xa')](),controller[_0xab3b('0xd')]);router[_0xab3b('0x9')]('/:id/sections',auth['isAuthenticated'](),controller[_0xab3b('0xe')]);router[_0xab3b('0x9')]('/:id/resources',auth[_0xab3b('0xa')](),controller[_0xab3b('0xf')]);router[_0xab3b('0x10')]('/',auth[_0xab3b('0xa')](),controller[_0xab3b('0x11')]);router[_0xab3b('0x10')](_0xab3b('0x12'),auth[_0xab3b('0xa')](),controller[_0xab3b('0x13')]);router[_0xab3b('0x10')]('/:id/sections',auth[_0xab3b('0xa')](),controller[_0xab3b('0x14')]);router['post']('/:id/resources',auth[_0xab3b('0xa')](),controller['addResources']);router[_0xab3b('0x15')]('/:id',auth[_0xab3b('0xa')](),controller[_0xab3b('0x16')]);router[_0xab3b('0x17')](_0xab3b('0x18'),auth[_0xab3b('0xa')](),controller[_0xab3b('0x19')]);router[_0xab3b('0x17')](_0xab3b('0x1a'),auth[_0xab3b('0xa')](),controller[_0xab3b('0x1b')]);router[_0xab3b('0x17')](_0xab3b('0x1c'),auth[_0xab3b('0xa')](),controller[_0xab3b('0x1d')]);module['exports']=router;