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