Built motion from commit (unavailable).|2.5.26
[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 _0xde17=['exports','SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index','idField','FieldId','lodash','util','../../config/logger','api','bluebird','path','rimraf','../../config/environment','./intSugarcrmField.attributes'];(function(_0x2850c0,_0x1363a7){var _0x21e830=function(_0x3ec70a){while(--_0x3ec70a){_0x2850c0['push'](_0x2850c0['shift']());}};_0x21e830(++_0x1363a7);}(_0xde17,0x19b));var _0x7de1=function(_0x1cf529,_0x3bc3cc){_0x1cf529=_0x1cf529-0x0;var _0x26e475=_0xde17[_0x1cf529];return _0x26e475;};'use strict';var _=require(_0x7de1('0x0'));var util=require(_0x7de1('0x1'));var logger=require(_0x7de1('0x2'))(_0x7de1('0x3'));var moment=require('moment');var BPromise=require(_0x7de1('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7de1('0x5'));var rimraf=require(_0x7de1('0x6'));var config=require(_0x7de1('0x7'));var attributes=require(_0x7de1('0x8'));module[_0x7de1('0x9')]=function(_0x228623,_0x2c562c){return _0x228623['define'](_0x7de1('0xa'),attributes,{'tableName':_0x7de1('0xb'),'paranoid':![],'indexes':[{'name':_0x7de1('0xc'),'fields':[_0x7de1('0xd'),_0x7de1('0xe')],'unique':!![]}],'timestamps':!![]});};