Built motion from commit e1760111.|2.6.18
[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 _0x7a4b=['ZendeskField','Subjects','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','idField','nameField','customField','../../client','getZendeskAccounts','GetZendeskAccount','name','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Tag'];(function(_0x5bc332,_0x330e02){var _0x5ea3df=function(_0x113d43){while(--_0x113d43){_0x5bc332['push'](_0x5bc332['shift']());}};_0x5ea3df(++_0x330e02);}(_0x7a4b,0x1bd));var _0xb7a4=function(_0x37e9cc,_0x4a09aa){_0x37e9cc=_0x37e9cc-0x0;var _0x25b9d7=_0x7a4b[_0x37e9cc];return _0x25b9d7;};'use strict';var client=require(_0xb7a4('0x0'));exports[_0xb7a4('0x1')]=function(){return function(_0x3fc42d){return client['Request'](_0xb7a4('0x2'),{'options':{'raw':![],'attributes':['id',_0xb7a4('0x3'),'username','password',_0xb7a4('0x4'),_0xb7a4('0x5'),_0xb7a4('0x6'),_0xb7a4('0x7'),_0xb7a4('0x8')],'include':[{'model':_0xb7a4('0x9'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xb7a4('0xa'),'attributes':['id','name']},{'model':_0xb7a4('0xb'),'as':_0xb7a4('0xc'),'attributes':['id',_0xb7a4('0x8'),_0xb7a4('0xd'),'variableName'],'include':[{'model':_0xb7a4('0xe'),'as':'Variable','attributes':['id',_0xb7a4('0x3')]}]},{'model':'ZendeskField','as':_0xb7a4('0xf'),'attributes':['id',_0xb7a4('0x8'),_0xb7a4('0xd'),_0xb7a4('0x10'),_0xb7a4('0x11'),_0xb7a4('0x12'),_0xb7a4('0x13')],'include':[{'model':_0xb7a4('0xe'),'as':_0xb7a4('0xe'),'attributes':['id',_0xb7a4('0x3')]}]},{'model':_0xb7a4('0xb'),'as':_0xb7a4('0x14'),'attributes':['id','type','content',_0xb7a4('0x15'),_0xb7a4('0x16'),_0xb7a4('0x17'),_0xb7a4('0x13')],'include':[{'model':_0xb7a4('0xe'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xb7a4('0x2')});};};