Built motion from commit (unavailable).|2.6.0
[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 _0x259c=['nameField','customField','Tag','GetDeskAccount','getDeskAccounts','description','username','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','name','content','variableName','Variable','key','keyType','keyContent','DeskField','idField'];(function(_0x1a6db2,_0x5a1fe4){var _0x42c0d7=function(_0x4a4beb){while(--_0x4a4beb){_0x1a6db2['push'](_0x1a6db2['shift']());}};_0x42c0d7(++_0x5a1fe4);}(_0x259c,0x1bc));var _0xc259=function(_0x45df8b,_0xcd17fe){_0x45df8b=_0x45df8b-0x0;var _0x12750d=_0x259c[_0x45df8b];return _0x12750d;};'use strict';var client=require('../../client');exports[_0xc259('0x0')]=function(){return function(_0x1008c4){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name',_0xc259('0x1'),_0xc259('0x2'),'password',_0xc259('0x3'),_0xc259('0x4'),_0xc259('0x5'),_0xc259('0x6')],'include':[{'model':_0xc259('0x7'),'as':_0xc259('0x8'),'attributes':['id',_0xc259('0x9')],'include':[{'model':'DeskField','as':'Subjects','attributes':['id',_0xc259('0x5'),_0xc259('0xa'),_0xc259('0xb')],'include':[{'model':_0xc259('0xc'),'as':_0xc259('0xc'),'attributes':['id','name']}]},{'model':'DeskField','as':'Descriptions','attributes':['id',_0xc259('0x5'),_0xc259('0xa'),_0xc259('0xd'),_0xc259('0xe'),_0xc259('0xf'),_0xc259('0xb')],'include':[{'model':_0xc259('0xc'),'as':_0xc259('0xc'),'attributes':['id',_0xc259('0x9')]}]},{'model':_0xc259('0x10'),'as':'Fields','attributes':['id',_0xc259('0x5'),_0xc259('0xa'),_0xc259('0x11'),_0xc259('0x12'),_0xc259('0x13'),_0xc259('0xb')],'include':[{'model':_0xc259('0xc'),'as':_0xc259('0xc'),'attributes':['id','name']}]},{'model':_0xc259('0x14'),'as':'Tags','attributes':['id',_0xc259('0x9')]}]}]},'log':_0xc259('0x15')});};};