Built motion from commit 3c2ce842.|2.6.31
[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 _0x813c=['DeskField','Fields','idField','Tags','GetDeskAccount','name','description','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','Subjects','content','Variable','Descriptions','keyType','keyContent','variableName'];(function(_0x481bf7,_0x437f69){var _0x461787=function(_0xb3bc9d){while(--_0xb3bc9d){_0x481bf7['push'](_0x481bf7['shift']());}};_0x461787(++_0x437f69);}(_0x813c,0x10c));var _0xc813=function(_0x46e7cd,_0x3b1f00){_0x46e7cd=_0x46e7cd-0x0;var _0x4cdbb1=_0x813c[_0x46e7cd];return _0x4cdbb1;};'use strict';var client=require('../../client');exports['getDeskAccounts']=function(){return function(_0x54a1c2){return client['Request'](_0xc813('0x0'),{'options':{'raw':![],'attributes':['id',_0xc813('0x1'),_0xc813('0x2'),_0xc813('0x3'),_0xc813('0x4'),_0xc813('0x5'),_0xc813('0x6'),_0xc813('0x7'),_0xc813('0x8')],'include':[{'model':_0xc813('0x9'),'as':_0xc813('0xa'),'attributes':['id',_0xc813('0x1')],'include':[{'model':'DeskField','as':_0xc813('0xb'),'attributes':['id',_0xc813('0x7'),_0xc813('0xc'),'variableName'],'include':[{'model':_0xc813('0xd'),'as':'Variable','attributes':['id',_0xc813('0x1')]}]},{'model':'DeskField','as':_0xc813('0xe'),'attributes':['id',_0xc813('0x7'),_0xc813('0xc'),'key',_0xc813('0xf'),_0xc813('0x10'),_0xc813('0x11')],'include':[{'model':'Variable','as':_0xc813('0xd'),'attributes':['id','name']}]},{'model':_0xc813('0x12'),'as':_0xc813('0x13'),'attributes':['id',_0xc813('0x7'),_0xc813('0xc'),_0xc813('0x14'),'nameField','customField','variableName'],'include':[{'model':'Variable','as':_0xc813('0xd'),'attributes':['id',_0xc813('0x1')]}]},{'model':'Tag','as':_0xc813('0x15'),'attributes':['id',_0xc813('0x1')]}]}]},'log':_0xc813('0x0')});};};