Built motion from commit (unavailable).|2.4.18
[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 _0x99cb=['multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','get','index','/describe','isAuthenticated','describe','/:id','show','post','tracked','openchannelmessage:create','put','update','accept','/:id/reject','delete','destroy','exports'];(function(_0x211719,_0x18ff9b){var _0x4c2de5=function(_0xd44d8d){while(--_0xd44d8d){_0x211719['push'](_0x211719['shift']());}};_0x4c2de5(++_0x18ff9b);}(_0x99cb,0x68));var _0xb99c=function(_0x22fd41,_0x11c241){_0x22fd41=_0x22fd41-0x0;var _0x1088c6=_0x99cb[_0x22fd41];return _0x1088c6;};'use strict';var multer=require(_0xb99c('0x0'));var util=require(_0xb99c('0x1'));var path=require(_0xb99c('0x2'));var timeout=require(_0xb99c('0x3'));var express=require(_0xb99c('0x4'));var router=express[_0xb99c('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xb99c('0x6'));var config=require(_0xb99c('0x7'));var controller=require(_0xb99c('0x8'));router[_0xb99c('0x9')]('/',auth['isAuthenticated'](),controller[_0xb99c('0xa')]);router[_0xb99c('0x9')](_0xb99c('0xb'),auth[_0xb99c('0xc')](),controller[_0xb99c('0xd')]);router[_0xb99c('0x9')](_0xb99c('0xe'),auth[_0xb99c('0xc')](),controller[_0xb99c('0xf')]);router[_0xb99c('0x10')]('/',auth[_0xb99c('0xc')](),interaction[_0xb99c('0x11')]('openchannel',_0xb99c('0x12')),controller['create']);router[_0xb99c('0x13')](_0xb99c('0xe'),auth[_0xb99c('0xc')](),controller[_0xb99c('0x14')]);router[_0xb99c('0x13')]('/:id/accept',auth[_0xb99c('0xc')](),controller[_0xb99c('0x15')]);router[_0xb99c('0x13')](_0xb99c('0x16'),auth[_0xb99c('0xc')](),controller['reject']);router[_0xb99c('0x17')](_0xb99c('0xe'),auth[_0xb99c('0xc')](),controller[_0xb99c('0x18')]);module[_0xb99c('0x19')]=router;