Built motion from commit 87cd5f02.|2.5.48
[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 _0xb5db=['./openchannelInteraction.controller','get','isAuthenticated','index','/describe','/:id','/:id/download','download','post','create','/:id/messages','addMessage','openchannel','openchannelinteraction:addtags','addTags','tracked','openchannelinteraction:update','delete','destroy','/:id/tags','exports','multer','connect-timeout','express','../../components/auth/service','../../config/environment'];(function(_0x4e3100,_0x394549){var _0x5e35de=function(_0x1feed9){while(--_0x1feed9){_0x4e3100['push'](_0x4e3100['shift']());}};_0x5e35de(++_0x394549);}(_0xb5db,0xb1));var _0xbb5d=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb5db[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xbb5d('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xbb5d('0x1'));var express=require(_0xbb5d('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xbb5d('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xbb5d('0x4'));var controller=require(_0xbb5d('0x5'));router[_0xbb5d('0x6')]('/',auth[_0xbb5d('0x7')](),controller[_0xbb5d('0x8')]);router[_0xbb5d('0x6')](_0xbb5d('0x9'),auth['isAuthenticated'](),controller['describe']);router[_0xbb5d('0x6')](_0xbb5d('0xa'),auth[_0xbb5d('0x7')](),controller['show']);router['get']('/:id/messages',auth['isAuthenticated'](),controller['getMessages']);router['get'](_0xbb5d('0xb'),auth[_0xbb5d('0x7')](),controller[_0xbb5d('0xc')]);router[_0xbb5d('0xd')]('/',auth[_0xbb5d('0x7')](),controller[_0xbb5d('0xe')]);router[_0xbb5d('0xd')](_0xbb5d('0xf'),auth['isAuthenticated'](),controller[_0xbb5d('0x10')]);router[_0xbb5d('0xd')]('/:id/tags',auth[_0xbb5d('0x7')](),interaction['tracked'](_0xbb5d('0x11'),_0xbb5d('0x12')),controller[_0xbb5d('0x13')]);router['put'](_0xbb5d('0xa'),auth[_0xbb5d('0x7')](),interaction[_0xbb5d('0x14')]('openchannel',_0xbb5d('0x15')),controller['update']);router[_0xbb5d('0x16')]('/:id',auth[_0xbb5d('0x7')](),interaction[_0xbb5d('0x14')](_0xbb5d('0x11'),'openchannelinteraction:destroy'),controller[_0xbb5d('0x17')]);router[_0xbb5d('0x16')](_0xbb5d('0x18'),auth[_0xbb5d('0x7')](),controller['removeTags']);module[_0xbb5d('0x19')]=router;