Built motion from commit 9d0783e6.|2.6.13
[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 _0x087a=['describe','/:id','show','create','put','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index','/describe'];(function(_0x1cc364,_0x3f62b5){var _0x11bd5e=function(_0x35a21f){while(--_0x35a21f){_0x1cc364['push'](_0x1cc364['shift']());}};_0x11bd5e(++_0x3f62b5);}(_0x087a,0xd0));var _0xa087=function(_0x4e6e63,_0x46d1e6){_0x4e6e63=_0x4e6e63-0x0;var _0x52f08e=_0x087a[_0x4e6e63];return _0x52f08e;};'use strict';var multer=require(_0xa087('0x0'));var util=require('util');var path=require(_0xa087('0x1'));var timeout=require(_0xa087('0x2'));var express=require(_0xa087('0x3'));var router=express[_0xa087('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xa087('0x5'));var config=require(_0xa087('0x6'));var controller=require(_0xa087('0x7'));router[_0xa087('0x8')]('/',auth[_0xa087('0x9')](),controller[_0xa087('0xa')]);router[_0xa087('0x8')](_0xa087('0xb'),auth[_0xa087('0x9')](),controller[_0xa087('0xc')]);router[_0xa087('0x8')](_0xa087('0xd'),auth[_0xa087('0x9')](),controller[_0xa087('0xe')]);router['post']('/',auth[_0xa087('0x9')](),controller[_0xa087('0xf')]);router[_0xa087('0x10')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xa087('0x11')](_0xa087('0xd'),auth[_0xa087('0x9')](),controller[_0xa087('0x12')]);module[_0xa087('0x13')]=router;