365de7887756f625f77281a670e087856b4a9728
[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 _0x58ff=['/:id','delete','destroy','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../config/environment','./chatOfflineMessage.controller','isAuthenticated','get','describe','show','post','put'];(function(_0x162048,_0x411f1b){var _0x2339bf=function(_0x4101a2){while(--_0x4101a2){_0x162048['push'](_0x162048['shift']());}};_0x2339bf(++_0x411f1b);}(_0x58ff,0x136));var _0xf58f=function(_0x393b39,_0x4730a0){_0x393b39=_0x393b39-0x0;var _0x32c652=_0x58ff[_0x393b39];return _0x32c652;};'use strict';var multer=require(_0xf58f('0x0'));var util=require(_0xf58f('0x1'));var path=require(_0xf58f('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf58f('0x3')]();var fs_extra=require(_0xf58f('0x4'));var auth=require(_0xf58f('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf58f('0x6'));var controller=require(_0xf58f('0x7'));router['get']('/',auth[_0xf58f('0x8')](),controller['index']);router[_0xf58f('0x9')]('/describe',auth[_0xf58f('0x8')](),controller[_0xf58f('0xa')]);router['get']('/:id',auth[_0xf58f('0x8')](),controller[_0xf58f('0xb')]);router[_0xf58f('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xf58f('0xd')](_0xf58f('0xe'),auth[_0xf58f('0x8')](),controller['update']);router[_0xf58f('0xf')](_0xf58f('0xe'),auth[_0xf58f('0x8')](),controller[_0xf58f('0x10')]);module[_0xf58f('0x11')]=router;