Built motion from commit (unavailable).|2.5.30
[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 _0x7458=['get','isAuthenticated','/describe','describe','/:id','show','create','put','delete','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x5d0065,_0x4c89d9){var _0x184c45=function(_0x37cb30){while(--_0x37cb30){_0x5d0065['push'](_0x5d0065['shift']());}};_0x184c45(++_0x4c89d9);}(_0x7458,0x7c));var _0x8745=function(_0x2db46c,_0x20880f){_0x2db46c=_0x2db46c-0x0;var _0x1851e4=_0x7458[_0x2db46c];return _0x1851e4;};'use strict';var multer=require('multer');var util=require(_0x8745('0x0'));var path=require(_0x8745('0x1'));var timeout=require(_0x8745('0x2'));var express=require(_0x8745('0x3'));var router=express[_0x8745('0x4')]();var fs_extra=require(_0x8745('0x5'));var auth=require(_0x8745('0x6'));var interaction=require(_0x8745('0x7'));var config=require(_0x8745('0x8'));var controller=require('./chatOfflineMessage.controller');router[_0x8745('0x9')]('/',auth[_0x8745('0xa')](),controller['index']);router[_0x8745('0x9')](_0x8745('0xb'),auth[_0x8745('0xa')](),controller[_0x8745('0xc')]);router[_0x8745('0x9')](_0x8745('0xd'),auth[_0x8745('0xa')](),controller[_0x8745('0xe')]);router['post']('/',auth[_0x8745('0xa')](),controller[_0x8745('0xf')]);router[_0x8745('0x10')](_0x8745('0xd'),auth[_0x8745('0xa')](),controller['update']);router[_0x8745('0x11')](_0x8745('0xd'),auth['isAuthenticated'](),controller[_0x8745('0x12')]);module['exports']=router;