Built motion from commit 9d1906d1.|2.5.40
[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 _0xc4ed=['create','update','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./chatOfflineMessage.controller','get','/describe','isAuthenticated','describe','/:id','show','post'];(function(_0x2aa3ed,_0x21bb61){var _0x4e0881=function(_0x581164){while(--_0x581164){_0x2aa3ed['push'](_0x2aa3ed['shift']());}};_0x4e0881(++_0x21bb61);}(_0xc4ed,0x122));var _0xdc4e=function(_0x25ad66,_0x46e4dc){_0x25ad66=_0x25ad66-0x0;var _0x141bc4=_0xc4ed[_0x25ad66];return _0x141bc4;};'use strict';var multer=require(_0xdc4e('0x0'));var util=require(_0xdc4e('0x1'));var path=require('path');var timeout=require(_0xdc4e('0x2'));var express=require(_0xdc4e('0x3'));var router=express[_0xdc4e('0x4')]();var fs_extra=require(_0xdc4e('0x5'));var auth=require(_0xdc4e('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xdc4e('0x7'));var controller=require(_0xdc4e('0x8'));router[_0xdc4e('0x9')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xdc4e('0xa'),auth[_0xdc4e('0xb')](),controller[_0xdc4e('0xc')]);router[_0xdc4e('0x9')](_0xdc4e('0xd'),auth[_0xdc4e('0xb')](),controller[_0xdc4e('0xe')]);router[_0xdc4e('0xf')]('/',auth[_0xdc4e('0xb')](),controller[_0xdc4e('0x10')]);router['put'](_0xdc4e('0xd'),auth['isAuthenticated'](),controller[_0xdc4e('0x11')]);router['delete'](_0xdc4e('0xd'),auth[_0xdc4e('0xb')](),controller['destroy']);module['exports']=router;