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