Built motion from commit 91ed41ac.|2.5.44
[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 _0x2f79=['name','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','VtigerField','Subjects','type','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','customField','getVtigerAccounts','GetVtigerAccount'];(function(_0x360b08,_0x293036){var _0x489986=function(_0x3c0947){while(--_0x3c0947){_0x360b08['push'](_0x360b08['shift']());}};_0x489986(++_0x293036);}(_0x2f79,0xa6));var _0x92f7=function(_0x1af24a,_0x806129){_0x1af24a=_0x1af24a-0x0;var _0x5ca014=_0x2f79[_0x1af24a];return _0x5ca014;};'use strict';var client=require('../../client');exports[_0x92f7('0x0')]=function(){return function(_0x5d3ae5){return client['Request'](_0x92f7('0x1'),{'options':{'raw':![],'attributes':['id',_0x92f7('0x2'),_0x92f7('0x3'),_0x92f7('0x4'),_0x92f7('0x5'),_0x92f7('0x6'),_0x92f7('0x7')],'include':[{'model':_0x92f7('0x8'),'as':'Configurations','attributes':['id',_0x92f7('0x2')],'include':[{'model':_0x92f7('0x9'),'as':_0x92f7('0xa'),'attributes':['id',_0x92f7('0xb'),_0x92f7('0xc'),_0x92f7('0xd')],'include':[{'model':_0x92f7('0xe'),'as':_0x92f7('0xe'),'attributes':['id',_0x92f7('0x2')]}]},{'model':_0x92f7('0x9'),'as':_0x92f7('0xf'),'attributes':['id',_0x92f7('0xb'),_0x92f7('0xc'),'key',_0x92f7('0x10'),_0x92f7('0x11'),_0x92f7('0xd')],'include':[{'model':_0x92f7('0xe'),'as':_0x92f7('0xe'),'attributes':['id',_0x92f7('0x2')]}]},{'model':'VtigerField','as':_0x92f7('0x12'),'attributes':['id',_0x92f7('0xb'),_0x92f7('0xc'),_0x92f7('0x13'),'nameField',_0x92f7('0x14'),'variableName'],'include':[{'model':_0x92f7('0xe'),'as':_0x92f7('0xe'),'attributes':['id',_0x92f7('0x2')]}]}]}]},'log':_0x92f7('0x1')});};};