Built motion from commit (unavailable).|2.5.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 _0x99e3=['GetDeskAccount','name','username','remoteUri','authType','type','serverUrl','Configurations','DeskField','Variable','content','key','keyType','variableName','Fields','idField','nameField','Tags','Request'];(function(_0x4c7935,_0x4a53fb){var _0x30651d=function(_0x12f35f){while(--_0x12f35f){_0x4c7935['push'](_0x4c7935['shift']());}};_0x30651d(++_0x4a53fb);}(_0x99e3,0x12f));var _0x399e=function(_0x1c1022,_0x359a3c){_0x1c1022=_0x1c1022-0x0;var _0x28021a=_0x99e3[_0x1c1022];return _0x28021a;};'use strict';var client=require('../../client');exports['getDeskAccounts']=function(){return function(_0x330b05){return client[_0x399e('0x0')](_0x399e('0x1'),{'options':{'raw':![],'attributes':['id',_0x399e('0x2'),'description',_0x399e('0x3'),'password',_0x399e('0x4'),_0x399e('0x5'),_0x399e('0x6'),_0x399e('0x7')],'include':[{'model':'DeskConfiguration','as':_0x399e('0x8'),'attributes':['id',_0x399e('0x2')],'include':[{'model':_0x399e('0x9'),'as':'Subjects','attributes':['id',_0x399e('0x6'),'content','variableName'],'include':[{'model':_0x399e('0xa'),'as':_0x399e('0xa'),'attributes':['id',_0x399e('0x2')]}]},{'model':_0x399e('0x9'),'as':'Descriptions','attributes':['id',_0x399e('0x6'),_0x399e('0xb'),_0x399e('0xc'),_0x399e('0xd'),'keyContent',_0x399e('0xe')],'include':[{'model':'Variable','as':_0x399e('0xa'),'attributes':['id','name']}]},{'model':'DeskField','as':_0x399e('0xf'),'attributes':['id',_0x399e('0x6'),_0x399e('0xb'),_0x399e('0x10'),_0x399e('0x11'),'customField',_0x399e('0xe')],'include':[{'model':_0x399e('0xa'),'as':_0x399e('0xa'),'attributes':['id','name']}]},{'model':'Tag','as':_0x399e('0x12'),'attributes':['id',_0x399e('0x2')]}]}]},'log':_0x399e('0x1')});};};