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 _0x2faf=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get','isAuthenticated','index','/:id','show','post','create','update','delete','destroy','exports','multer','util','path','express'];(function(_0x9a3d47,_0x1953a0){var _0xf60b78=function(_0x31575d){while(--_0x31575d){_0x9a3d47['push'](_0x9a3d47['shift']());}};_0xf60b78(++_0x1953a0);}(_0x2faf,0xb0));var _0xf2fa=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x2faf[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0xf2fa('0x0'));var util=require(_0xf2fa('0x1'));var path=require(_0xf2fa('0x2'));var timeout=require('connect-timeout');var express=require(_0xf2fa('0x3'));var router=express[_0xf2fa('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xf2fa('0x5'));var interaction=require(_0xf2fa('0x6'));var config=require(_0xf2fa('0x7'));var controller=require(_0xf2fa('0x8'));router[_0xf2fa('0x9')]('/',auth[_0xf2fa('0xa')](),controller[_0xf2fa('0xb')]);router['get'](_0xf2fa('0xc'),auth[_0xf2fa('0xa')](),controller[_0xf2fa('0xd')]);router[_0xf2fa('0xe')]('/',auth['isAuthenticated'](),controller[_0xf2fa('0xf')]);router['put'](_0xf2fa('0xc'),auth['isAuthenticated'](),controller[_0xf2fa('0x10')]);router[_0xf2fa('0x11')](_0xf2fa('0xc'),auth[_0xf2fa('0xa')](),controller[_0xf2fa('0x12')]);module[_0xf2fa('0x13')]=router;