Built motion from commit da617fac.|2.6.6
[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 _0xc689=['destroy','exports','util','connect-timeout','express','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index','/describe','/:id','post','update','delete'];(function(_0x12fc8d,_0x19ee33){var _0x3f9d04=function(_0x52e51c){while(--_0x52e51c){_0x12fc8d['push'](_0x12fc8d['shift']());}};_0x3f9d04(++_0x19ee33);}(_0xc689,0x1a2));var _0x9c68=function(_0x4c3ffe,_0x457374){_0x4c3ffe=_0x4c3ffe-0x0;var _0x28d3eb=_0xc689[_0x4c3ffe];return _0x28d3eb;};'use strict';var multer=require('multer');var util=require(_0x9c68('0x0'));var path=require('path');var timeout=require(_0x9c68('0x1'));var express=require(_0x9c68('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x9c68('0x3'));var config=require(_0x9c68('0x4'));var controller=require(_0x9c68('0x5'));router[_0x9c68('0x6')]('/',auth[_0x9c68('0x7')](),controller[_0x9c68('0x8')]);router['get'](_0x9c68('0x9'),auth[_0x9c68('0x7')](),controller['describe']);router[_0x9c68('0x6')](_0x9c68('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x9c68('0xb')]('/',auth[_0x9c68('0x7')](),controller['create']);router['put']('/:id',auth[_0x9c68('0x7')](),controller[_0x9c68('0xc')]);router[_0x9c68('0xd')](_0x9c68('0xa'),auth['isAuthenticated'](),controller[_0x9c68('0xe')]);module[_0x9c68('0xf')]=router;