Built motion from commit (unavailable).|2.4.17
[motion2.git] / server / api / openchannelMessage / 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 _0x4bcf=['destroy','exports','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','get','isAuthenticated','index','describe','/:id','tracked','openchannelmessage:create','create','/:id/accept','/:id/reject','reject','delete'];(function(_0x3a2a3c,_0x37bd31){var _0x50ac9a=function(_0x494a7f){while(--_0x494a7f){_0x3a2a3c['push'](_0x3a2a3c['shift']());}};_0x50ac9a(++_0x37bd31);}(_0x4bcf,0x6b));var _0xf4bc=function(_0x936f18,_0x110725){_0x936f18=_0x936f18-0x0;var _0x36b3b7=_0x4bcf[_0x936f18];return _0x36b3b7;};'use strict';var multer=require('multer');var util=require(_0xf4bc('0x0'));var path=require('path');var timeout=require(_0xf4bc('0x1'));var express=require(_0xf4bc('0x2'));var router=express[_0xf4bc('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xf4bc('0x4'));var config=require(_0xf4bc('0x5'));var controller=require(_0xf4bc('0x6'));router[_0xf4bc('0x7')]('/',auth[_0xf4bc('0x8')](),controller[_0xf4bc('0x9')]);router[_0xf4bc('0x7')]('/describe',auth[_0xf4bc('0x8')](),controller[_0xf4bc('0xa')]);router[_0xf4bc('0x7')](_0xf4bc('0xb'),auth[_0xf4bc('0x8')](),controller['show']);router['post']('/',auth[_0xf4bc('0x8')](),interaction[_0xf4bc('0xc')]('openchannel',_0xf4bc('0xd')),controller[_0xf4bc('0xe')]);router['put'](_0xf4bc('0xb'),auth[_0xf4bc('0x8')](),controller['update']);router['put'](_0xf4bc('0xf'),auth[_0xf4bc('0x8')](),controller['accept']);router['put'](_0xf4bc('0x10'),auth['isAuthenticated'](),controller[_0xf4bc('0x11')]);router[_0xf4bc('0x12')](_0xf4bc('0xb'),auth['isAuthenticated'](),controller[_0xf4bc('0x13')]);module[_0xf4bc('0x14')]=router;