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 _0xd52d=['Configurations','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyContent','nameField','customField','name','Tags','GetDeskAccount','getDeskAccounts','Request','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration'];(function(_0x4ef6d1,_0x5d725c){var _0x2dfb6b=function(_0x4f9c84){while(--_0x4f9c84){_0x4ef6d1['push'](_0x4ef6d1['shift']());}};_0x2dfb6b(++_0x5d725c);}(_0xd52d,0x1f1));var _0xdd52=function(_0x1c3561,_0x230830){_0x1c3561=_0x1c3561-0x0;var _0x11652e=_0xd52d[_0x1c3561];return _0x11652e;};'use strict';var client=require('../../client');exports[_0xdd52('0x0')]=function(){return function(_0x356347){return client[_0xdd52('0x1')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id','name','description',_0xdd52('0x2'),_0xdd52('0x3'),_0xdd52('0x4'),_0xdd52('0x5'),_0xdd52('0x6'),_0xdd52('0x7')],'include':[{'model':_0xdd52('0x8'),'as':_0xdd52('0x9'),'attributes':['id','name'],'include':[{'model':_0xdd52('0xa'),'as':_0xdd52('0xb'),'attributes':['id','type',_0xdd52('0xc'),_0xdd52('0xd')],'include':[{'model':'Variable','as':_0xdd52('0xe'),'attributes':['id','name']}]},{'model':'DeskField','as':_0xdd52('0xf'),'attributes':['id',_0xdd52('0x6'),_0xdd52('0xc'),_0xdd52('0x10'),'keyType',_0xdd52('0x11'),_0xdd52('0xd')],'include':[{'model':_0xdd52('0xe'),'as':_0xdd52('0xe'),'attributes':['id','name']}]},{'model':_0xdd52('0xa'),'as':'Fields','attributes':['id',_0xdd52('0x6'),'content','idField',_0xdd52('0x12'),_0xdd52('0x13'),_0xdd52('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xdd52('0x14')]}]},{'model':'Tag','as':_0xdd52('0x15'),'attributes':['id',_0xdd52('0x14')]}]}]},'log':_0xdd52('0x16')});};};