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