370e5706bea713d40d55756f4e58c53cda403ec4
[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 _0x1d83=['describe','post','create','/:id','update','delete','destroy','exports','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','index','get','/describe','isAuthenticated'];(function(_0x7b0bdf,_0x2c5ead){var _0x46c622=function(_0x52f1f7){while(--_0x52f1f7){_0x7b0bdf['push'](_0x7b0bdf['shift']());}};_0x46c622(++_0x2c5ead);}(_0x1d83,0x184));var _0x31d8=function(_0x173113,_0x316a7c){_0x173113=_0x173113-0x0;var _0x3bea89=_0x1d83[_0x173113];return _0x3bea89;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x31d8('0x0'));var timeout=require(_0x31d8('0x1'));var express=require(_0x31d8('0x2'));var router=express[_0x31d8('0x3')]();var fs_extra=require(_0x31d8('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x31d8('0x5'));var config=require(_0x31d8('0x6'));var controller=require(_0x31d8('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x31d8('0x8')]);router[_0x31d8('0x9')](_0x31d8('0xa'),auth[_0x31d8('0xb')](),controller[_0x31d8('0xc')]);router[_0x31d8('0x9')]('/:id',auth[_0x31d8('0xb')](),controller['show']);router[_0x31d8('0xd')]('/',auth[_0x31d8('0xb')](),controller[_0x31d8('0xe')]);router['put'](_0x31d8('0xf'),auth[_0x31d8('0xb')](),controller[_0x31d8('0x10')]);router[_0x31d8('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x31d8('0x12')]);module[_0x31d8('0x13')]=router;