Built motion from commit d9028345.|2.5.43
[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 _0x1a6e=['Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','/:id','/:id/messages','getMessages','/:id/download','download','post','addMessage','/:id/tags','openchannelinteraction:addtags','addTags','tracked','openchannelinteraction:update','update','openchannel','openchannelinteraction:destroy','destroy','delete','removeTags','exports','multer','connect-timeout','express'];(function(_0x524ec0,_0x58610d){var _0xe0fe50=function(_0x10d62d){while(--_0x10d62d){_0x524ec0['push'](_0x524ec0['shift']());}};_0xe0fe50(++_0x58610d);}(_0x1a6e,0x75));var _0xe1a6=function(_0x349915,_0x124261){_0x349915=_0x349915-0x0;var _0x8be4f3=_0x1a6e[_0x349915];return _0x8be4f3;};'use strict';var multer=require(_0xe1a6('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xe1a6('0x1'));var express=require(_0xe1a6('0x2'));var router=express[_0xe1a6('0x3')]();var fs_extra=require(_0xe1a6('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xe1a6('0x5'));var config=require(_0xe1a6('0x6'));var controller=require(_0xe1a6('0x7'));router[_0xe1a6('0x8')]('/',auth[_0xe1a6('0x9')](),controller[_0xe1a6('0xa')]);router[_0xe1a6('0x8')]('/describe',auth[_0xe1a6('0x9')](),controller['describe']);router[_0xe1a6('0x8')](_0xe1a6('0xb'),auth[_0xe1a6('0x9')](),controller['show']);router['get'](_0xe1a6('0xc'),auth[_0xe1a6('0x9')](),controller[_0xe1a6('0xd')]);router['get'](_0xe1a6('0xe'),auth[_0xe1a6('0x9')](),controller[_0xe1a6('0xf')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xe1a6('0x10')](_0xe1a6('0xc'),auth['isAuthenticated'](),controller[_0xe1a6('0x11')]);router[_0xe1a6('0x10')](_0xe1a6('0x12'),auth[_0xe1a6('0x9')](),interaction['tracked']('openchannel',_0xe1a6('0x13')),controller[_0xe1a6('0x14')]);router['put']('/:id',auth['isAuthenticated'](),interaction[_0xe1a6('0x15')]('openchannel',_0xe1a6('0x16')),controller[_0xe1a6('0x17')]);router['delete'](_0xe1a6('0xb'),auth[_0xe1a6('0x9')](),interaction[_0xe1a6('0x15')](_0xe1a6('0x18'),_0xe1a6('0x19')),controller[_0xe1a6('0x1a')]);router[_0xe1a6('0x1b')]('/:id/tags',auth['isAuthenticated'](),controller[_0xe1a6('0x1c')]);module[_0xe1a6('0x1d')]=router;