Built motion from commit da617fac.|2.6.6
[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 _0x0f83=['../../config/environment','./userProfileResource.controller','get','isAuthenticated','index','/describe','/:id','post','create','update','delete','destroy','exports','multer','connect-timeout','express','Router','../../components/interaction/service'];(function(_0x470d01,_0x131881){var _0x2748fd=function(_0x2d986a){while(--_0x2d986a){_0x470d01['push'](_0x470d01['shift']());}};_0x2748fd(++_0x131881);}(_0x0f83,0x1ab));var _0x30f8=function(_0x5ad07c,_0x324dcd){_0x5ad07c=_0x5ad07c-0x0;var _0x204bae=_0x0f83[_0x5ad07c];return _0x204bae;};'use strict';var multer=require(_0x30f8('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x30f8('0x1'));var express=require(_0x30f8('0x2'));var router=express[_0x30f8('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x30f8('0x4'));var config=require(_0x30f8('0x5'));var controller=require(_0x30f8('0x6'));router[_0x30f8('0x7')]('/',auth[_0x30f8('0x8')](),controller[_0x30f8('0x9')]);router[_0x30f8('0x7')](_0x30f8('0xa'),auth[_0x30f8('0x8')](),controller['describe']);router['get'](_0x30f8('0xb'),auth[_0x30f8('0x8')](),controller['show']);router[_0x30f8('0xc')]('/',auth[_0x30f8('0x8')](),controller[_0x30f8('0xd')]);router['put'](_0x30f8('0xb'),auth['isAuthenticated'](),controller[_0x30f8('0xe')]);router[_0x30f8('0xf')](_0x30f8('0xb'),auth['isAuthenticated'](),controller[_0x30f8('0x10')]);module[_0x30f8('0x11')]=router;