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 _0xa02b=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','/:id','show','post','create','put','update','destroy','exports','util','path'];(function(_0x4dcc2d,_0x422839){var _0x1bbd79=function(_0x173341){while(--_0x173341){_0x4dcc2d['push'](_0x4dcc2d['shift']());}};_0x1bbd79(++_0x422839);}(_0xa02b,0xbb));var _0xba02=function(_0x1fbafd,_0x1ba0a5){_0x1fbafd=_0x1fbafd-0x0;var _0x2ccceb=_0xa02b[_0x1fbafd];return _0x2ccceb;};'use strict';var multer=require('multer');var util=require(_0xba02('0x0'));var path=require(_0xba02('0x1'));var timeout=require(_0xba02('0x2'));var express=require(_0xba02('0x3'));var router=express[_0xba02('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xba02('0x5'));var interaction=require(_0xba02('0x6'));var config=require(_0xba02('0x7'));var controller=require('./chatOfflineMessage.controller');router[_0xba02('0x8')]('/',auth['isAuthenticated'](),controller[_0xba02('0x9')]);router[_0xba02('0x8')](_0xba02('0xa'),auth[_0xba02('0xb')](),controller[_0xba02('0xc')]);router[_0xba02('0x8')](_0xba02('0xd'),auth[_0xba02('0xb')](),controller[_0xba02('0xe')]);router[_0xba02('0xf')]('/',auth[_0xba02('0xb')](),controller[_0xba02('0x10')]);router[_0xba02('0x11')]('/:id',auth[_0xba02('0xb')](),controller[_0xba02('0x12')]);router['delete'](_0xba02('0xd'),auth[_0xba02('0xb')](),controller[_0xba02('0x13')]);module[_0xba02('0x14')]=router;