Built motion from commit (unavailable).|2.5.31
[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 _0xe64b=['post','put','update','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareMessage.controller','get','isAuthenticated','/:id','show'];(function(_0x4f14d2,_0x1236a4){var _0x4aa5ce=function(_0x5ccece){while(--_0x5ccece){_0x4f14d2['push'](_0x4f14d2['shift']());}};_0x4aa5ce(++_0x1236a4);}(_0xe64b,0xc4));var _0xbe64=function(_0xd4f47,_0x22c0ed){_0xd4f47=_0xd4f47-0x0;var _0xa559b6=_0xe64b[_0xd4f47];return _0xa559b6;};'use strict';var multer=require(_0xbe64('0x0'));var util=require('util');var path=require(_0xbe64('0x1'));var timeout=require(_0xbe64('0x2'));var express=require('express');var router=express[_0xbe64('0x3')]();var fs_extra=require(_0xbe64('0x4'));var auth=require(_0xbe64('0x5'));var interaction=require(_0xbe64('0x6'));var config=require(_0xbe64('0x7'));var controller=require(_0xbe64('0x8'));router[_0xbe64('0x9')]('/',auth[_0xbe64('0xa')](),controller['index']);router[_0xbe64('0x9')](_0xbe64('0xb'),auth['isAuthenticated'](),controller[_0xbe64('0xc')]);router[_0xbe64('0xd')]('/',auth[_0xbe64('0xa')](),controller['create']);router[_0xbe64('0xe')](_0xbe64('0xb'),auth[_0xbe64('0xa')](),controller[_0xbe64('0xf')]);router[_0xbe64('0x10')](_0xbe64('0xb'),auth[_0xbe64('0xa')](),controller[_0xbe64('0x11')]);module[_0xbe64('0x12')]=router;