Built motion from commit 97153652.|2.6.26
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0x1eb3=['customField','GetZendeskAccount','../../client','getZendeskAccounts','Request','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','name','Tag','ZendeskField','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','nameField'];(function(_0xc11d3e,_0x214f55){var _0x1a5541=function(_0x514dbe){while(--_0x514dbe){_0xc11d3e['push'](_0xc11d3e['shift']());}};_0x1a5541(++_0x214f55);}(_0x1eb3,0xd1));var _0x31eb=function(_0x1f84a2,_0x40238c){_0x1f84a2=_0x1f84a2-0x0;var _0x11f63a=_0x1eb3[_0x1f84a2];return _0x11f63a;};'use strict';var client=require(_0x31eb('0x0'));exports[_0x31eb('0x1')]=function(){return function(_0x737bb7){return client[_0x31eb('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id','name','username','password',_0x31eb('0x3'),_0x31eb('0x4'),_0x31eb('0x5'),_0x31eb('0x6'),_0x31eb('0x7')],'include':[{'model':_0x31eb('0x8'),'as':'Configurations','attributes':['id',_0x31eb('0x9')],'include':[{'model':_0x31eb('0xa'),'attributes':['id','name']},{'model':_0x31eb('0xb'),'as':'Subjects','attributes':['id',_0x31eb('0x7'),_0x31eb('0xc'),_0x31eb('0xd')],'include':[{'model':'Variable','as':_0x31eb('0xe'),'attributes':['id',_0x31eb('0x9')]}]},{'model':_0x31eb('0xb'),'as':_0x31eb('0xf'),'attributes':['id',_0x31eb('0x7'),_0x31eb('0xc'),_0x31eb('0x10'),_0x31eb('0x11'),_0x31eb('0x12'),_0x31eb('0xd')],'include':[{'model':_0x31eb('0xe'),'as':_0x31eb('0xe'),'attributes':['id',_0x31eb('0x9')]}]},{'model':'ZendeskField','as':_0x31eb('0x13'),'attributes':['id',_0x31eb('0x7'),_0x31eb('0xc'),'idField',_0x31eb('0x14'),_0x31eb('0x15'),_0x31eb('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x31eb('0x9')]}]}]}]},'log':_0x31eb('0x16')});};};