15d44e97eb62ae516c8725712ca50eabcbc769ca
[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 _0x97a0=['../../config/environment','get','isAuthenticated','/describe','describe','show','post','put','/:id','update','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x682667,_0x3e1b08){var _0x174148=function(_0xb5d738){while(--_0xb5d738){_0x682667['push'](_0x682667['shift']());}};_0x174148(++_0x3e1b08);}(_0x97a0,0x84));var _0x097a=function(_0x4da434,_0x1cc9fe){_0x4da434=_0x4da434-0x0;var _0x53e4b2=_0x97a0[_0x4da434];return _0x53e4b2;};'use strict';var multer=require(_0x097a('0x0'));var util=require('util');var path=require(_0x097a('0x1'));var timeout=require(_0x097a('0x2'));var express=require(_0x097a('0x3'));var router=express[_0x097a('0x4')]();var fs_extra=require(_0x097a('0x5'));var auth=require(_0x097a('0x6'));var interaction=require(_0x097a('0x7'));var config=require(_0x097a('0x8'));var controller=require('./chatOfflineMessage.controller');router[_0x097a('0x9')]('/',auth[_0x097a('0xa')](),controller['index']);router[_0x097a('0x9')](_0x097a('0xb'),auth[_0x097a('0xa')](),controller[_0x097a('0xc')]);router[_0x097a('0x9')]('/:id',auth[_0x097a('0xa')](),controller[_0x097a('0xd')]);router[_0x097a('0xe')]('/',auth[_0x097a('0xa')](),controller['create']);router[_0x097a('0xf')](_0x097a('0x10'),auth['isAuthenticated'](),controller[_0x097a('0x11')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x097a('0x12')]);module[_0x097a('0x13')]=router;