Built motion from commit b5413ace.|2.6.9
[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 _0xb576=['create','put','/:id','delete','destroy','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./chatOfflineMessage.controller','isAuthenticated','/describe','describe','get','post'];(function(_0x210cf1,_0xa9c196){var _0x5d1739=function(_0x22b8f6){while(--_0x22b8f6){_0x210cf1['push'](_0x210cf1['shift']());}};_0x5d1739(++_0xa9c196);}(_0xb576,0x17b));var _0x6b57=function(_0x2bf39e,_0x7ef85){_0x2bf39e=_0x2bf39e-0x0;var _0x10e89b=_0xb576[_0x2bf39e];return _0x10e89b;};'use strict';var multer=require('multer');var util=require(_0x6b57('0x0'));var path=require('path');var timeout=require(_0x6b57('0x1'));var express=require('express');var router=express[_0x6b57('0x2')]();var fs_extra=require(_0x6b57('0x3'));var auth=require(_0x6b57('0x4'));var interaction=require(_0x6b57('0x5'));var config=require('../../config/environment');var controller=require(_0x6b57('0x6'));router['get']('/',auth[_0x6b57('0x7')](),controller['index']);router['get'](_0x6b57('0x8'),auth[_0x6b57('0x7')](),controller[_0x6b57('0x9')]);router[_0x6b57('0xa')]('/:id',auth[_0x6b57('0x7')](),controller['show']);router[_0x6b57('0xb')]('/',auth[_0x6b57('0x7')](),controller[_0x6b57('0xc')]);router[_0x6b57('0xd')](_0x6b57('0xe'),auth[_0x6b57('0x7')](),controller['update']);router[_0x6b57('0xf')](_0x6b57('0xe'),auth[_0x6b57('0x7')](),controller[_0x6b57('0x10')]);module['exports']=router;