57207465205b626415a31ae9cd66a91f5335da8f
[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 _0xf4b2=['show','create','put','/:id','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./squareMessage.controller','get','isAuthenticated'];(function(_0x193a6e,_0x45dd00){var _0x599a9b=function(_0x37a9e2){while(--_0x37a9e2){_0x193a6e['push'](_0x193a6e['shift']());}};_0x599a9b(++_0x45dd00);}(_0xf4b2,0x67));var _0x2f4b=function(_0x12db73,_0xc67224){_0x12db73=_0x12db73-0x0;var _0x70fbc1=_0xf4b2[_0x12db73];return _0x70fbc1;};'use strict';var multer=require(_0x2f4b('0x0'));var util=require('util');var path=require(_0x2f4b('0x1'));var timeout=require(_0x2f4b('0x2'));var express=require(_0x2f4b('0x3'));var router=express[_0x2f4b('0x4')]();var fs_extra=require(_0x2f4b('0x5'));var auth=require(_0x2f4b('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x2f4b('0x7'));var controller=require(_0x2f4b('0x8'));router[_0x2f4b('0x9')]('/',auth[_0x2f4b('0xa')](),controller['index']);router['get']('/:id',auth[_0x2f4b('0xa')](),controller[_0x2f4b('0xb')]);router['post']('/',auth[_0x2f4b('0xa')](),controller[_0x2f4b('0xc')]);router[_0x2f4b('0xd')](_0x2f4b('0xe'),auth[_0x2f4b('0xa')](),controller[_0x2f4b('0xf')]);router[_0x2f4b('0x10')](_0x2f4b('0xe'),auth[_0x2f4b('0xa')](),controller[_0x2f4b('0x11')]);module[_0x2f4b('0x12')]=router;