0a15c9259f97f1949c15b119ffeec072a8a8fc34
[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 _0x2c7f=['multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','/describe','/:id','show','create','put','destroy','exports'];(function(_0x5da70b,_0x1ea4fc){var _0x3c4efc=function(_0x6718cc){while(--_0x6718cc){_0x5da70b['push'](_0x5da70b['shift']());}};_0x3c4efc(++_0x1ea4fc);}(_0x2c7f,0xd8));var _0xf2c7=function(_0x51ced5,_0x48c6ef){_0x51ced5=_0x51ced5-0x0;var _0x5bfeb4=_0x2c7f[_0x51ced5];return _0x5bfeb4;};'use strict';var multer=require(_0xf2c7('0x0'));var util=require(_0xf2c7('0x1'));var path=require(_0xf2c7('0x2'));var timeout=require(_0xf2c7('0x3'));var express=require(_0xf2c7('0x4'));var router=express['Router']();var fs_extra=require(_0xf2c7('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf2c7('0x6'));var config=require(_0xf2c7('0x7'));var controller=require(_0xf2c7('0x8'));router[_0xf2c7('0x9')]('/',auth[_0xf2c7('0xa')](),controller['index']);router[_0xf2c7('0x9')](_0xf2c7('0xb'),auth[_0xf2c7('0xa')](),controller['describe']);router[_0xf2c7('0x9')](_0xf2c7('0xc'),auth[_0xf2c7('0xa')](),controller[_0xf2c7('0xd')]);router['post']('/',auth[_0xf2c7('0xa')](),controller[_0xf2c7('0xe')]);router[_0xf2c7('0xf')](_0xf2c7('0xc'),auth[_0xf2c7('0xa')](),controller['update']);router['delete']('/:id',auth[_0xf2c7('0xa')](),controller[_0xf2c7('0x10')]);module[_0xf2c7('0x11')]=router;