Built motion from commit 3a7e82ea.|2.6.29
[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 _0xf476=['key','keyType','keyContent','Fields','idField','customField','../../client','getZendeskAccounts','GetZendeskAccount','name','username','password','token','authType','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','variableName','Variable','Descriptions','content'];(function(_0x30c7c5,_0x168208){var _0x29e24e=function(_0x427d3e){while(--_0x427d3e){_0x30c7c5['push'](_0x30c7c5['shift']());}};_0x29e24e(++_0x168208);}(_0xf476,0xd5));var _0x6f47=function(_0xfd8a6c,_0x127711){_0xfd8a6c=_0xfd8a6c-0x0;var _0x1bbe63=_0xf476[_0xfd8a6c];return _0x1bbe63;};'use strict';var client=require(_0x6f47('0x0'));exports[_0x6f47('0x1')]=function(){return function(_0x1ef8e4){return client['Request'](_0x6f47('0x2'),{'options':{'raw':![],'attributes':['id',_0x6f47('0x3'),_0x6f47('0x4'),_0x6f47('0x5'),_0x6f47('0x6'),'remoteUri',_0x6f47('0x7'),'serverUrl',_0x6f47('0x8')],'include':[{'model':_0x6f47('0x9'),'as':_0x6f47('0xa'),'attributes':['id',_0x6f47('0x3')],'include':[{'model':_0x6f47('0xb'),'attributes':['id',_0x6f47('0x3')]},{'model':_0x6f47('0xc'),'as':'Subjects','attributes':['id',_0x6f47('0x8'),'content',_0x6f47('0xd')],'include':[{'model':_0x6f47('0xe'),'as':'Variable','attributes':['id',_0x6f47('0x3')]}]},{'model':_0x6f47('0xc'),'as':_0x6f47('0xf'),'attributes':['id',_0x6f47('0x8'),_0x6f47('0x10'),_0x6f47('0x11'),_0x6f47('0x12'),_0x6f47('0x13'),_0x6f47('0xd')],'include':[{'model':_0x6f47('0xe'),'as':_0x6f47('0xe'),'attributes':['id',_0x6f47('0x3')]}]},{'model':_0x6f47('0xc'),'as':_0x6f47('0x14'),'attributes':['id',_0x6f47('0x8'),_0x6f47('0x10'),_0x6f47('0x15'),'nameField',_0x6f47('0x16'),_0x6f47('0xd')],'include':[{'model':_0x6f47('0xe'),'as':'Variable','attributes':['id','name']}]}]}]},'log':'GetZendeskAccount'});};};