ce0ea711c7407daeb08c1ec05bdbb8d6480bd215
[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 _0x84db=['show','post','create','put','update','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','./squareMessage.controller','isAuthenticated','index','get','/:id'];(function(_0x2a7fa8,_0x413c0e){var _0xf7e306=function(_0x9af322){while(--_0x9af322){_0x2a7fa8['push'](_0x2a7fa8['shift']());}};_0xf7e306(++_0x413c0e);}(_0x84db,0x7d));var _0xb84d=function(_0xfddc67,_0x21f307){_0xfddc67=_0xfddc67-0x0;var _0x455d2a=_0x84db[_0xfddc67];return _0x455d2a;};'use strict';var multer=require(_0xb84d('0x0'));var util=require(_0xb84d('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xb84d('0x2'));var router=express[_0xb84d('0x3')]();var auth=require(_0xb84d('0x4'));var interaction=require(_0xb84d('0x5'));var config=require('../../config/environment');var controller=require(_0xb84d('0x6'));router['get']('/',auth[_0xb84d('0x7')](),controller[_0xb84d('0x8')]);router[_0xb84d('0x9')](_0xb84d('0xa'),auth[_0xb84d('0x7')](),controller[_0xb84d('0xb')]);router[_0xb84d('0xc')]('/',auth[_0xb84d('0x7')](),controller[_0xb84d('0xd')]);router[_0xb84d('0xe')](_0xb84d('0xa'),auth[_0xb84d('0x7')](),controller[_0xb84d('0xf')]);router['delete']('/:id',auth[_0xb84d('0x7')](),controller[_0xb84d('0x10')]);module['exports']=router;