55088693fcf3078e18b0d70d5ec9ff0bfb13109d
[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 _0xb57f=['index','/:id','post','create','put','update','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated'];(function(_0x3eab8b,_0x528517){var _0x1a9727=function(_0x53ce56){while(--_0x53ce56){_0x3eab8b['push'](_0x3eab8b['shift']());}};_0x1a9727(++_0x528517);}(_0xb57f,0xf7));var _0xfb57=function(_0x530f7f,_0x2462bb){_0x530f7f=_0x530f7f-0x0;var _0x3b6c42=_0xb57f[_0x530f7f];return _0x3b6c42;};'use strict';var multer=require(_0xfb57('0x0'));var util=require(_0xfb57('0x1'));var path=require(_0xfb57('0x2'));var timeout=require(_0xfb57('0x3'));var express=require(_0xfb57('0x4'));var router=express[_0xfb57('0x5')]();var fs_extra=require(_0xfb57('0x6'));var auth=require(_0xfb57('0x7'));var interaction=require(_0xfb57('0x8'));var config=require(_0xfb57('0x9'));var controller=require(_0xfb57('0xa'));router[_0xfb57('0xb')]('/',auth[_0xfb57('0xc')](),controller[_0xfb57('0xd')]);router['get']('/describe',auth[_0xfb57('0xc')](),controller['describe']);router[_0xfb57('0xb')](_0xfb57('0xe'),auth[_0xfb57('0xc')](),controller['show']);router[_0xfb57('0xf')]('/',auth[_0xfb57('0xc')](),controller[_0xfb57('0x10')]);router[_0xfb57('0x11')](_0xfb57('0xe'),auth[_0xfb57('0xc')](),controller[_0xfb57('0x12')]);router['delete'](_0xfb57('0xe'),auth['isAuthenticated'](),controller[_0xfb57('0x13')]);module['exports']=router;