Built motion from commit (unavailable).|2.4.20
[motion2.git] / server / api / smsAccount / 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 _0x86c9=['/:id/applications','getInteractions','/:id/users','getAgents','post','create','addDisposition','addAnswer','notify','addApplications','/:id/send','/:id/status','status','addAgents','put','update','delete','exports','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./smsAccount.controller','get','index','isAuthenticated','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers'];(function(_0xa8a7c5,_0x3567d1){var _0x27690d=function(_0x4c1eb6){while(--_0x4c1eb6){_0xa8a7c5['push'](_0xa8a7c5['shift']());}};_0x27690d(++_0x3567d1);}(_0x86c9,0x100));var _0x986c=function(_0x6e53f9,_0x4a5f94){_0x6e53f9=_0x6e53f9-0x0;var _0x2a5206=_0x86c9[_0x6e53f9];return _0x2a5206;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x986c('0x0'));var timeout=require(_0x986c('0x1'));var express=require(_0x986c('0x2'));var router=express[_0x986c('0x3')]();var auth=require(_0x986c('0x4'));var interaction=require(_0x986c('0x5'));var config=require('../../config/environment');var controller=require(_0x986c('0x6'));router[_0x986c('0x7')]('/',auth['isAuthenticated'](),controller[_0x986c('0x8')]);router[_0x986c('0x7')]('/describe',auth[_0x986c('0x9')](),controller[_0x986c('0xa')]);router[_0x986c('0x7')](_0x986c('0xb'),auth['isAuthenticated'](),controller[_0x986c('0xc')]);router[_0x986c('0x7')](_0x986c('0xd'),auth[_0x986c('0x9')](),controller[_0x986c('0xe')]);router[_0x986c('0x7')](_0x986c('0xf'),auth[_0x986c('0x9')](),controller['getAnswers']);router[_0x986c('0x7')](_0x986c('0x10'),auth[_0x986c('0x9')](),controller['getApplications']);router[_0x986c('0x7')]('/:id/interactions',auth[_0x986c('0x9')](),controller[_0x986c('0x11')]);router['get']('/:id/status',controller['statusGet']);router[_0x986c('0x7')](_0x986c('0x12'),auth[_0x986c('0x9')](),controller[_0x986c('0x13')]);router[_0x986c('0x14')]('/',auth[_0x986c('0x9')](),controller[_0x986c('0x15')]);router['post'](_0x986c('0xd'),auth[_0x986c('0x9')](),controller[_0x986c('0x16')]);router['post'](_0x986c('0xf'),auth['isAuthenticated'](),controller[_0x986c('0x17')]);router['post']('/:id/notify',controller[_0x986c('0x18')]);router[_0x986c('0x14')](_0x986c('0x10'),auth['isAuthenticated'](),controller[_0x986c('0x19')]);router[_0x986c('0x14')](_0x986c('0x1a'),auth['isAuthenticated'](),controller['send']);router['post'](_0x986c('0x1b'),controller[_0x986c('0x1c')]);router['post'](_0x986c('0x12'),auth[_0x986c('0x9')](),controller[_0x986c('0x1d')]);router[_0x986c('0x1e')](_0x986c('0xb'),auth[_0x986c('0x9')](),controller[_0x986c('0x1f')]);router[_0x986c('0x20')](_0x986c('0xb'),auth[_0x986c('0x9')](),controller['destroy']);router[_0x986c('0x20')](_0x986c('0xd'),auth[_0x986c('0x9')](),controller['removeDispositions']);router[_0x986c('0x20')]('/:id/canned_answers',auth[_0x986c('0x9')](),controller['removeAnswers']);router[_0x986c('0x20')](_0x986c('0x12'),auth[_0x986c('0x9')](),controller['removeAgents']);module[_0x986c('0x21')]=router;