Built motion from commit 5ae82ce5.|2.6.7
[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 _0xc665=['path','express','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index','show','create','put','/:id','update','delete','destroy','multer','util'];(function(_0x2ca83c,_0x45190a){var _0xe0648f=function(_0x4f8247){while(--_0x4f8247){_0x2ca83c['push'](_0x2ca83c['shift']());}};_0xe0648f(++_0x45190a);}(_0xc665,0x19e));var _0x5c66=function(_0x4c4cbf,_0x1e6e6){_0x4c4cbf=_0x4c4cbf-0x0;var _0xa65774=_0xc665[_0x4c4cbf];return _0xa65774;};'use strict';var multer=require(_0x5c66('0x0'));var util=require(_0x5c66('0x1'));var path=require(_0x5c66('0x2'));var timeout=require('connect-timeout');var express=require(_0x5c66('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x5c66('0x4'));var controller=require(_0x5c66('0x5'));router[_0x5c66('0x6')]('/',auth[_0x5c66('0x7')](),controller[_0x5c66('0x8')]);router['get']('/describe',auth['isAuthenticated'](),controller['describe']);router['get']('/:id',auth[_0x5c66('0x7')](),controller[_0x5c66('0x9')]);router['post']('/',auth[_0x5c66('0x7')](),controller[_0x5c66('0xa')]);router[_0x5c66('0xb')](_0x5c66('0xc'),auth[_0x5c66('0x7')](),controller[_0x5c66('0xd')]);router[_0x5c66('0xe')](_0x5c66('0xc'),auth[_0x5c66('0x7')](),controller[_0x5c66('0xf')]);module['exports']=router;