Built motion from commit (unavailable).|2.5.13
[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 _0x715e=['getDeskAccounts','name','description','username','password','remoteUri','authType','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','Variable','type','keyType','keyContent','Fields','content','idField','customField','variableName','Tag','Tags','GetDeskAccount','../../client'];(function(_0x47df54,_0x1aeb61){var _0x261b87=function(_0x54bc77){while(--_0x54bc77){_0x47df54['push'](_0x47df54['shift']());}};_0x261b87(++_0x1aeb61);}(_0x715e,0xf9));var _0xe715=function(_0x2064e5,_0x4f6fa2){_0x2064e5=_0x2064e5-0x0;var _0x21a233=_0x715e[_0x2064e5];return _0x21a233;};'use strict';var client=require(_0xe715('0x0'));exports[_0xe715('0x1')]=function(){return function(_0x4fa597){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xe715('0x2'),_0xe715('0x3'),_0xe715('0x4'),_0xe715('0x5'),_0xe715('0x6'),_0xe715('0x7'),'type',_0xe715('0x8')],'include':[{'model':_0xe715('0x9'),'as':_0xe715('0xa'),'attributes':['id',_0xe715('0x2')],'include':[{'model':_0xe715('0xb'),'as':_0xe715('0xc'),'attributes':['id','type','content','variableName'],'include':[{'model':_0xe715('0xd'),'as':_0xe715('0xd'),'attributes':['id',_0xe715('0x2')]}]},{'model':'DeskField','as':'Descriptions','attributes':['id',_0xe715('0xe'),'content','key',_0xe715('0xf'),_0xe715('0x10'),'variableName'],'include':[{'model':_0xe715('0xd'),'as':_0xe715('0xd'),'attributes':['id',_0xe715('0x2')]}]},{'model':_0xe715('0xb'),'as':_0xe715('0x11'),'attributes':['id',_0xe715('0xe'),_0xe715('0x12'),_0xe715('0x13'),'nameField',_0xe715('0x14'),_0xe715('0x15')],'include':[{'model':_0xe715('0xd'),'as':_0xe715('0xd'),'attributes':['id',_0xe715('0x2')]}]},{'model':_0xe715('0x16'),'as':_0xe715('0x17'),'attributes':['id','name']}]}]},'log':_0xe715('0x18')});};};