Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / openchannelInteraction / 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 _0xc96b=['../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','/describe','describe','/:id','show','getMessages','/:id/download','download','post','/:id/messages','addMessage','/:id/tags','tracked','openchannel','openchannelinteraction:addtags','put','openchannelinteraction:update','update','delete','openchannelinteraction:destroy','destroy','removeTags','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xc96b,0x1a6));var _0xbc96=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xc96b[_0x20a584];return _0x4b41a8;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xbc96('0x0'));var timeout=require(_0xbc96('0x1'));var express=require(_0xbc96('0x2'));var router=express[_0xbc96('0x3')]();var fs_extra=require(_0xbc96('0x4'));var auth=require(_0xbc96('0x5'));var interaction=require(_0xbc96('0x6'));var config=require(_0xbc96('0x7'));var controller=require(_0xbc96('0x8'));router[_0xbc96('0x9')]('/',auth[_0xbc96('0xa')](),controller['index']);router[_0xbc96('0x9')](_0xbc96('0xb'),auth[_0xbc96('0xa')](),controller[_0xbc96('0xc')]);router[_0xbc96('0x9')](_0xbc96('0xd'),auth[_0xbc96('0xa')](),controller[_0xbc96('0xe')]);router[_0xbc96('0x9')]('/:id/messages',auth[_0xbc96('0xa')](),controller[_0xbc96('0xf')]);router[_0xbc96('0x9')](_0xbc96('0x10'),auth['isAuthenticated'](),controller[_0xbc96('0x11')]);router['post']('/',auth[_0xbc96('0xa')](),controller['create']);router[_0xbc96('0x12')](_0xbc96('0x13'),auth[_0xbc96('0xa')](),controller[_0xbc96('0x14')]);router[_0xbc96('0x12')](_0xbc96('0x15'),auth[_0xbc96('0xa')](),interaction[_0xbc96('0x16')](_0xbc96('0x17'),_0xbc96('0x18')),controller['addTags']);router[_0xbc96('0x19')](_0xbc96('0xd'),auth[_0xbc96('0xa')](),interaction[_0xbc96('0x16')](_0xbc96('0x17'),_0xbc96('0x1a')),controller[_0xbc96('0x1b')]);router[_0xbc96('0x1c')](_0xbc96('0xd'),auth[_0xbc96('0xa')](),interaction[_0xbc96('0x16')](_0xbc96('0x17'),_0xbc96('0x1d')),controller[_0xbc96('0x1e')]);router[_0xbc96('0x1c')](_0xbc96('0x15'),auth[_0xbc96('0xa')](),controller[_0xbc96('0x1f')]);module[_0xbc96('0x20')]=router;