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