Built motion from commit 43538d75.|2.5.35
[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 _0x702c=['./chatOfflineMessage.controller','get','index','isAuthenticated','describe','show','create','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x43fdd2,_0xf10fac){var _0x4d8b28=function(_0x2b15ad){while(--_0x2b15ad){_0x43fdd2['push'](_0x43fdd2['shift']());}};_0x4d8b28(++_0xf10fac);}(_0x702c,0x168));var _0xc702=function(_0x1bc059,_0x14ad17){_0x1bc059=_0x1bc059-0x0;var _0x25708e=_0x702c[_0x1bc059];return _0x25708e;};'use strict';var multer=require(_0xc702('0x0'));var util=require(_0xc702('0x1'));var path=require(_0xc702('0x2'));var timeout=require(_0xc702('0x3'));var express=require(_0xc702('0x4'));var router=express[_0xc702('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xc702('0x6'));var interaction=require(_0xc702('0x7'));var config=require('../../config/environment');var controller=require(_0xc702('0x8'));router[_0xc702('0x9')]('/',auth['isAuthenticated'](),controller[_0xc702('0xa')]);router[_0xc702('0x9')]('/describe',auth[_0xc702('0xb')](),controller[_0xc702('0xc')]);router[_0xc702('0x9')]('/:id',auth[_0xc702('0xb')](),controller[_0xc702('0xd')]);router['post']('/',auth[_0xc702('0xb')](),controller[_0xc702('0xe')]);router['put']('/:id',auth[_0xc702('0xb')](),controller['update']);router['delete']('/:id',auth[_0xc702('0xb')](),controller[_0xc702('0xf')]);module['exports']=router;