Built motion from commit (unavailable).|2.5.24
[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 _0x6001=['content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','GetZendeskAccount','../../client','name','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects'];(function(_0x5ba77f,_0x1e1851){var _0x21bf2c=function(_0x10873c){while(--_0x10873c){_0x5ba77f['push'](_0x5ba77f['shift']());}};_0x21bf2c(++_0x1e1851);}(_0x6001,0x12c));var _0x1600=function(_0x3bb854,_0x2fa23e){_0x3bb854=_0x3bb854-0x0;var _0x2ea95e=_0x6001[_0x3bb854];return _0x2ea95e;};'use strict';var client=require(_0x1600('0x0'));exports['getZendeskAccounts']=function(){return function(_0x921867){return client['Request']('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x1600('0x1'),'username','password',_0x1600('0x2'),_0x1600('0x3'),_0x1600('0x4'),_0x1600('0x5'),_0x1600('0x6')],'include':[{'model':_0x1600('0x7'),'as':_0x1600('0x8'),'attributes':['id',_0x1600('0x1')],'include':[{'model':_0x1600('0x9'),'attributes':['id','name']},{'model':_0x1600('0xa'),'as':_0x1600('0xb'),'attributes':['id',_0x1600('0x6'),_0x1600('0xc'),_0x1600('0xd')],'include':[{'model':_0x1600('0xe'),'as':_0x1600('0xe'),'attributes':['id',_0x1600('0x1')]}]},{'model':'ZendeskField','as':_0x1600('0xf'),'attributes':['id',_0x1600('0x6'),_0x1600('0xc'),_0x1600('0x10'),_0x1600('0x11'),_0x1600('0x12'),_0x1600('0xd')],'include':[{'model':'Variable','as':_0x1600('0xe'),'attributes':['id',_0x1600('0x1')]}]},{'model':_0x1600('0xa'),'as':_0x1600('0x13'),'attributes':['id',_0x1600('0x6'),_0x1600('0xc'),_0x1600('0x14'),_0x1600('0x15'),_0x1600('0x16'),_0x1600('0xd')],'include':[{'model':_0x1600('0xe'),'as':_0x1600('0xe'),'attributes':['id',_0x1600('0x1')]}]}]}]},'log':_0x1600('0x17')});};};