c4b7a5c04d2fb7067d5082b53c45f1823ba9f9e6
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0x66a1=['type','variableName','Variable','ZohoField','Descriptions','content','key','keyType','keyContent','Fields','idField','nameField','../../client','getZohoAccounts','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','refreshToken','Configurations','moduleCreate','moduleSearch'];(function(_0x72ebdc,_0xebba9d){var _0x14dd5b=function(_0x10e70c){while(--_0x10e70c){_0x72ebdc['push'](_0x72ebdc['shift']());}};_0x14dd5b(++_0xebba9d);}(_0x66a1,0x74));var _0x166a=function(_0x46d797,_0x2abc85){_0x46d797=_0x46d797-0x0;var _0x24f190=_0x66a1[_0x46d797];return _0x24f190;};'use strict';var client=require(_0x166a('0x0'));exports[_0x166a('0x1')]=function(){return function(_0x4d43e5){return client['Request'](_0x166a('0x2'),{'options':{'raw':![],'attributes':['id',_0x166a('0x3'),_0x166a('0x4'),_0x166a('0x5'),_0x166a('0x6'),_0x166a('0x7'),_0x166a('0x8'),_0x166a('0x9'),'code',_0x166a('0xa')],'include':[{'model':'ZohoConfiguration','as':_0x166a('0xb'),'attributes':['id',_0x166a('0x3'),_0x166a('0xc'),_0x166a('0xd'),_0x166a('0x4')],'include':[{'model':'ZohoField','as':'Subjects','attributes':['id',_0x166a('0xe'),'content',_0x166a('0xf')],'include':[{'model':_0x166a('0x10'),'as':_0x166a('0x10'),'attributes':['id','name']}]},{'model':_0x166a('0x11'),'as':_0x166a('0x12'),'attributes':['id',_0x166a('0xe'),_0x166a('0x13'),_0x166a('0x14'),_0x166a('0x15'),_0x166a('0x16'),_0x166a('0xf')],'include':[{'model':_0x166a('0x10'),'as':_0x166a('0x10'),'attributes':['id',_0x166a('0x3')]}]},{'model':_0x166a('0x11'),'as':_0x166a('0x17'),'attributes':['id',_0x166a('0xe'),_0x166a('0x13'),_0x166a('0x18'),_0x166a('0x19'),'customField',_0x166a('0xf')],'include':[{'model':_0x166a('0x10'),'as':_0x166a('0x10'),'attributes':['id',_0x166a('0x3')]}]}]}]},'log':_0x166a('0x2')});};};