Built motion from commit (unavailable).|2.0.83
[motion2.git] / server / api / openchannelMessage / 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 _0xb56f=['openchannel','openchannelmessage:create','create','update','put','accept','reject','delete','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','get','describe','/:id','isAuthenticated','show','post','tracked'];(function(_0x27a900,_0x1cc305){var _0xea9b1f=function(_0xaddd55){while(--_0xaddd55){_0x27a900['push'](_0x27a900['shift']());}};_0xea9b1f(++_0x1cc305);}(_0xb56f,0x141));var _0xfb56=function(_0x500243,_0x49f678){_0x500243=_0x500243-0x0;var _0x49f6eb=_0xb56f[_0x500243];return _0x49f6eb;};'use strict';var multer=require(_0xfb56('0x0'));var util=require(_0xfb56('0x1'));var path=require(_0xfb56('0x2'));var timeout=require('connect-timeout');var express=require(_0xfb56('0x3'));var router=express[_0xfb56('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xfb56('0x5'));var config=require(_0xfb56('0x6'));var controller=require(_0xfb56('0x7'));router[_0xfb56('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xfb56('0x8')]('/describe',auth['isAuthenticated'](),controller[_0xfb56('0x9')]);router[_0xfb56('0x8')](_0xfb56('0xa'),auth[_0xfb56('0xb')](),controller[_0xfb56('0xc')]);router[_0xfb56('0xd')]('/',auth['isAuthenticated'](),interaction[_0xfb56('0xe')](_0xfb56('0xf'),_0xfb56('0x10')),controller[_0xfb56('0x11')]);router['put'](_0xfb56('0xa'),auth[_0xfb56('0xb')](),controller[_0xfb56('0x12')]);router[_0xfb56('0x13')]('/:id/accept',auth[_0xfb56('0xb')](),controller[_0xfb56('0x14')]);router[_0xfb56('0x13')]('/:id/reject',auth['isAuthenticated'](),controller[_0xfb56('0x15')]);router[_0xfb56('0x16')](_0xfb56('0xa'),auth[_0xfb56('0xb')](),controller['destroy']);module[_0xfb56('0x17')]=router;