4df75ce76e299e9c04d9c79f99d7df6fa0c48302
[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 _0x5167=['GetZendeskAccount','getZendeskAccounts','Request','name','username','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','content','variableName','Variable','keyType','Fields','idField','nameField'];(function(_0x2388cf,_0xfc03ea){var _0x3ddeea=function(_0x2bd03b){while(--_0x2bd03b){_0x2388cf['push'](_0x2388cf['shift']());}};_0x3ddeea(++_0xfc03ea);}(_0x5167,0x6a));var _0x7516=function(_0xe68a82,_0x4aef64){_0xe68a82=_0xe68a82-0x0;var _0xf5c329=_0x5167[_0xe68a82];return _0xf5c329;};'use strict';var client=require('../../client');exports[_0x7516('0x0')]=function(){return function(_0xa4b7bb){return client[_0x7516('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x7516('0x2'),_0x7516('0x3'),'password','token',_0x7516('0x4'),_0x7516('0x5'),_0x7516('0x6'),_0x7516('0x7')],'include':[{'model':_0x7516('0x8'),'as':_0x7516('0x9'),'attributes':['id',_0x7516('0x2')],'include':[{'model':_0x7516('0xa'),'attributes':['id',_0x7516('0x2')]},{'model':_0x7516('0xb'),'as':_0x7516('0xc'),'attributes':['id',_0x7516('0x7'),_0x7516('0xd'),_0x7516('0xe')],'include':[{'model':_0x7516('0xf'),'as':'Variable','attributes':['id',_0x7516('0x2')]}]},{'model':_0x7516('0xb'),'as':'Descriptions','attributes':['id',_0x7516('0x7'),'content','key',_0x7516('0x10'),'keyContent','variableName'],'include':[{'model':'Variable','as':_0x7516('0xf'),'attributes':['id','name']}]},{'model':_0x7516('0xb'),'as':_0x7516('0x11'),'attributes':['id','type','content',_0x7516('0x12'),_0x7516('0x13'),'customField',_0x7516('0xe')],'include':[{'model':_0x7516('0xf'),'as':_0x7516('0xf'),'attributes':['id',_0x7516('0x2')]}]}]}]},'log':_0x7516('0x14')});};};