Built motion from commit da617fac.|2.6.6
[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 _0x85a1=['keyContent','Fields','idField','nameField','customField','../../client','getZendeskAccounts','GetZendeskAccount','name','password','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Tag','ZendeskField','Subjects','content','variableName','Variable','keyType'];(function(_0xfb4171,_0x35bab3){var _0x34a3d7=function(_0x1c3a80){while(--_0x1c3a80){_0xfb4171['push'](_0xfb4171['shift']());}};_0x34a3d7(++_0x35bab3);}(_0x85a1,0xf7));var _0x185a=function(_0x29cec8,_0x308327){_0x29cec8=_0x29cec8-0x0;var _0x469408=_0x85a1[_0x29cec8];return _0x469408;};'use strict';var client=require(_0x185a('0x0'));exports[_0x185a('0x1')]=function(){return function(_0xee6e10){return client['Request'](_0x185a('0x2'),{'options':{'raw':![],'attributes':['id',_0x185a('0x3'),'username',_0x185a('0x4'),'token',_0x185a('0x5'),_0x185a('0x6'),_0x185a('0x7'),_0x185a('0x8')],'include':[{'model':_0x185a('0x9'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x185a('0xa'),'attributes':['id','name']},{'model':_0x185a('0xb'),'as':_0x185a('0xc'),'attributes':['id',_0x185a('0x8'),_0x185a('0xd'),_0x185a('0xe')],'include':[{'model':_0x185a('0xf'),'as':_0x185a('0xf'),'attributes':['id',_0x185a('0x3')]}]},{'model':_0x185a('0xb'),'as':'Descriptions','attributes':['id','type',_0x185a('0xd'),'key',_0x185a('0x10'),_0x185a('0x11'),_0x185a('0xe')],'include':[{'model':_0x185a('0xf'),'as':_0x185a('0xf'),'attributes':['id','name']}]},{'model':_0x185a('0xb'),'as':_0x185a('0x12'),'attributes':['id',_0x185a('0x8'),_0x185a('0xd'),_0x185a('0x13'),_0x185a('0x14'),_0x185a('0x15'),_0x185a('0xe')],'include':[{'model':'Variable','as':_0x185a('0xf'),'attributes':['id',_0x185a('0x3')]}]}]}]},'log':_0x185a('0x2')});};};