Built motion from commit 10af8726.|2.6.34
[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 _0xaa17=['create','update','delete','destroy','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','./userProfileSection.controller','isAuthenticated','index','describe','/:id','show','post'];(function(_0x5512da,_0x4d13ec){var _0x1f0d50=function(_0x23ccc6){while(--_0x23ccc6){_0x5512da['push'](_0x5512da['shift']());}};_0x1f0d50(++_0x4d13ec);}(_0xaa17,0x15b));var _0x7aa1=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0xaa17[_0x6c993a];return _0x27f547;};'use strict';var multer=require(_0x7aa1('0x0'));var util=require(_0x7aa1('0x1'));var path=require(_0x7aa1('0x2'));var timeout=require('connect-timeout');var express=require(_0x7aa1('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x7aa1('0x4'));var interaction=require(_0x7aa1('0x5'));var config=require('../../config/environment');var controller=require(_0x7aa1('0x6'));router['get']('/',auth[_0x7aa1('0x7')](),controller[_0x7aa1('0x8')]);router['get']('/describe',auth[_0x7aa1('0x7')](),controller[_0x7aa1('0x9')]);router['get'](_0x7aa1('0xa'),auth['isAuthenticated'](),controller[_0x7aa1('0xb')]);router[_0x7aa1('0xc')]('/',auth['isAuthenticated'](),controller[_0x7aa1('0xd')]);router['put'](_0x7aa1('0xa'),auth[_0x7aa1('0x7')](),controller[_0x7aa1('0xe')]);router[_0x7aa1('0xf')](_0x7aa1('0xa'),auth[_0x7aa1('0x7')](),controller[_0x7aa1('0x10')]);module[_0x7aa1('0x11')]=router;