1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x646c=['path','express','Router','../../components/auth/service','../../components/interaction/service','./userProfileResource.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','update','delete','destroy','exports','multer'];(function(_0x8363d3,_0x420b9d){var _0x4704ff=function(_0x3742f5){while(--_0x3742f5){_0x8363d3['push'](_0x8363d3['shift']());}};_0x4704ff(++_0x420b9d);}(_0x646c,0x1a1));var _0xc646=function(_0x340380,_0x4bd2a8){_0x340380=_0x340380-0x0;var _0x49ce1c=_0x646c[_0x340380];return _0x49ce1c;};'use strict';var multer=require(_0xc646('0x0'));var util=require('util');var path=require(_0xc646('0x1'));var timeout=require('connect-timeout');var express=require(_0xc646('0x2'));var router=express[_0xc646('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xc646('0x4'));var interaction=require(_0xc646('0x5'));var config=require('../../config/environment');var controller=require(_0xc646('0x6'));router[_0xc646('0x7')]('/',auth[_0xc646('0x8')](),controller[_0xc646('0x9')]);router[_0xc646('0x7')](_0xc646('0xa'),auth[_0xc646('0x8')](),controller[_0xc646('0xb')]);router[_0xc646('0x7')](_0xc646('0xc'),auth[_0xc646('0x8')](),controller[_0xc646('0xd')]);router[_0xc646('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['put']('/:id',auth[_0xc646('0x8')](),controller[_0xc646('0xf')]);router[_0xc646('0x10')](_0xc646('0xc'),auth[_0xc646('0x8')](),controller[_0xc646('0x11')]);module[_0xc646('0x12')]=router;