Built motion from commit 20b39a97.|2.6.29
[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 _0x09b0=['put','/:id','update','delete','removeResources','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./userProfile.controller','get','index','/describe','describe','isAuthenticated','show','/:id/sections','getSections','/:id/resources','getResources','post','create','clone','addSections','addResources'];(function(_0x5a3173,_0x58f0a8){var _0x1491cc=function(_0x3762cf){while(--_0x3762cf){_0x5a3173['push'](_0x5a3173['shift']());}};_0x1491cc(++_0x58f0a8);}(_0x09b0,0xed));var _0x009b=function(_0x10761a,_0x347d40){_0x10761a=_0x10761a-0x0;var _0x1ce52e=_0x09b0[_0x10761a];return _0x1ce52e;};'use strict';var multer=require('multer');var util=require(_0x009b('0x0'));var path=require(_0x009b('0x1'));var timeout=require(_0x009b('0x2'));var express=require(_0x009b('0x3'));var router=express[_0x009b('0x4')]();var fs_extra=require(_0x009b('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x009b('0x6'));var config=require(_0x009b('0x7'));var controller=require(_0x009b('0x8'));router[_0x009b('0x9')]('/',auth['isAuthenticated'](),controller[_0x009b('0xa')]);router[_0x009b('0x9')](_0x009b('0xb'),auth['isAuthenticated'](),controller[_0x009b('0xc')]);router[_0x009b('0x9')]('/:id',auth[_0x009b('0xd')](),controller[_0x009b('0xe')]);router[_0x009b('0x9')](_0x009b('0xf'),auth['isAuthenticated'](),controller[_0x009b('0x10')]);router['get'](_0x009b('0x11'),auth['isAuthenticated'](),controller[_0x009b('0x12')]);router[_0x009b('0x13')]('/',auth[_0x009b('0xd')](),controller[_0x009b('0x14')]);router[_0x009b('0x13')]('/:id/clone',auth[_0x009b('0xd')](),controller[_0x009b('0x15')]);router[_0x009b('0x13')](_0x009b('0xf'),auth['isAuthenticated'](),controller[_0x009b('0x16')]);router[_0x009b('0x13')](_0x009b('0x11'),auth['isAuthenticated'](),controller[_0x009b('0x17')]);router[_0x009b('0x18')](_0x009b('0x19'),auth[_0x009b('0xd')](),controller[_0x009b('0x1a')]);router[_0x009b('0x1b')](_0x009b('0x19'),auth[_0x009b('0xd')](),controller['destroy']);router[_0x009b('0x1b')](_0x009b('0xf'),auth['isAuthenticated'](),controller['removeSections']);router[_0x009b('0x1b')](_0x009b('0x11'),auth['isAuthenticated'](),controller[_0x009b('0x1c')]);module['exports']=router;