a4590a2eb3f9dc05be6ce879228773bef1a79bfb
[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 _0xbc21=['exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','post','create','put','delete','destroy'];(function(_0x403970,_0xec70b5){var _0x4c07a6=function(_0x2c6a67){while(--_0x2c6a67){_0x403970['push'](_0x403970['shift']());}};_0x4c07a6(++_0xec70b5);}(_0xbc21,0x151));var _0x1bc2=function(_0xe31c0a,_0x1d361e){_0xe31c0a=_0xe31c0a-0x0;var _0x29955a=_0xbc21[_0xe31c0a];return _0x29955a;};'use strict';var multer=require(_0x1bc2('0x0'));var util=require(_0x1bc2('0x1'));var path=require(_0x1bc2('0x2'));var timeout=require('connect-timeout');var express=require(_0x1bc2('0x3'));var router=express['Router']();var fs_extra=require(_0x1bc2('0x4'));var auth=require(_0x1bc2('0x5'));var interaction=require(_0x1bc2('0x6'));var config=require(_0x1bc2('0x7'));var controller=require(_0x1bc2('0x8'));router[_0x1bc2('0x9')]('/',auth[_0x1bc2('0xa')](),controller[_0x1bc2('0xb')]);router['get'](_0x1bc2('0xc'),auth['isAuthenticated'](),controller[_0x1bc2('0xd')]);router[_0x1bc2('0x9')](_0x1bc2('0xe'),auth['isAuthenticated'](),controller['show']);router[_0x1bc2('0xf')]('/',auth['isAuthenticated'](),controller[_0x1bc2('0x10')]);router[_0x1bc2('0x11')](_0x1bc2('0xe'),auth[_0x1bc2('0xa')](),controller['update']);router[_0x1bc2('0x12')](_0x1bc2('0xe'),auth[_0x1bc2('0xa')](),controller[_0x1bc2('0x13')]);module[_0x1bc2('0x14')]=router;