Built motion from commit 9d7072cc.|2.5.39
[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 _0xbcc2=['Router','../../components/interaction/service','../../config/environment','./smsMessage.controller','get','index','/describe','isAuthenticated','describe','/:id','show','post','sms','smsmessage:create','/:id/status','status','put','/:id/accept','accept','reject','destroy','exports','multer','path','express'];(function(_0x221bc0,_0x157147){var _0x1f1ac6=function(_0x524fe3){while(--_0x524fe3){_0x221bc0['push'](_0x221bc0['shift']());}};_0x1f1ac6(++_0x157147);}(_0xbcc2,0x93));var _0x2bcc=function(_0x22dd52,_0x4c3ec9){_0x22dd52=_0x22dd52-0x0;var _0x1bbfd8=_0xbcc2[_0x22dd52];return _0x1bbfd8;};'use strict';var multer=require(_0x2bcc('0x0'));var util=require('util');var path=require(_0x2bcc('0x1'));var timeout=require('connect-timeout');var express=require(_0x2bcc('0x2'));var router=express[_0x2bcc('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x2bcc('0x4'));var config=require(_0x2bcc('0x5'));var controller=require(_0x2bcc('0x6'));router[_0x2bcc('0x7')]('/',auth['isAuthenticated'](),controller[_0x2bcc('0x8')]);router[_0x2bcc('0x7')](_0x2bcc('0x9'),auth[_0x2bcc('0xa')](),controller[_0x2bcc('0xb')]);router['get'](_0x2bcc('0xc'),auth[_0x2bcc('0xa')](),controller[_0x2bcc('0xd')]);router[_0x2bcc('0xe')]('/',auth[_0x2bcc('0xa')](),interaction['tracked'](_0x2bcc('0xf'),_0x2bcc('0x10')),controller['create']);router['post'](_0x2bcc('0x11'),controller[_0x2bcc('0x12')]);router[_0x2bcc('0x13')]('/:id',auth[_0x2bcc('0xa')](),controller['update']);router[_0x2bcc('0x13')](_0x2bcc('0x14'),auth[_0x2bcc('0xa')](),controller[_0x2bcc('0x15')]);router['put']('/:id/reject',auth[_0x2bcc('0xa')](),controller[_0x2bcc('0x16')]);router['delete'](_0x2bcc('0xc'),auth[_0x2bcc('0xa')](),controller[_0x2bcc('0x17')]);module[_0x2bcc('0x18')]=router;