Built motion from commit (unavailable).|2.3.10
[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 _0xa8ac=['/:id','show','post','isAuthenticated','create','put','update','delete','destroy','util','path','express','Router','../../config/environment','get','index'];(function(_0x38a372,_0x18390d){var _0x2e454b=function(_0xad347b){while(--_0xad347b){_0x38a372['push'](_0x38a372['shift']());}};_0x2e454b(++_0x18390d);}(_0xa8ac,0xd9));var _0xca8a=function(_0x4f1767,_0x122a5f){_0x4f1767=_0x4f1767-0x0;var _0x2054cc=_0xa8ac[_0x4f1767];return _0x2054cc;};'use strict';var multer=require('multer');var util=require(_0xca8a('0x0'));var path=require(_0xca8a('0x1'));var timeout=require('connect-timeout');var express=require(_0xca8a('0x2'));var router=express[_0xca8a('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xca8a('0x4'));var controller=require('./squareMessage.controller');router[_0xca8a('0x5')]('/',auth['isAuthenticated'](),controller[_0xca8a('0x6')]);router['get'](_0xca8a('0x7'),auth['isAuthenticated'](),controller[_0xca8a('0x8')]);router[_0xca8a('0x9')]('/',auth[_0xca8a('0xa')](),controller[_0xca8a('0xb')]);router[_0xca8a('0xc')](_0xca8a('0x7'),auth[_0xca8a('0xa')](),controller[_0xca8a('0xd')]);router[_0xca8a('0xe')](_0xca8a('0x7'),auth['isAuthenticated'](),controller[_0xca8a('0xf')]);module['exports']=router;