Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0xbc49=['DeskField','Subjects','variableName','Variable','Descriptions','content','key','keyType','keyContent','name','Fields','idField','nameField','customField','Tag','Tags','getDeskAccounts','Request','authType','type','serverUrl'];(function(_0x58696a,_0x2aed89){var _0x32393a=function(_0x1e38c9){while(--_0x1e38c9){_0x58696a['push'](_0x58696a['shift']());}};_0x32393a(++_0x2aed89);}(_0xbc49,0xa3));var _0x9bc4=function(_0x1e081a,_0x482d6b){_0x1e081a=_0x1e081a-0x0;var _0x428209=_0xbc49[_0x1e081a];return _0x428209;};'use strict';var client=require('../../client');exports[_0x9bc4('0x0')]=function(){return function(_0x5260ef){return client[_0x9bc4('0x1')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name','description','username','password','remoteUri',_0x9bc4('0x2'),_0x9bc4('0x3'),_0x9bc4('0x4')],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id','name'],'include':[{'model':_0x9bc4('0x5'),'as':_0x9bc4('0x6'),'attributes':['id',_0x9bc4('0x3'),'content',_0x9bc4('0x7')],'include':[{'model':'Variable','as':_0x9bc4('0x8'),'attributes':['id','name']}]},{'model':_0x9bc4('0x5'),'as':_0x9bc4('0x9'),'attributes':['id','type',_0x9bc4('0xa'),_0x9bc4('0xb'),_0x9bc4('0xc'),_0x9bc4('0xd'),_0x9bc4('0x7')],'include':[{'model':_0x9bc4('0x8'),'as':'Variable','attributes':['id',_0x9bc4('0xe')]}]},{'model':_0x9bc4('0x5'),'as':_0x9bc4('0xf'),'attributes':['id',_0x9bc4('0x3'),_0x9bc4('0xa'),_0x9bc4('0x10'),_0x9bc4('0x11'),_0x9bc4('0x12'),'variableName'],'include':[{'model':_0x9bc4('0x8'),'as':_0x9bc4('0x8'),'attributes':['id','name']}]},{'model':_0x9bc4('0x13'),'as':_0x9bc4('0x14'),'attributes':['id',_0x9bc4('0xe')]}]}]},'log':'GetDeskAccount'});};};