6707e964dae024fdde26159cf55c383dcb86580d
[motion2.git] / server / api / chatOfflineMessage / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x7579=['../../components/auth/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','/:id','post','create','put','destroy','exports','multer','express','Router','fs-extra'];(function(_0x3d7181,_0x2027f1){var _0x4fdf6c=function(_0x1a5a35){while(--_0x1a5a35){_0x3d7181['push'](_0x3d7181['shift']());}};_0x4fdf6c(++_0x2027f1);}(_0x7579,0x10a));var _0x9757=function(_0x276ec7,_0x3bc9f9){_0x276ec7=_0x276ec7-0x0;var _0xffa130=_0x7579[_0x276ec7];return _0xffa130;};'use strict';var multer=require(_0x9757('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9757('0x1'));var router=express[_0x9757('0x2')]();var fs_extra=require(_0x9757('0x3'));var auth=require(_0x9757('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x9757('0x5'));var controller=require(_0x9757('0x6'));router[_0x9757('0x7')]('/',auth[_0x9757('0x8')](),controller['index']);router['get']('/describe',auth[_0x9757('0x8')](),controller['describe']);router['get'](_0x9757('0x9'),auth[_0x9757('0x8')](),controller['show']);router[_0x9757('0xa')]('/',auth[_0x9757('0x8')](),controller[_0x9757('0xb')]);router[_0x9757('0xc')](_0x9757('0x9'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x9757('0x9'),auth[_0x9757('0x8')](),controller[_0x9757('0xd')]);module[_0x9757('0xe')]=router;