Built motion from commit 838c2833.|2.6.24
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0x49db=['FieldId','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','./intFreshsalesField.attributes','define','FreshsalesField','freshsales_unique_index','idField'];(function(_0xf029ca,_0x2a1149){var _0x563033=function(_0x598cf5){while(--_0x598cf5){_0xf029ca['push'](_0xf029ca['shift']());}};_0x563033(++_0x2a1149);}(_0x49db,0xc5));var _0xb49d=function(_0xb5cc22,_0x2d110c){_0xb5cc22=_0xb5cc22-0x0;var _0x1bb6a9=_0x49db[_0xb5cc22];return _0x1bb6a9;};'use strict';var _=require(_0xb49d('0x0'));var util=require(_0xb49d('0x1'));var logger=require(_0xb49d('0x2'))(_0xb49d('0x3'));var moment=require(_0xb49d('0x4'));var BPromise=require('bluebird');var rp=require(_0xb49d('0x5'));var fs=require('fs');var path=require(_0xb49d('0x6'));var rimraf=require(_0xb49d('0x7'));var config=require('../../config/environment');var attributes=require(_0xb49d('0x8'));module['exports']=function(_0x4c6887,_0x144a9a){return _0x4c6887[_0xb49d('0x9')](_0xb49d('0xa'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0xb49d('0xb'),'fields':[_0xb49d('0xc'),_0xb49d('0xd')],'unique':!![]}],'timestamps':!![]});};