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