Built motion from commit 4fa9d4a7.|2.6.31
[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 _0xbfb1=['content','variableName','Variable','keyContent','Fields','nameField','customField','GetZendeskAccount','../../client','Request','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','name','ZendeskField','Subjects'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xbfb1,0x1d4));var _0x1bfb=function(_0x2b9af6,_0x475a9b){_0x2b9af6=_0x2b9af6-0x0;var _0x20ed39=_0xbfb1[_0x2b9af6];return _0x20ed39;};'use strict';var client=require(_0x1bfb('0x0'));exports['getZendeskAccounts']=function(){return function(_0x463ad4){return client[_0x1bfb('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id','name',_0x1bfb('0x2'),_0x1bfb('0x3'),_0x1bfb('0x4'),_0x1bfb('0x5'),_0x1bfb('0x6'),_0x1bfb('0x7'),_0x1bfb('0x8')],'include':[{'model':_0x1bfb('0x9'),'as':_0x1bfb('0xa'),'attributes':['id','name'],'include':[{'model':_0x1bfb('0xb'),'attributes':['id',_0x1bfb('0xc')]},{'model':_0x1bfb('0xd'),'as':_0x1bfb('0xe'),'attributes':['id','type',_0x1bfb('0xf'),_0x1bfb('0x10')],'include':[{'model':_0x1bfb('0x11'),'as':_0x1bfb('0x11'),'attributes':['id',_0x1bfb('0xc')]}]},{'model':_0x1bfb('0xd'),'as':'Descriptions','attributes':['id',_0x1bfb('0x8'),'content','key','keyType',_0x1bfb('0x12'),'variableName'],'include':[{'model':_0x1bfb('0x11'),'as':_0x1bfb('0x11'),'attributes':['id',_0x1bfb('0xc')]}]},{'model':_0x1bfb('0xd'),'as':_0x1bfb('0x13'),'attributes':['id',_0x1bfb('0x8'),_0x1bfb('0xf'),'idField',_0x1bfb('0x14'),_0x1bfb('0x15'),_0x1bfb('0x10')],'include':[{'model':_0x1bfb('0x11'),'as':'Variable','attributes':['id',_0x1bfb('0xc')]}]}]}]},'log':_0x1bfb('0x16')});};};