Built motion from commit bab6f49e.|2.6.17
[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 _0x6e28=['FieldId','../../config/logger','api','path','rimraf','./intSugarcrmField.attributes','exports','define','sugarcrm_unique_index','idField'];(function(_0x26ad4a,_0x9a010b){var _0x5c6149=function(_0x3f32a2){while(--_0x3f32a2){_0x26ad4a['push'](_0x26ad4a['shift']());}};_0x5c6149(++_0x9a010b);}(_0x6e28,0x8d));var _0x86e2=function(_0x49dff7,_0x307ba2){_0x49dff7=_0x49dff7-0x0;var _0x214af8=_0x6e28[_0x49dff7];return _0x214af8;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x86e2('0x0'))(_0x86e2('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x86e2('0x2'));var rimraf=require(_0x86e2('0x3'));var config=require('../../config/environment');var attributes=require(_0x86e2('0x4'));module[_0x86e2('0x5')]=function(_0x1e07d8,_0x58662f){return _0x1e07d8[_0x86e2('0x6')]('SugarcrmField',attributes,{'tableName':'int_sugarcrm_fields','paranoid':![],'indexes':[{'name':_0x86e2('0x7'),'fields':[_0x86e2('0x8'),_0x86e2('0x9')],'unique':!![]}],'timestamps':!![]});};