7b1547efd98d9e2ed81133aa3c5125551e8acf4c
[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 _0x15ce=['Router','fs-extra','../../components/auth/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index','describe','show','post','/:id','update','destroy','exports','util','path','connect-timeout'];(function(_0x5562a9,_0x5530ca){var _0x56447e=function(_0x2a3814){while(--_0x2a3814){_0x5562a9['push'](_0x5562a9['shift']());}};_0x56447e(++_0x5530ca);}(_0x15ce,0x153));var _0xe15c=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x15ce[_0x1facfa];return _0x9ec701;};'use strict';var multer=require('multer');var util=require(_0xe15c('0x0'));var path=require(_0xe15c('0x1'));var timeout=require(_0xe15c('0x2'));var express=require('express');var router=express[_0xe15c('0x3')]();var fs_extra=require(_0xe15c('0x4'));var auth=require(_0xe15c('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe15c('0x6'));var controller=require(_0xe15c('0x7'));router[_0xe15c('0x8')]('/',auth[_0xe15c('0x9')](),controller[_0xe15c('0xa')]);router[_0xe15c('0x8')]('/describe',auth[_0xe15c('0x9')](),controller[_0xe15c('0xb')]);router[_0xe15c('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xe15c('0xc')]);router[_0xe15c('0xd')]('/',auth[_0xe15c('0x9')](),controller['create']);router['put'](_0xe15c('0xe'),auth['isAuthenticated'](),controller[_0xe15c('0xf')]);router['delete'](_0xe15c('0xe'),auth[_0xe15c('0x9')](),controller[_0xe15c('0x10')]);module[_0xe15c('0x11')]=router;