Built motion from commit eddce310.|2.6.12
[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 _0x9250=['../../components/interaction/service','../../config/environment','isAuthenticated','get','/describe','describe','/:id','show','post','put','update','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x580977,_0x4d55b1){var _0x54a30c=function(_0x54d59c){while(--_0x54d59c){_0x580977['push'](_0x580977['shift']());}};_0x54a30c(++_0x4d55b1);}(_0x9250,0x13a));var _0x0925=function(_0x115bae,_0x1c82d2){_0x115bae=_0x115bae-0x0;var _0x1fd22f=_0x9250[_0x115bae];return _0x1fd22f;};'use strict';var multer=require(_0x0925('0x0'));var util=require('util');var path=require(_0x0925('0x1'));var timeout=require(_0x0925('0x2'));var express=require('express');var router=express[_0x0925('0x3')]();var fs_extra=require(_0x0925('0x4'));var auth=require(_0x0925('0x5'));var interaction=require(_0x0925('0x6'));var config=require(_0x0925('0x7'));var controller=require('./userProfileSection.controller');router['get']('/',auth[_0x0925('0x8')](),controller['index']);router[_0x0925('0x9')](_0x0925('0xa'),auth[_0x0925('0x8')](),controller[_0x0925('0xb')]);router[_0x0925('0x9')](_0x0925('0xc'),auth[_0x0925('0x8')](),controller[_0x0925('0xd')]);router[_0x0925('0xe')]('/',auth[_0x0925('0x8')](),controller['create']);router[_0x0925('0xf')](_0x0925('0xc'),auth[_0x0925('0x8')](),controller[_0x0925('0x10')]);router[_0x0925('0x11')](_0x0925('0xc'),auth[_0x0925('0x8')](),controller[_0x0925('0x12')]);module[_0x0925('0x13')]=router;