0cfbbda67948c80bf372b23c5a43cc7b4e3608bc
[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 _0xbc37=['isAuthenticated','index','/describe','describe','/:id','show','post','put','delete','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xbc37,0x1ee));var _0x7bc3=function(_0x41dcf7,_0x4d877a){_0x41dcf7=_0x41dcf7-0x0;var _0x780b1f=_0xbc37[_0x41dcf7];return _0x780b1f;};'use strict';var multer=require(_0x7bc3('0x0'));var util=require(_0x7bc3('0x1'));var path=require(_0x7bc3('0x2'));var timeout=require(_0x7bc3('0x3'));var express=require(_0x7bc3('0x4'));var router=express['Router']();var fs_extra=require(_0x7bc3('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x7bc3('0x6'));var config=require(_0x7bc3('0x7'));var controller=require(_0x7bc3('0x8'));router[_0x7bc3('0x9')]('/',auth[_0x7bc3('0xa')](),controller[_0x7bc3('0xb')]);router['get'](_0x7bc3('0xc'),auth['isAuthenticated'](),controller[_0x7bc3('0xd')]);router['get'](_0x7bc3('0xe'),auth[_0x7bc3('0xa')](),controller[_0x7bc3('0xf')]);router[_0x7bc3('0x10')]('/',auth[_0x7bc3('0xa')](),controller['create']);router[_0x7bc3('0x11')](_0x7bc3('0xe'),auth[_0x7bc3('0xa')](),controller['update']);router[_0x7bc3('0x12')](_0x7bc3('0xe'),auth['isAuthenticated'](),controller[_0x7bc3('0x13')]);module[_0x7bc3('0x14')]=router;