a1372ecbb70076f014cf4b762f26e404ddd92b3e
[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 _0xe910=['update','delete','destroy','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','./chatOfflineMessage.controller','isAuthenticated','get','/describe','describe','/:id','show','post','create','put'];(function(_0x26adb2,_0x7bb3f8){var _0x39b09b=function(_0x3fa344){while(--_0x3fa344){_0x26adb2['push'](_0x26adb2['shift']());}};_0x39b09b(++_0x7bb3f8);}(_0xe910,0x1a7));var _0x0e91=function(_0x1e4150,_0x55b02a){_0x1e4150=_0x1e4150-0x0;var _0x1ce3ee=_0xe910[_0x1e4150];return _0x1ce3ee;};'use strict';var multer=require('multer');var util=require(_0x0e91('0x0'));var path=require(_0x0e91('0x1'));var timeout=require('connect-timeout');var express=require(_0x0e91('0x2'));var router=express[_0x0e91('0x3')]();var fs_extra=require(_0x0e91('0x4'));var auth=require(_0x0e91('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x0e91('0x6'));var controller=require(_0x0e91('0x7'));router['get']('/',auth[_0x0e91('0x8')](),controller['index']);router[_0x0e91('0x9')](_0x0e91('0xa'),auth[_0x0e91('0x8')](),controller[_0x0e91('0xb')]);router[_0x0e91('0x9')](_0x0e91('0xc'),auth['isAuthenticated'](),controller[_0x0e91('0xd')]);router[_0x0e91('0xe')]('/',auth['isAuthenticated'](),controller[_0x0e91('0xf')]);router[_0x0e91('0x10')](_0x0e91('0xc'),auth[_0x0e91('0x8')](),controller[_0x0e91('0x11')]);router[_0x0e91('0x12')](_0x0e91('0xc'),auth[_0x0e91('0x8')](),controller[_0x0e91('0x13')]);module['exports']=router;