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