7253d42a050532b057c8717171f93b3561f29c3c
[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 _0xfda0=['show','post','put','update','delete','destroy','multer','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','isAuthenticated','index','get','/describe','describe','/:id'];(function(_0x42adb9,_0x4d87c8){var _0x516fe4=function(_0x52ae85){while(--_0x52ae85){_0x42adb9['push'](_0x42adb9['shift']());}};_0x516fe4(++_0x4d87c8);}(_0xfda0,0x1bb));var _0x0fda=function(_0x57652f,_0x4d5e28){_0x57652f=_0x57652f-0x0;var _0x1caf5b=_0xfda0[_0x57652f];return _0x1caf5b;};'use strict';var multer=require(_0x0fda('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x0fda('0x1'));var express=require(_0x0fda('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x0fda('0x3'));var interaction=require(_0x0fda('0x4'));var config=require(_0x0fda('0x5'));var controller=require(_0x0fda('0x6'));router['get']('/',auth[_0x0fda('0x7')](),controller[_0x0fda('0x8')]);router[_0x0fda('0x9')](_0x0fda('0xa'),auth[_0x0fda('0x7')](),controller[_0x0fda('0xb')]);router[_0x0fda('0x9')](_0x0fda('0xc'),auth[_0x0fda('0x7')](),controller[_0x0fda('0xd')]);router[_0x0fda('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0x0fda('0xf')](_0x0fda('0xc'),auth[_0x0fda('0x7')](),controller[_0x0fda('0x10')]);router[_0x0fda('0x11')](_0x0fda('0xc'),auth['isAuthenticated'](),controller[_0x0fda('0x12')]);module['exports']=router;