Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.model.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 _0x0e39=['util','../../config/logger','api','moment','bluebird','path','../../config/environment','./intSugarcrmField.attributes','exports','define','SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index','idField','FieldId','lodash'];(function(_0x56177f,_0x4b3819){var _0x4c5487=function(_0x3496bb){while(--_0x3496bb){_0x56177f['push'](_0x56177f['shift']());}};_0x4c5487(++_0x4b3819);}(_0x0e39,0xaf));var _0x90e3=function(_0x2b395a,_0x35db69){_0x2b395a=_0x2b395a-0x0;var _0x1beba0=_0x0e39[_0x2b395a];return _0x1beba0;};'use strict';var _=require(_0x90e3('0x0'));var util=require(_0x90e3('0x1'));var logger=require(_0x90e3('0x2'))(_0x90e3('0x3'));var moment=require(_0x90e3('0x4'));var BPromise=require(_0x90e3('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x90e3('0x6'));var rimraf=require('rimraf');var config=require(_0x90e3('0x7'));var attributes=require(_0x90e3('0x8'));module[_0x90e3('0x9')]=function(_0x6ed0d1,_0x447b5f){return _0x6ed0d1[_0x90e3('0xa')](_0x90e3('0xb'),attributes,{'tableName':_0x90e3('0xc'),'paranoid':![],'indexes':[{'name':_0x90e3('0xd'),'fields':[_0x90e3('0xe'),_0x90e3('0xf')],'unique':!![]}],'timestamps':!![]});};