465c1d791cff84b857f92f5ceaa6fcd9ba3ca996
[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 _0xf4d2=['Router','../../components/auth/service','../../config/environment','./squareMessage.controller','index','get','/:id','isAuthenticated','post','create','put','delete','destroy','multer','util','connect-timeout','express'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xf4d2,0x1e9));var _0x2f4d=function(_0x55d691,_0x4ac367){_0x55d691=_0x55d691-0x0;var _0xafd4dc=_0xf4d2[_0x55d691];return _0xafd4dc;};'use strict';var multer=require(_0x2f4d('0x0'));var util=require(_0x2f4d('0x1'));var path=require('path');var timeout=require(_0x2f4d('0x2'));var express=require(_0x2f4d('0x3'));var router=express[_0x2f4d('0x4')]();var auth=require(_0x2f4d('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x2f4d('0x6'));var controller=require(_0x2f4d('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x2f4d('0x8')]);router[_0x2f4d('0x9')](_0x2f4d('0xa'),auth[_0x2f4d('0xb')](),controller['show']);router[_0x2f4d('0xc')]('/',auth['isAuthenticated'](),controller[_0x2f4d('0xd')]);router[_0x2f4d('0xe')](_0x2f4d('0xa'),auth[_0x2f4d('0xb')](),controller['update']);router[_0x2f4d('0xf')](_0x2f4d('0xa'),auth[_0x2f4d('0xb')](),controller[_0x2f4d('0x10')]);module['exports']=router;