75503db9b5d4a3ac5f818d50c66d655785bd93cd
[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 _0xca77=['serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','idField','nameField','customField','GetZendeskAccount','../../client','getZendeskAccounts','Request','name','username','token','remoteUri'];(function(_0x486f4a,_0x478dc7){var _0x135d99=function(_0x434008){while(--_0x434008){_0x486f4a['push'](_0x486f4a['shift']());}};_0x135d99(++_0x478dc7);}(_0xca77,0x1ed));var _0x7ca7=function(_0x44caa1,_0x132c27){_0x44caa1=_0x44caa1-0x0;var _0xff656a=_0xca77[_0x44caa1];return _0xff656a;};'use strict';var client=require(_0x7ca7('0x0'));exports[_0x7ca7('0x1')]=function(){return function(_0x25edf0){return client[_0x7ca7('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x7ca7('0x3'),_0x7ca7('0x4'),'password',_0x7ca7('0x5'),_0x7ca7('0x6'),'authType',_0x7ca7('0x7'),_0x7ca7('0x8')],'include':[{'model':_0x7ca7('0x9'),'as':_0x7ca7('0xa'),'attributes':['id',_0x7ca7('0x3')],'include':[{'model':_0x7ca7('0xb'),'attributes':['id',_0x7ca7('0x3')]},{'model':_0x7ca7('0xc'),'as':'Subjects','attributes':['id',_0x7ca7('0x8'),_0x7ca7('0xd'),'variableName'],'include':[{'model':_0x7ca7('0xe'),'as':'Variable','attributes':['id',_0x7ca7('0x3')]}]},{'model':'ZendeskField','as':_0x7ca7('0xf'),'attributes':['id',_0x7ca7('0x8'),'content',_0x7ca7('0x10'),_0x7ca7('0x11'),_0x7ca7('0x12'),_0x7ca7('0x13')],'include':[{'model':'Variable','as':_0x7ca7('0xe'),'attributes':['id',_0x7ca7('0x3')]}]},{'model':'ZendeskField','as':_0x7ca7('0x14'),'attributes':['id','type',_0x7ca7('0xd'),_0x7ca7('0x15'),_0x7ca7('0x16'),_0x7ca7('0x17'),_0x7ca7('0x13')],'include':[{'model':_0x7ca7('0xe'),'as':_0x7ca7('0xe'),'attributes':['id',_0x7ca7('0x3')]}]}]}]},'log':_0x7ca7('0x18')});};};