Built motion from commit 1fa89557.|2.6.10
[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 _0xc788=['Subjects','content','variableName','Variable','DeskField','Descriptions','key','keyType','keyContent','Fields','idField','Tag','Tags','../../client','GetDeskAccount','name','description','password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations'];(function(_0x1aa13e,_0x12a40b){var _0x1144bd=function(_0x5f5cae){while(--_0x5f5cae){_0x1aa13e['push'](_0x1aa13e['shift']());}};_0x1144bd(++_0x12a40b);}(_0xc788,0xcd));var _0x8c78=function(_0x5024c7,_0xd560bd){_0x5024c7=_0x5024c7-0x0;var _0xf2f316=_0xc788[_0x5024c7];return _0xf2f316;};'use strict';var client=require(_0x8c78('0x0'));exports['getDeskAccounts']=function(){return function(_0x182ddd){return client['Request'](_0x8c78('0x1'),{'options':{'raw':![],'attributes':['id',_0x8c78('0x2'),_0x8c78('0x3'),'username',_0x8c78('0x4'),_0x8c78('0x5'),_0x8c78('0x6'),_0x8c78('0x7'),_0x8c78('0x8')],'include':[{'model':_0x8c78('0x9'),'as':_0x8c78('0xa'),'attributes':['id',_0x8c78('0x2')],'include':[{'model':'DeskField','as':_0x8c78('0xb'),'attributes':['id',_0x8c78('0x7'),_0x8c78('0xc'),_0x8c78('0xd')],'include':[{'model':_0x8c78('0xe'),'as':'Variable','attributes':['id',_0x8c78('0x2')]}]},{'model':_0x8c78('0xf'),'as':_0x8c78('0x10'),'attributes':['id',_0x8c78('0x7'),_0x8c78('0xc'),_0x8c78('0x11'),_0x8c78('0x12'),_0x8c78('0x13'),_0x8c78('0xd')],'include':[{'model':'Variable','as':_0x8c78('0xe'),'attributes':['id',_0x8c78('0x2')]}]},{'model':_0x8c78('0xf'),'as':_0x8c78('0x14'),'attributes':['id',_0x8c78('0x7'),'content',_0x8c78('0x15'),'nameField','customField',_0x8c78('0xd')],'include':[{'model':_0x8c78('0xe'),'as':'Variable','attributes':['id',_0x8c78('0x2')]}]},{'model':_0x8c78('0x16'),'as':_0x8c78('0x17'),'attributes':['id',_0x8c78('0x2')]}]}]},'log':'GetDeskAccount'});};};