7b5b401fddecff01213abeea7f769765331ea86c
[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 _0x4f9b=['../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','download','post','create','/:id/tags','tracked','openchannelinteraction:addtags','put','openchannel','openchannelinteraction:update','delete','openchannelinteraction:destroy','removeTags','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x36e5be,_0x341c86){var _0x315266=function(_0x20e9b8){while(--_0x20e9b8){_0x36e5be['push'](_0x36e5be['shift']());}};_0x315266(++_0x341c86);}(_0x4f9b,0xf0));var _0xb4f9=function(_0x2bc1b5,_0x4198af){_0x2bc1b5=_0x2bc1b5-0x0;var _0x313646=_0x4f9b[_0x2bc1b5];return _0x313646;};'use strict';var multer=require(_0xb4f9('0x0'));var util=require(_0xb4f9('0x1'));var path=require(_0xb4f9('0x2'));var timeout=require(_0xb4f9('0x3'));var express=require(_0xb4f9('0x4'));var router=express[_0xb4f9('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xb4f9('0x6'));var interaction=require(_0xb4f9('0x7'));var config=require(_0xb4f9('0x8'));var controller=require('./openchannelInteraction.controller');router[_0xb4f9('0x9')]('/',auth[_0xb4f9('0xa')](),controller[_0xb4f9('0xb')]);router['get'](_0xb4f9('0xc'),auth[_0xb4f9('0xa')](),controller[_0xb4f9('0xd')]);router[_0xb4f9('0x9')](_0xb4f9('0xe'),auth[_0xb4f9('0xa')](),controller[_0xb4f9('0xf')]);router['get'](_0xb4f9('0x10'),auth[_0xb4f9('0xa')](),controller[_0xb4f9('0x11')]);router[_0xb4f9('0x9')]('/:id/download',auth[_0xb4f9('0xa')](),controller[_0xb4f9('0x12')]);router[_0xb4f9('0x13')]('/',auth['isAuthenticated'](),controller[_0xb4f9('0x14')]);router['post'](_0xb4f9('0x10'),auth[_0xb4f9('0xa')](),controller['addMessage']);router['post'](_0xb4f9('0x15'),auth[_0xb4f9('0xa')](),interaction[_0xb4f9('0x16')]('openchannel',_0xb4f9('0x17')),controller['addTags']);router[_0xb4f9('0x18')](_0xb4f9('0xe'),auth[_0xb4f9('0xa')](),interaction[_0xb4f9('0x16')](_0xb4f9('0x19'),_0xb4f9('0x1a')),controller['update']);router[_0xb4f9('0x1b')](_0xb4f9('0xe'),auth['isAuthenticated'](),interaction[_0xb4f9('0x16')](_0xb4f9('0x19'),_0xb4f9('0x1c')),controller['destroy']);router[_0xb4f9('0x1b')](_0xb4f9('0x15'),auth[_0xb4f9('0xa')](),controller[_0xb4f9('0x1d')]);module[_0xb4f9('0x1e')]=router;