Built motion from commit bab6f49e.|2.6.17
[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 _0x0ba3=['put','/:id','update','delete','exports','multer','util','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','./chatOfflineMessage.controller','get','isAuthenticated','index','/describe','describe','show','post','create'];(function(_0x2dd041,_0x467e2e){var _0x124843=function(_0x272310){while(--_0x272310){_0x2dd041['push'](_0x2dd041['shift']());}};_0x124843(++_0x467e2e);}(_0x0ba3,0xb9));var _0x30ba=function(_0x495b3d,_0x4d3da4){_0x495b3d=_0x495b3d-0x0;var _0x4cb329=_0x0ba3[_0x495b3d];return _0x4cb329;};'use strict';var multer=require(_0x30ba('0x0'));var util=require(_0x30ba('0x1'));var path=require('path');var timeout=require(_0x30ba('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x30ba('0x3'));var auth=require(_0x30ba('0x4'));var interaction=require(_0x30ba('0x5'));var config=require('../../config/environment');var controller=require(_0x30ba('0x6'));router[_0x30ba('0x7')]('/',auth[_0x30ba('0x8')](),controller[_0x30ba('0x9')]);router[_0x30ba('0x7')](_0x30ba('0xa'),auth[_0x30ba('0x8')](),controller[_0x30ba('0xb')]);router[_0x30ba('0x7')]('/:id',auth[_0x30ba('0x8')](),controller[_0x30ba('0xc')]);router[_0x30ba('0xd')]('/',auth['isAuthenticated'](),controller[_0x30ba('0xe')]);router[_0x30ba('0xf')](_0x30ba('0x10'),auth['isAuthenticated'](),controller[_0x30ba('0x11')]);router[_0x30ba('0x12')](_0x30ba('0x10'),auth[_0x30ba('0x8')](),controller['destroy']);module[_0x30ba('0x13')]=router;