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 _0x127a=['post','create','put','update','delete','multer','util','Router','../../config/environment','./chatProactiveAction.controller','get','/:id','isAuthenticated','show'];(function(_0xe501ff,_0x955b7e){var _0x17135d=function(_0x8e3458){while(--_0x8e3458){_0xe501ff['push'](_0xe501ff['shift']());}};_0x17135d(++_0x955b7e);}(_0x127a,0xe5));var _0xa127=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x127a[_0x2c91e9];return _0x13f0ff;};'use strict';var multer=require(_0xa127('0x0'));var util=require(_0xa127('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa127('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa127('0x3'));var controller=require(_0xa127('0x4'));router[_0xa127('0x5')](_0xa127('0x6'),auth[_0xa127('0x7')](),controller[_0xa127('0x8')]);router[_0xa127('0x9')]('/',auth[_0xa127('0x7')](),controller[_0xa127('0xa')]);router[_0xa127('0xb')](_0xa127('0x6'),auth['isAuthenticated'](),controller[_0xa127('0xc')]);router[_0xa127('0xd')](_0xa127('0x6'),auth[_0xa127('0x7')](),controller['destroy']);module['exports']=router;