679f1c01ae0ffae479f0ed352c22fa47feab9697
[motion2.git] / server / api / smsMessage / 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 _0x52e2=['../../components/interaction/service','../../config/environment','./smsMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','sms','smsmessage:create','/:id/status','status','update','/:id/accept','put','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service'];(function(_0x151d64,_0x360f73){var _0x409cfd=function(_0x152309){while(--_0x152309){_0x151d64['push'](_0x151d64['shift']());}};_0x409cfd(++_0x360f73);}(_0x52e2,0x91));var _0x252e=function(_0x1c518c,_0x383352){_0x1c518c=_0x1c518c-0x0;var _0x2650cb=_0x52e2[_0x1c518c];return _0x2650cb;};'use strict';var multer=require(_0x252e('0x0'));var util=require(_0x252e('0x1'));var path=require('path');var timeout=require(_0x252e('0x2'));var express=require('express');var router=express[_0x252e('0x3')]();var auth=require(_0x252e('0x4'));var interaction=require(_0x252e('0x5'));var config=require(_0x252e('0x6'));var controller=require(_0x252e('0x7'));router[_0x252e('0x8')]('/',auth[_0x252e('0x9')](),controller[_0x252e('0xa')]);router[_0x252e('0x8')](_0x252e('0xb'),auth[_0x252e('0x9')](),controller[_0x252e('0xc')]);router[_0x252e('0x8')](_0x252e('0xd'),auth[_0x252e('0x9')](),controller[_0x252e('0xe')]);router[_0x252e('0xf')]('/',auth[_0x252e('0x9')](),interaction['tracked'](_0x252e('0x10'),_0x252e('0x11')),controller['create']);router[_0x252e('0xf')](_0x252e('0x12'),controller[_0x252e('0x13')]);router['put']('/:id',auth[_0x252e('0x9')](),controller[_0x252e('0x14')]);router['put'](_0x252e('0x15'),auth[_0x252e('0x9')](),controller['accept']);router[_0x252e('0x16')]('/:id/reject',auth[_0x252e('0x9')](),controller['reject']);router['delete'](_0x252e('0xd'),auth[_0x252e('0x9')](),controller[_0x252e('0x17')]);module[_0x252e('0x18')]=router;