Built motion from commit da617fac.|2.6.6
[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 _0x3d39=['describe','/:id','post','create','update','destroy','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index'];(function(_0x326c48,_0x31eee6){var _0xf71bc5=function(_0x391b95){while(--_0x391b95){_0x326c48['push'](_0x326c48['shift']());}};_0xf71bc5(++_0x31eee6);}(_0x3d39,0x1d6));var _0x93d3=function(_0x288339,_0x1b55cb){_0x288339=_0x288339-0x0;var _0x31d315=_0x3d39[_0x288339];return _0x31d315;};'use strict';var multer=require('multer');var util=require(_0x93d3('0x0'));var path=require('path');var timeout=require(_0x93d3('0x1'));var express=require(_0x93d3('0x2'));var router=express[_0x93d3('0x3')]();var fs_extra=require(_0x93d3('0x4'));var auth=require(_0x93d3('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x93d3('0x6'));var controller=require('./chatOfflineMessage.controller');router[_0x93d3('0x7')]('/',auth[_0x93d3('0x8')](),controller[_0x93d3('0x9')]);router[_0x93d3('0x7')]('/describe',auth[_0x93d3('0x8')](),controller[_0x93d3('0xa')]);router['get'](_0x93d3('0xb'),auth[_0x93d3('0x8')](),controller['show']);router[_0x93d3('0xc')]('/',auth[_0x93d3('0x8')](),controller[_0x93d3('0xd')]);router['put'](_0x93d3('0xb'),auth['isAuthenticated'](),controller[_0x93d3('0xe')]);router['delete'](_0x93d3('0xb'),auth[_0x93d3('0x8')](),controller[_0x93d3('0xf')]);module['exports']=router;