480c46f2b3e9c3901019dc0d07bd1dbedb99d6e1
[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 _0x52a0=['GetZendeskAccount','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','Variable','Descriptions','key','keyType','variableName','Fields','content','idField','nameField','customField','../../client','getZendeskAccounts'];(function(_0x9517ad,_0x1711ab){var _0x468d78=function(_0x150b26){while(--_0x150b26){_0x9517ad['push'](_0x9517ad['shift']());}};_0x468d78(++_0x1711ab);}(_0x52a0,0x1d2));var _0x052a=function(_0x5d4876,_0x11e6b0){_0x5d4876=_0x5d4876-0x0;var _0x6927ac=_0x52a0[_0x5d4876];return _0x6927ac;};'use strict';var client=require(_0x052a('0x0'));exports[_0x052a('0x1')]=function(){return function(_0x2c6f59){return client['Request'](_0x052a('0x2'),{'options':{'raw':![],'attributes':['id',_0x052a('0x3'),_0x052a('0x4'),_0x052a('0x5'),_0x052a('0x6'),_0x052a('0x7'),_0x052a('0x8'),_0x052a('0x9'),_0x052a('0xa')],'include':[{'model':_0x052a('0xb'),'as':_0x052a('0xc'),'attributes':['id',_0x052a('0x3')],'include':[{'model':_0x052a('0xd'),'attributes':['id',_0x052a('0x3')]},{'model':_0x052a('0xe'),'as':_0x052a('0xf'),'attributes':['id',_0x052a('0xa'),'content','variableName'],'include':[{'model':'Variable','as':_0x052a('0x10'),'attributes':['id',_0x052a('0x3')]}]},{'model':'ZendeskField','as':_0x052a('0x11'),'attributes':['id','type','content',_0x052a('0x12'),_0x052a('0x13'),'keyContent',_0x052a('0x14')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x052a('0xe'),'as':_0x052a('0x15'),'attributes':['id',_0x052a('0xa'),_0x052a('0x16'),_0x052a('0x17'),_0x052a('0x18'),_0x052a('0x19'),_0x052a('0x14')],'include':[{'model':_0x052a('0x10'),'as':_0x052a('0x10'),'attributes':['id',_0x052a('0x3')]}]}]}]},'log':_0x052a('0x2')});};};