Built motion from commit e6806ed6.|2.6.0
[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 _0x0e2d=['define','SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index','idField','FieldId','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intSugarcrmField.attributes','exports'];(function(_0x3bc96e,_0x2d38e5){var _0x4dbea4=function(_0xaa9f18){while(--_0xaa9f18){_0x3bc96e['push'](_0x3bc96e['shift']());}};_0x4dbea4(++_0x2d38e5);}(_0x0e2d,0x156));var _0xd0e2=function(_0x22cf0b,_0x568cc4){_0x22cf0b=_0x22cf0b-0x0;var _0x316747=_0x0e2d[_0x22cf0b];return _0x316747;};'use strict';var _=require('lodash');var util=require(_0xd0e2('0x0'));var logger=require(_0xd0e2('0x1'))('api');var moment=require(_0xd0e2('0x2'));var BPromise=require(_0xd0e2('0x3'));var rp=require(_0xd0e2('0x4'));var fs=require('fs');var path=require(_0xd0e2('0x5'));var rimraf=require(_0xd0e2('0x6'));var config=require(_0xd0e2('0x7'));var attributes=require(_0xd0e2('0x8'));module[_0xd0e2('0x9')]=function(_0x196324,_0x1f5096){return _0x196324[_0xd0e2('0xa')](_0xd0e2('0xb'),attributes,{'tableName':_0xd0e2('0xc'),'paranoid':![],'indexes':[{'name':_0xd0e2('0xd'),'fields':[_0xd0e2('0xe'),_0xd0e2('0xf')],'unique':!![]}],'timestamps':!![]});};