Built motion from commit 9efc8423.|2.6.31
[motion2.git] / server / api / userProfileResource / 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 _0x762a=['get','isAuthenticated','index','/describe','describe','/:id','show','create','put','delete','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x34823e,_0x15fae7){var _0x154587=function(_0x399166){while(--_0x399166){_0x34823e['push'](_0x34823e['shift']());}};_0x154587(++_0x15fae7);}(_0x762a,0x103));var _0xa762=function(_0x102f8a,_0xf93ccc){_0x102f8a=_0x102f8a-0x0;var _0x1c4db4=_0x762a[_0x102f8a];return _0x1c4db4;};'use strict';var multer=require(_0xa762('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa762('0x1'));var express=require(_0xa762('0x2'));var router=express[_0xa762('0x3')]();var fs_extra=require(_0xa762('0x4'));var auth=require(_0xa762('0x5'));var interaction=require(_0xa762('0x6'));var config=require('../../config/environment');var controller=require('./userProfileResource.controller');router[_0xa762('0x7')]('/',auth[_0xa762('0x8')](),controller[_0xa762('0x9')]);router[_0xa762('0x7')](_0xa762('0xa'),auth[_0xa762('0x8')](),controller[_0xa762('0xb')]);router[_0xa762('0x7')](_0xa762('0xc'),auth['isAuthenticated'](),controller[_0xa762('0xd')]);router['post']('/',auth[_0xa762('0x8')](),controller[_0xa762('0xe')]);router[_0xa762('0xf')](_0xa762('0xc'),auth[_0xa762('0x8')](),controller['update']);router[_0xa762('0x10')]('/:id',auth[_0xa762('0x8')](),controller[_0xa762('0x11')]);module[_0xa762('0x12')]=router;