c04a87f2290a3e473c0236a913c927729a1db6f0
[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 _0x6c2d=['util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','index','get','/:id','isAuthenticated','show','post','create','put','delete','destroy','multer'];(function(_0x5cc89b,_0x4b942a){var _0x5dc5a0=function(_0x40b02c){while(--_0x40b02c){_0x5cc89b['push'](_0x5cc89b['shift']());}};_0x5dc5a0(++_0x4b942a);}(_0x6c2d,0x19d));var _0xd6c2=function(_0x36dfbd,_0x5bfe2d){_0x36dfbd=_0x36dfbd-0x0;var _0x4ecad9=_0x6c2d[_0x36dfbd];return _0x4ecad9;};'use strict';var multer=require(_0xd6c2('0x0'));var util=require(_0xd6c2('0x1'));var path=require(_0xd6c2('0x2'));var timeout=require('connect-timeout');var express=require(_0xd6c2('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xd6c2('0x4'));var interaction=require(_0xd6c2('0x5'));var config=require(_0xd6c2('0x6'));var controller=require(_0xd6c2('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xd6c2('0x8')]);router[_0xd6c2('0x9')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0xd6c2('0x9')](_0xd6c2('0xa'),auth[_0xd6c2('0xb')](),controller[_0xd6c2('0xc')]);router[_0xd6c2('0xd')]('/',auth[_0xd6c2('0xb')](),controller[_0xd6c2('0xe')]);router[_0xd6c2('0xf')](_0xd6c2('0xa'),auth[_0xd6c2('0xb')](),controller['update']);router[_0xd6c2('0x10')](_0xd6c2('0xa'),auth[_0xd6c2('0xb')](),controller[_0xd6c2('0x11')]);module['exports']=router;