d9c5c89de1da6846871117355ef97eacd0d10aa0
[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 _0xfd0f=['/:id','show','create','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./squareMessage.controller','get','isAuthenticated','index'];(function(_0x43bed7,_0x112855){var _0x5ddae2=function(_0xb1b83c){while(--_0xb1b83c){_0x43bed7['push'](_0x43bed7['shift']());}};_0x5ddae2(++_0x112855);}(_0xfd0f,0x1e1));var _0xffd0=function(_0x9cbf64,_0x3134ec){_0x9cbf64=_0x9cbf64-0x0;var _0x749c10=_0xfd0f[_0x9cbf64];return _0x749c10;};'use strict';var multer=require(_0xffd0('0x0'));var util=require(_0xffd0('0x1'));var path=require(_0xffd0('0x2'));var timeout=require(_0xffd0('0x3'));var express=require(_0xffd0('0x4'));var router=express[_0xffd0('0x5')]();var fs_extra=require(_0xffd0('0x6'));var auth=require(_0xffd0('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xffd0('0x8'));var controller=require(_0xffd0('0x9'));router[_0xffd0('0xa')]('/',auth[_0xffd0('0xb')](),controller[_0xffd0('0xc')]);router['get'](_0xffd0('0xd'),auth[_0xffd0('0xb')](),controller[_0xffd0('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0xffd0('0xf')]);router['put'](_0xffd0('0xd'),auth[_0xffd0('0xb')](),controller[_0xffd0('0x10')]);router[_0xffd0('0x11')](_0xffd0('0xd'),auth[_0xffd0('0xb')](),controller['destroy']);module[_0xffd0('0x12')]=router;