861b5ba0dbc596f83a126bbe32efc24cc9c7b2ed
[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 _0x6a34=['/describe','/:id','show','post','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index'];(function(_0x1a4276,_0x6b9c22){var _0x4da8d6=function(_0x365ea9){while(--_0x365ea9){_0x1a4276['push'](_0x1a4276['shift']());}};_0x4da8d6(++_0x6b9c22);}(_0x6a34,0x182));var _0x46a3=function(_0x19747b,_0x49b4b7){_0x19747b=_0x19747b-0x0;var _0x445041=_0x6a34[_0x19747b];return _0x445041;};'use strict';var multer=require('multer');var util=require(_0x46a3('0x0'));var path=require(_0x46a3('0x1'));var timeout=require(_0x46a3('0x2'));var express=require(_0x46a3('0x3'));var router=express[_0x46a3('0x4')]();var fs_extra=require(_0x46a3('0x5'));var auth=require(_0x46a3('0x6'));var interaction=require(_0x46a3('0x7'));var config=require(_0x46a3('0x8'));var controller=require(_0x46a3('0x9'));router[_0x46a3('0xa')]('/',auth[_0x46a3('0xb')](),controller[_0x46a3('0xc')]);router[_0x46a3('0xa')](_0x46a3('0xd'),auth[_0x46a3('0xb')](),controller['describe']);router[_0x46a3('0xa')](_0x46a3('0xe'),auth[_0x46a3('0xb')](),controller[_0x46a3('0xf')]);router[_0x46a3('0x10')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x46a3('0xe'),auth[_0x46a3('0xb')](),controller['update']);router['delete'](_0x46a3('0xe'),auth[_0x46a3('0xb')](),controller[_0x46a3('0x11')]);module[_0x46a3('0x12')]=router;