Built motion from commit 19a84241.|2.5.34
[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 _0xcd4d=['nameField','customField','getZendeskAccounts','GetZendeskAccount','name','username','password','token','remoteUri','authType','type','ZendeskConfiguration','Configurations','Tag','variableName','Variable','content','key','keyContent','ZendeskField','Fields'];(function(_0x4c7470,_0x560c80){var _0x4d7350=function(_0x3dfbb9){while(--_0x3dfbb9){_0x4c7470['push'](_0x4c7470['shift']());}};_0x4d7350(++_0x560c80);}(_0xcd4d,0x95));var _0xdcd4=function(_0x57ffc,_0x22938e){_0x57ffc=_0x57ffc-0x0;var _0x276cbb=_0xcd4d[_0x57ffc];return _0x276cbb;};'use strict';var client=require('../../client');exports[_0xdcd4('0x0')]=function(){return function(_0x54b044){return client['Request'](_0xdcd4('0x1'),{'options':{'raw':![],'attributes':['id',_0xdcd4('0x2'),_0xdcd4('0x3'),_0xdcd4('0x4'),_0xdcd4('0x5'),_0xdcd4('0x6'),_0xdcd4('0x7'),'serverUrl',_0xdcd4('0x8')],'include':[{'model':_0xdcd4('0x9'),'as':_0xdcd4('0xa'),'attributes':['id','name'],'include':[{'model':_0xdcd4('0xb'),'attributes':['id',_0xdcd4('0x2')]},{'model':'ZendeskField','as':'Subjects','attributes':['id',_0xdcd4('0x8'),'content',_0xdcd4('0xc')],'include':[{'model':_0xdcd4('0xd'),'as':_0xdcd4('0xd'),'attributes':['id','name']}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id',_0xdcd4('0x8'),_0xdcd4('0xe'),_0xdcd4('0xf'),'keyType',_0xdcd4('0x10'),_0xdcd4('0xc')],'include':[{'model':'Variable','as':_0xdcd4('0xd'),'attributes':['id',_0xdcd4('0x2')]}]},{'model':_0xdcd4('0x11'),'as':_0xdcd4('0x12'),'attributes':['id','type',_0xdcd4('0xe'),'idField',_0xdcd4('0x13'),_0xdcd4('0x14'),_0xdcd4('0xc')],'include':[{'model':_0xdcd4('0xd'),'as':_0xdcd4('0xd'),'attributes':['id',_0xdcd4('0x2')]}]}]}]},'log':_0xdcd4('0x1')});};};