Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / userProfileSection / 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 _0x721d=['isAuthenticated','/:id','show','post','create','update','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./userProfileSection.controller','get'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x721d,0x197));var _0xd721=function(_0x3a05cc,_0x2ea1f1){_0x3a05cc=_0x3a05cc-0x0;var _0x3d63a1=_0x721d[_0x3a05cc];return _0x3d63a1;};'use strict';var multer=require(_0xd721('0x0'));var util=require(_0xd721('0x1'));var path=require(_0xd721('0x2'));var timeout=require(_0xd721('0x3'));var express=require(_0xd721('0x4'));var router=express[_0xd721('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xd721('0x6'));var interaction=require(_0xd721('0x7'));var config=require(_0xd721('0x8'));var controller=require(_0xd721('0x9'));router[_0xd721('0xa')]('/',auth[_0xd721('0xb')](),controller['index']);router[_0xd721('0xa')]('/describe',auth[_0xd721('0xb')](),controller['describe']);router[_0xd721('0xa')](_0xd721('0xc'),auth['isAuthenticated'](),controller[_0xd721('0xd')]);router[_0xd721('0xe')]('/',auth['isAuthenticated'](),controller[_0xd721('0xf')]);router['put']('/:id',auth[_0xd721('0xb')](),controller[_0xd721('0x10')]);router[_0xd721('0x11')](_0xd721('0xc'),auth['isAuthenticated'](),controller[_0xd721('0x12')]);module['exports']=router;