Built motion from commit (unavailable).|2.5.2
[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 _0xc92d=['index','get','/:id','show','post','create','delete','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','isAuthenticated'];(function(_0x5a776b,_0x46f785){var _0xbbef59=function(_0x38313e){while(--_0x38313e){_0x5a776b['push'](_0x5a776b['shift']());}};_0xbbef59(++_0x46f785);}(_0xc92d,0x1b8));var _0xdc92=function(_0x54bc7a,_0x5079d8){_0x54bc7a=_0x54bc7a-0x0;var _0x34bb82=_0xc92d[_0x54bc7a];return _0x34bb82;};'use strict';var multer=require(_0xdc92('0x0'));var util=require(_0xdc92('0x1'));var path=require(_0xdc92('0x2'));var timeout=require(_0xdc92('0x3'));var express=require('express');var router=express[_0xdc92('0x4')]();var auth=require(_0xdc92('0x5'));var interaction=require(_0xdc92('0x6'));var config=require(_0xdc92('0x7'));var controller=require(_0xdc92('0x8'));router['get']('/',auth[_0xdc92('0x9')](),controller[_0xdc92('0xa')]);router['get']('/describe',auth[_0xdc92('0x9')](),controller['describe']);router[_0xdc92('0xb')](_0xdc92('0xc'),auth[_0xdc92('0x9')](),controller[_0xdc92('0xd')]);router[_0xdc92('0xe')]('/',auth['isAuthenticated'](),controller[_0xdc92('0xf')]);router['put']('/:id',auth[_0xdc92('0x9')](),controller['update']);router[_0xdc92('0x10')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xdc92('0x11')]=router;