Built motion from commit 97153652.|2.6.26
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x2987=['customField','../../client','getVtigerAccounts','Request','GetVtigerAccount','name','description','VtigerConfiguration','Configurations','VtigerField','Subjects','variableName','Variable','Descriptions','content','key','keyContent','Fields','type','idField','nameField'];(function(_0x541260,_0x4c7f2e){var _0x1dd2b5=function(_0x4140de){while(--_0x4140de){_0x541260['push'](_0x541260['shift']());}};_0x1dd2b5(++_0x4c7f2e);}(_0x2987,0xfd));var _0x7298=function(_0x259e77,_0x52f430){_0x259e77=_0x259e77-0x0;var _0x1f93bd=_0x2987[_0x259e77];return _0x1f93bd;};'use strict';var client=require(_0x7298('0x0'));exports[_0x7298('0x1')]=function(){return function(_0x5e766c){return client[_0x7298('0x2')](_0x7298('0x3'),{'options':{'raw':![],'attributes':['id',_0x7298('0x4'),_0x7298('0x5'),'username','accessKey','remoteUri','serverUrl'],'include':[{'model':_0x7298('0x6'),'as':_0x7298('0x7'),'attributes':['id',_0x7298('0x4')],'include':[{'model':_0x7298('0x8'),'as':_0x7298('0x9'),'attributes':['id','type','content',_0x7298('0xa')],'include':[{'model':_0x7298('0xb'),'as':'Variable','attributes':['id',_0x7298('0x4')]}]},{'model':_0x7298('0x8'),'as':_0x7298('0xc'),'attributes':['id','type',_0x7298('0xd'),_0x7298('0xe'),'keyType',_0x7298('0xf'),'variableName'],'include':[{'model':_0x7298('0xb'),'as':_0x7298('0xb'),'attributes':['id','name']}]},{'model':'VtigerField','as':_0x7298('0x10'),'attributes':['id',_0x7298('0x11'),_0x7298('0xd'),_0x7298('0x12'),_0x7298('0x13'),_0x7298('0x14'),_0x7298('0xa')],'include':[{'model':_0x7298('0xb'),'as':_0x7298('0xb'),'attributes':['id',_0x7298('0x4')]}]}]}]},'log':_0x7298('0x3')});};};