0e5a283715b25471c5acb7df03f7dcb6ea44b572
[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 _0x6f81=['isAuthenticated','show','post','create','update','delete','destroy','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','./chatOfflineMessage.controller','index','get','/describe','/:id'];(function(_0x592744,_0x332589){var _0x5e4fa2=function(_0x423495){while(--_0x423495){_0x592744['push'](_0x592744['shift']());}};_0x5e4fa2(++_0x332589);}(_0x6f81,0xa0));var _0x16f8=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0x6f81[_0x465028];return _0xb783d4;};'use strict';var multer=require(_0x16f8('0x0'));var util=require(_0x16f8('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x16f8('0x2'));var router=express[_0x16f8('0x3')]();var auth=require(_0x16f8('0x4'));var interaction=require(_0x16f8('0x5'));var config=require('../../config/environment');var controller=require(_0x16f8('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x16f8('0x7')]);router[_0x16f8('0x8')](_0x16f8('0x9'),auth['isAuthenticated'](),controller['describe']);router[_0x16f8('0x8')](_0x16f8('0xa'),auth[_0x16f8('0xb')](),controller[_0x16f8('0xc')]);router[_0x16f8('0xd')]('/',auth[_0x16f8('0xb')](),controller[_0x16f8('0xe')]);router['put'](_0x16f8('0xa'),auth[_0x16f8('0xb')](),controller[_0x16f8('0xf')]);router[_0x16f8('0x10')](_0x16f8('0xa'),auth[_0x16f8('0xb')](),controller[_0x16f8('0x11')]);module[_0x16f8('0x12')]=router;