04cdd9bd8c3455407a6412d370d060d6b182c08f
[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 _0xf1d1=['post','put','update','destroy','exports','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0x31cb5f,_0x2df766){var _0x586042=function(_0x53c807){while(--_0x53c807){_0x31cb5f['push'](_0x31cb5f['shift']());}};_0x586042(++_0x2df766);}(_0xf1d1,0x1d1));var _0x1f1d=function(_0x49f609,_0x3d2a52){_0x49f609=_0x49f609-0x0;var _0x33a21f=_0xf1d1[_0x49f609];return _0x33a21f;};'use strict';var multer=require('multer');var util=require(_0x1f1d('0x0'));var path=require(_0x1f1d('0x1'));var timeout=require('connect-timeout');var express=require(_0x1f1d('0x2'));var router=express[_0x1f1d('0x3')]();var fs_extra=require(_0x1f1d('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x1f1d('0x5'));var config=require(_0x1f1d('0x6'));var controller=require(_0x1f1d('0x7'));router[_0x1f1d('0x8')]('/',auth[_0x1f1d('0x9')](),controller[_0x1f1d('0xa')]);router[_0x1f1d('0x8')](_0x1f1d('0xb'),auth['isAuthenticated'](),controller[_0x1f1d('0xc')]);router[_0x1f1d('0x8')](_0x1f1d('0xd'),auth[_0x1f1d('0x9')](),controller[_0x1f1d('0xe')]);router[_0x1f1d('0xf')]('/',auth[_0x1f1d('0x9')](),controller['create']);router[_0x1f1d('0x10')]('/:id',auth[_0x1f1d('0x9')](),controller[_0x1f1d('0x11')]);router['delete'](_0x1f1d('0xd'),auth[_0x1f1d('0x9')](),controller[_0x1f1d('0x12')]);module[_0x1f1d('0x13')]=router;