Built motion from commit (unavailable).|2.5.4
[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 _0x396a=['/:id/sections','addSections','addResources','update','delete','destroy','removeSections','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','describe','show','getSections','/:id/resources','getResources','post','create','clone'];(function(_0x4f5c04,_0x3398aa){var _0xeda548=function(_0x128b78){while(--_0x128b78){_0x4f5c04['push'](_0x4f5c04['shift']());}};_0xeda548(++_0x3398aa);}(_0x396a,0x10f));var _0xa396=function(_0x1c599d,_0x34ac8c){_0x1c599d=_0x1c599d-0x0;var _0x2ae32e=_0x396a[_0x1c599d];return _0x2ae32e;};'use strict';var multer=require(_0xa396('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa396('0x1'));var express=require(_0xa396('0x2'));var router=express[_0xa396('0x3')]();var auth=require(_0xa396('0x4'));var interaction=require(_0xa396('0x5'));var config=require('../../config/environment');var controller=require('./userProfile.controller');router['get']('/',auth[_0xa396('0x6')](),controller[_0xa396('0x7')]);router[_0xa396('0x8')]('/describe',auth[_0xa396('0x6')](),controller[_0xa396('0x9')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xa396('0xa')]);router['get']('/:id/sections',auth['isAuthenticated'](),controller[_0xa396('0xb')]);router[_0xa396('0x8')](_0xa396('0xc'),auth['isAuthenticated'](),controller[_0xa396('0xd')]);router[_0xa396('0xe')]('/',auth['isAuthenticated'](),controller[_0xa396('0xf')]);router['post']('/:id/clone',auth['isAuthenticated'](),controller[_0xa396('0x10')]);router['post'](_0xa396('0x11'),auth[_0xa396('0x6')](),controller[_0xa396('0x12')]);router[_0xa396('0xe')](_0xa396('0xc'),auth['isAuthenticated'](),controller[_0xa396('0x13')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xa396('0x14')]);router[_0xa396('0x15')]('/:id',auth['isAuthenticated'](),controller[_0xa396('0x16')]);router[_0xa396('0x15')](_0xa396('0x11'),auth[_0xa396('0x6')](),controller[_0xa396('0x17')]);router[_0xa396('0x15')]('/:id/resources',auth[_0xa396('0x6')](),controller['removeResources']);module['exports']=router;