3852b82828897faa440b0b4e0fc032fbd4279757
[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 _0x257e=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','post','put','delete','destroy','multer','util','path'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x257e,0x166));var _0xe257=function(_0x21cb7f,_0x48cd16){_0x21cb7f=_0x21cb7f-0x0;var _0x5a079a=_0x257e[_0x21cb7f];return _0x5a079a;};'use strict';var multer=require(_0xe257('0x0'));var util=require(_0xe257('0x1'));var path=require(_0xe257('0x2'));var timeout=require(_0xe257('0x3'));var express=require(_0xe257('0x4'));var router=express[_0xe257('0x5')]();var fs_extra=require(_0xe257('0x6'));var auth=require(_0xe257('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xe257('0x8'));var controller=require('./chatOfflineMessage.controller');router[_0xe257('0x9')]('/',auth[_0xe257('0xa')](),controller[_0xe257('0xb')]);router['get'](_0xe257('0xc'),auth['isAuthenticated'](),controller[_0xe257('0xd')]);router['get'](_0xe257('0xe'),auth[_0xe257('0xa')](),controller['show']);router[_0xe257('0xf')]('/',auth[_0xe257('0xa')](),controller['create']);router[_0xe257('0x10')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xe257('0x11')](_0xe257('0xe'),auth[_0xe257('0xa')](),controller[_0xe257('0x12')]);module['exports']=router;