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