Built motion from commit (unavailable).|2.5.1
[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 _0x793b=['int_freshsales_fields','freshsales_unique_index','FieldId','lodash','util','../../config/logger','api','request-promise','rimraf','./intFreshsalesField.attributes','FreshsalesField'];(function(_0x2d7df2,_0x5705a8){var _0x55906e=function(_0x5a306d){while(--_0x5a306d){_0x2d7df2['push'](_0x2d7df2['shift']());}};_0x55906e(++_0x5705a8);}(_0x793b,0x1f2));var _0xb793=function(_0x4ddf4d,_0x4cc1f6){_0x4ddf4d=_0x4ddf4d-0x0;var _0x11cd7c=_0x793b[_0x4ddf4d];return _0x11cd7c;};'use strict';var _=require(_0xb793('0x0'));var util=require(_0xb793('0x1'));var logger=require(_0xb793('0x2'))(_0xb793('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xb793('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb793('0x5'));var config=require('../../config/environment');var attributes=require(_0xb793('0x6'));module['exports']=function(_0x4ce4cd,_0x410084){return _0x4ce4cd['define'](_0xb793('0x7'),attributes,{'tableName':_0xb793('0x8'),'paranoid':![],'indexes':[{'name':_0xb793('0x9'),'fields':['idField',_0xb793('0xa')],'unique':!![]}],'timestamps':!![]});};