f606fdb9829b1d6a9b6a8633cc2f64b9c6579c1a
[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 _0x44a4=['describe','post','put','/:id','delete','destroy','exports','multer','util','path','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe'];(function(_0x7275e9,_0x321fa5){var _0x17b99d=function(_0x54af41){while(--_0x54af41){_0x7275e9['push'](_0x7275e9['shift']());}};_0x17b99d(++_0x321fa5);}(_0x44a4,0x1e3));var _0x444a=function(_0xb3388c,_0x64dbda){_0xb3388c=_0xb3388c-0x0;var _0x133e9a=_0x44a4[_0xb3388c];return _0x133e9a;};'use strict';var multer=require(_0x444a('0x0'));var util=require(_0x444a('0x1'));var path=require(_0x444a('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x444a('0x3'));var auth=require(_0x444a('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x444a('0x5'));var controller=require('./chatOfflineMessage.controller');router[_0x444a('0x6')]('/',auth[_0x444a('0x7')](),controller[_0x444a('0x8')]);router[_0x444a('0x6')](_0x444a('0x9'),auth[_0x444a('0x7')](),controller[_0x444a('0xa')]);router[_0x444a('0x6')]('/:id',auth[_0x444a('0x7')](),controller['show']);router[_0x444a('0xb')]('/',auth[_0x444a('0x7')](),controller['create']);router[_0x444a('0xc')](_0x444a('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x444a('0xe')](_0x444a('0xd'),auth[_0x444a('0x7')](),controller[_0x444a('0xf')]);module[_0x444a('0x10')]=router;