Built motion from commit (unavailable).|2.5.21
[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 _0x267f=['/describe','/:id','show','post','create','delete','destroy','util','connect-timeout','express','Router','../../components/interaction/service','isAuthenticated','index','get'];(function(_0x9db56e,_0x437024){var _0x5c8025=function(_0x137788){while(--_0x137788){_0x9db56e['push'](_0x9db56e['shift']());}};_0x5c8025(++_0x437024);}(_0x267f,0x133));var _0xf267=function(_0x4f8c5d,_0x12bfc9){_0x4f8c5d=_0x4f8c5d-0x0;var _0x3893b7=_0x267f[_0x4f8c5d];return _0x3893b7;};'use strict';var multer=require('multer');var util=require(_0xf267('0x0'));var path=require('path');var timeout=require(_0xf267('0x1'));var express=require(_0xf267('0x2'));var router=express[_0xf267('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xf267('0x4'));var config=require('../../config/environment');var controller=require('./chatOfflineMessage.controller');router['get']('/',auth[_0xf267('0x5')](),controller[_0xf267('0x6')]);router[_0xf267('0x7')](_0xf267('0x8'),auth[_0xf267('0x5')](),controller['describe']);router[_0xf267('0x7')](_0xf267('0x9'),auth['isAuthenticated'](),controller[_0xf267('0xa')]);router[_0xf267('0xb')]('/',auth[_0xf267('0x5')](),controller[_0xf267('0xc')]);router['put'](_0xf267('0x9'),auth[_0xf267('0x5')](),controller['update']);router[_0xf267('0xd')](_0xf267('0x9'),auth[_0xf267('0x5')](),controller[_0xf267('0xe')]);module['exports']=router;