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