12de1c842ef17bcf75a6a958ab99996ec8b7b4c2
[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 _0x24b4=['path','connect-timeout','../../components/auth/service','../../components/interaction/service','./chatOfflineMessage.controller','get','isAuthenticated','describe','/:id','show','create','update','delete','exports','util'];(function(_0x5d82c0,_0x54bb2f){var _0x340b63=function(_0x4cad44){while(--_0x4cad44){_0x5d82c0['push'](_0x5d82c0['shift']());}};_0x340b63(++_0x54bb2f);}(_0x24b4,0xd1));var _0x424b=function(_0xea9702,_0x3d1c9b){_0xea9702=_0xea9702-0x0;var _0xdc7ec9=_0x24b4[_0xea9702];return _0xdc7ec9;};'use strict';var multer=require('multer');var util=require(_0x424b('0x0'));var path=require(_0x424b('0x1'));var timeout=require(_0x424b('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0x424b('0x3'));var interaction=require(_0x424b('0x4'));var config=require('../../config/environment');var controller=require(_0x424b('0x5'));router[_0x424b('0x6')]('/',auth[_0x424b('0x7')](),controller['index']);router[_0x424b('0x6')]('/describe',auth['isAuthenticated'](),controller[_0x424b('0x8')]);router['get'](_0x424b('0x9'),auth[_0x424b('0x7')](),controller[_0x424b('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x424b('0xb')]);router['put'](_0x424b('0x9'),auth['isAuthenticated'](),controller[_0x424b('0xc')]);router[_0x424b('0xd')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x424b('0xe')]=router;