Built motion from commit (unavailable).|2.5.6
[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 _0xb660=['exports','multer','util','path','connect-timeout','Router','../../config/environment','get','/describe','isAuthenticated','/:id','show','post','create','put','update','delete','destroy'];(function(_0xbca1b1,_0x33f0ce){var _0x4e1686=function(_0x58a80c){while(--_0x58a80c){_0xbca1b1['push'](_0xbca1b1['shift']());}};_0x4e1686(++_0x33f0ce);}(_0xb660,0x7f));var _0x0b66=function(_0x394a2d,_0x460cf0){_0x394a2d=_0x394a2d-0x0;var _0x4a5274=_0xb660[_0x394a2d];return _0x4a5274;};'use strict';var multer=require(_0x0b66('0x0'));var util=require(_0x0b66('0x1'));var path=require(_0x0b66('0x2'));var timeout=require(_0x0b66('0x3'));var express=require('express');var router=express[_0x0b66('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x0b66('0x5'));var controller=require('./chatOfflineMessage.controller');router[_0x0b66('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x0b66('0x6')](_0x0b66('0x7'),auth[_0x0b66('0x8')](),controller['describe']);router[_0x0b66('0x6')](_0x0b66('0x9'),auth[_0x0b66('0x8')](),controller[_0x0b66('0xa')]);router[_0x0b66('0xb')]('/',auth[_0x0b66('0x8')](),controller[_0x0b66('0xc')]);router[_0x0b66('0xd')](_0x0b66('0x9'),auth['isAuthenticated'](),controller[_0x0b66('0xe')]);router[_0x0b66('0xf')](_0x0b66('0x9'),auth[_0x0b66('0x8')](),controller[_0x0b66('0x10')]);module[_0x0b66('0x11')]=router;