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 _0x0921=['destroy','multer','util','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','isAuthenticated','index','get','/describe','describe','show','post','put','delete','/:id'];(function(_0x173850,_0xb4984){var _0x2e747e=function(_0x50f481){while(--_0x50f481){_0x173850['push'](_0x173850['shift']());}};_0x2e747e(++_0xb4984);}(_0x0921,0xf8));var _0x1092=function(_0x153099,_0x24cc13){_0x153099=_0x153099-0x0;var _0x4a8c61=_0x0921[_0x153099];return _0x4a8c61;};'use strict';var multer=require(_0x1092('0x0'));var util=require(_0x1092('0x1'));var path=require('path');var timeout=require(_0x1092('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x1092('0x3'));var auth=require(_0x1092('0x4'));var interaction=require(_0x1092('0x5'));var config=require(_0x1092('0x6'));var controller=require(_0x1092('0x7'));router['get']('/',auth[_0x1092('0x8')](),controller[_0x1092('0x9')]);router[_0x1092('0xa')](_0x1092('0xb'),auth[_0x1092('0x8')](),controller[_0x1092('0xc')]);router[_0x1092('0xa')]('/:id',auth[_0x1092('0x8')](),controller[_0x1092('0xd')]);router[_0x1092('0xe')]('/',auth[_0x1092('0x8')](),controller['create']);router[_0x1092('0xf')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x1092('0x10')](_0x1092('0x11'),auth[_0x1092('0x8')](),controller[_0x1092('0x12')]);module['exports']=router;