dd421c3b40d6e25a36bf86d0c24347dac7e4dc40
[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 _0xf358=['/:id','show','post','create','update','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','isAuthenticated','index','get','/describe','describe'];(function(_0x23e124,_0x13b150){var _0xd91623=function(_0x59f909){while(--_0x59f909){_0x23e124['push'](_0x23e124['shift']());}};_0xd91623(++_0x13b150);}(_0xf358,0x1bf));var _0x8f35=function(_0xb77c,_0x3f1fe6){_0xb77c=_0xb77c-0x0;var _0x3c155a=_0xf358[_0xb77c];return _0x3c155a;};'use strict';var multer=require(_0x8f35('0x0'));var util=require(_0x8f35('0x1'));var path=require('path');var timeout=require(_0x8f35('0x2'));var express=require(_0x8f35('0x3'));var router=express[_0x8f35('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x8f35('0x5'));var config=require(_0x8f35('0x6'));var controller=require(_0x8f35('0x7'));router['get']('/',auth[_0x8f35('0x8')](),controller[_0x8f35('0x9')]);router[_0x8f35('0xa')](_0x8f35('0xb'),auth['isAuthenticated'](),controller[_0x8f35('0xc')]);router[_0x8f35('0xa')](_0x8f35('0xd'),auth[_0x8f35('0x8')](),controller[_0x8f35('0xe')]);router[_0x8f35('0xf')]('/',auth[_0x8f35('0x8')](),controller[_0x8f35('0x10')]);router['put']('/:id',auth[_0x8f35('0x8')](),controller[_0x8f35('0x11')]);router['delete'](_0x8f35('0xd'),auth[_0x8f35('0x8')](),controller[_0x8f35('0x12')]);module[_0x8f35('0x13')]=router;