Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / squareMessage / 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 _0xa8c7=['../../components/auth/service','../../config/environment','./squareMessage.controller','get','isAuthenticated','index','/:id','show','post','create','put','delete','destroy','exports','multer','path','connect-timeout','express','Router'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0xa8c7,0x19d));var _0x7a8c=function(_0x3b3a60,_0x136734){_0x3b3a60=_0x3b3a60-0x0;var _0x171ae7=_0xa8c7[_0x3b3a60];return _0x171ae7;};'use strict';var multer=require(_0x7a8c('0x0'));var util=require('util');var path=require(_0x7a8c('0x1'));var timeout=require(_0x7a8c('0x2'));var express=require(_0x7a8c('0x3'));var router=express[_0x7a8c('0x4')]();var auth=require(_0x7a8c('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x7a8c('0x6'));var controller=require(_0x7a8c('0x7'));router[_0x7a8c('0x8')]('/',auth[_0x7a8c('0x9')](),controller[_0x7a8c('0xa')]);router[_0x7a8c('0x8')](_0x7a8c('0xb'),auth[_0x7a8c('0x9')](),controller[_0x7a8c('0xc')]);router[_0x7a8c('0xd')]('/',auth[_0x7a8c('0x9')](),controller[_0x7a8c('0xe')]);router[_0x7a8c('0xf')]('/:id',auth[_0x7a8c('0x9')](),controller['update']);router[_0x7a8c('0x10')](_0x7a8c('0xb'),auth['isAuthenticated'](),controller[_0x7a8c('0x11')]);module[_0x7a8c('0x12')]=router;