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 _0xfcc1=['fs-extra','../../components/interaction/service','./chatOfflineMessage.controller','get','isAuthenticated','index','describe','/:id','show','create','put','update','destroy','multer','util','connect-timeout','Router'];(function(_0x2292d9,_0x1d2698){var _0x2f5b29=function(_0x51f940){while(--_0x51f940){_0x2292d9['push'](_0x2292d9['shift']());}};_0x2f5b29(++_0x1d2698);}(_0xfcc1,0x11d));var _0x1fcc=function(_0x24655a,_0x7fa437){_0x24655a=_0x24655a-0x0;var _0x5f4ad4=_0xfcc1[_0x24655a];return _0x5f4ad4;};'use strict';var multer=require(_0x1fcc('0x0'));var util=require(_0x1fcc('0x1'));var path=require('path');var timeout=require(_0x1fcc('0x2'));var express=require('express');var router=express[_0x1fcc('0x3')]();var fs_extra=require(_0x1fcc('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x1fcc('0x5'));var config=require('../../config/environment');var controller=require(_0x1fcc('0x6'));router[_0x1fcc('0x7')]('/',auth[_0x1fcc('0x8')](),controller[_0x1fcc('0x9')]);router[_0x1fcc('0x7')]('/describe',auth[_0x1fcc('0x8')](),controller[_0x1fcc('0xa')]);router[_0x1fcc('0x7')](_0x1fcc('0xb'),auth[_0x1fcc('0x8')](),controller[_0x1fcc('0xc')]);router['post']('/',auth[_0x1fcc('0x8')](),controller[_0x1fcc('0xd')]);router[_0x1fcc('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x1fcc('0xf')]);router['delete'](_0x1fcc('0xb'),auth[_0x1fcc('0x8')](),controller[_0x1fcc('0x10')]);module['exports']=router;