c38d60acbabfbb572a0852d0a8f50148def4d3c3
[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 _0xf181=['path','express','Router','fs-extra','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index','/describe','/:id','show','post','create','put','update','delete','destroy','exports','multer'];(function(_0x5dc5b8,_0x2650ec){var _0x4b2fd8=function(_0x588cff){while(--_0x588cff){_0x5dc5b8['push'](_0x5dc5b8['shift']());}};_0x4b2fd8(++_0x2650ec);}(_0xf181,0x1b7));var _0x1f18=function(_0x3e3fab,_0x47f80e){_0x3e3fab=_0x3e3fab-0x0;var _0xc086ee=_0xf181[_0x3e3fab];return _0xc086ee;};'use strict';var multer=require(_0x1f18('0x0'));var util=require('util');var path=require(_0x1f18('0x1'));var timeout=require('connect-timeout');var express=require(_0x1f18('0x2'));var router=express[_0x1f18('0x3')]();var fs_extra=require(_0x1f18('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1f18('0x5'));var controller=require(_0x1f18('0x6'));router[_0x1f18('0x7')]('/',auth[_0x1f18('0x8')](),controller[_0x1f18('0x9')]);router['get'](_0x1f18('0xa'),auth[_0x1f18('0x8')](),controller['describe']);router[_0x1f18('0x7')](_0x1f18('0xb'),auth[_0x1f18('0x8')](),controller[_0x1f18('0xc')]);router[_0x1f18('0xd')]('/',auth[_0x1f18('0x8')](),controller[_0x1f18('0xe')]);router[_0x1f18('0xf')]('/:id',auth[_0x1f18('0x8')](),controller[_0x1f18('0x10')]);router[_0x1f18('0x11')](_0x1f18('0xb'),auth['isAuthenticated'](),controller[_0x1f18('0x12')]);module[_0x1f18('0x13')]=router;