31fc70e4472fdc7dd77f44a79874fc69bb0d4590
[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 _0x8d67=['../../config/environment','./squareMessage.controller','index','get','show','post','create','put','/:id','isAuthenticated','delete','destroy','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0xc24dfb,_0x5ef7f7){var _0x426e5b=function(_0x30471d){while(--_0x30471d){_0xc24dfb['push'](_0xc24dfb['shift']());}};_0x426e5b(++_0x5ef7f7);}(_0x8d67,0x92));var _0x78d6=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x8d67[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x78d6('0x0'));var util=require('util');var path=require(_0x78d6('0x1'));var timeout=require('connect-timeout');var express=require(_0x78d6('0x2'));var router=express[_0x78d6('0x3')]();var auth=require(_0x78d6('0x4'));var interaction=require(_0x78d6('0x5'));var config=require(_0x78d6('0x6'));var controller=require(_0x78d6('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x78d6('0x8')]);router[_0x78d6('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x78d6('0xa')]);router[_0x78d6('0xb')]('/',auth['isAuthenticated'](),controller[_0x78d6('0xc')]);router[_0x78d6('0xd')](_0x78d6('0xe'),auth[_0x78d6('0xf')](),controller['update']);router[_0x78d6('0x10')](_0x78d6('0xe'),auth[_0x78d6('0xf')](),controller[_0x78d6('0x11')]);module[_0x78d6('0x12')]=router;