Built motion from commit 936e8062.|2.5.33
[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 _0x919d=['content','variableName','Variable','Descriptions','key','keyContent','idField','nameField','customField','GetZendeskAccount','../../client','Request','name','username','authType','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0x919d,0xf1));var _0xd919=function(_0x1cdd4e,_0x57a653){_0x1cdd4e=_0x1cdd4e-0x0;var _0x48a29=_0x919d[_0x1cdd4e];return _0x48a29;};'use strict';var client=require(_0xd919('0x0'));exports['getZendeskAccounts']=function(){return function(_0x1babe0){return client[_0xd919('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0xd919('0x2'),_0xd919('0x3'),'password','token','remoteUri',_0xd919('0x4'),'serverUrl',_0xd919('0x5')],'include':[{'model':_0xd919('0x6'),'as':_0xd919('0x7'),'attributes':['id',_0xd919('0x2')],'include':[{'model':_0xd919('0x8'),'attributes':['id',_0xd919('0x2')]},{'model':_0xd919('0x9'),'as':_0xd919('0xa'),'attributes':['id',_0xd919('0x5'),_0xd919('0xb'),_0xd919('0xc')],'include':[{'model':_0xd919('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0xd919('0x9'),'as':_0xd919('0xe'),'attributes':['id','type',_0xd919('0xb'),_0xd919('0xf'),'keyType',_0xd919('0x10'),_0xd919('0xc')],'include':[{'model':_0xd919('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':'ZendeskField','as':'Fields','attributes':['id',_0xd919('0x5'),'content',_0xd919('0x11'),_0xd919('0x12'),_0xd919('0x13'),'variableName'],'include':[{'model':_0xd919('0xd'),'as':_0xd919('0xd'),'attributes':['id',_0xd919('0x2')]}]}]}]},'log':_0xd919('0x14')});};};