Built motion from commit 449495f6.|2.6.27
[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 _0x455b=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','create','put','update','delete','destroy','exports','util','path','connect-timeout'];(function(_0x2d7f0e,_0x3e6fbd){var _0x110b07=function(_0x557b00){while(--_0x557b00){_0x2d7f0e['push'](_0x2d7f0e['shift']());}};_0x110b07(++_0x3e6fbd);}(_0x455b,0xd9));var _0xb455=function(_0x10aca9,_0x3be855){_0x10aca9=_0x10aca9-0x0;var _0x2dfec2=_0x455b[_0x10aca9];return _0x2dfec2;};'use strict';var multer=require('multer');var util=require(_0xb455('0x0'));var path=require(_0xb455('0x1'));var timeout=require(_0xb455('0x2'));var express=require(_0xb455('0x3'));var router=express[_0xb455('0x4')]();var fs_extra=require(_0xb455('0x5'));var auth=require(_0xb455('0x6'));var interaction=require(_0xb455('0x7'));var config=require(_0xb455('0x8'));var controller=require('./chatOfflineMessage.controller');router[_0xb455('0x9')]('/',auth[_0xb455('0xa')](),controller[_0xb455('0xb')]);router[_0xb455('0x9')](_0xb455('0xc'),auth[_0xb455('0xa')](),controller[_0xb455('0xd')]);router['get'](_0xb455('0xe'),auth[_0xb455('0xa')](),controller[_0xb455('0xf')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb455('0x10')]);router[_0xb455('0x11')](_0xb455('0xe'),auth[_0xb455('0xa')](),controller[_0xb455('0x12')]);router[_0xb455('0x13')](_0xb455('0xe'),auth['isAuthenticated'](),controller[_0xb455('0x14')]);module[_0xb455('0x15')]=router;