Built motion from commit (unavailable).|2.5.0
[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 _0x5cd1=['bluebird','path','rimraf','../../config/environment','./intFreshsalesField.attributes','exports','FreshsalesField','int_freshsales_fields','freshsales_unique_index','FieldId','lodash','util','../../config/logger'];(function(_0x3e9b64,_0x240cf1){var _0x3ee1fe=function(_0x3d81ff){while(--_0x3d81ff){_0x3e9b64['push'](_0x3e9b64['shift']());}};_0x3ee1fe(++_0x240cf1);}(_0x5cd1,0x72));var _0x15cd=function(_0x4c22fc,_0x14342d){_0x4c22fc=_0x4c22fc-0x0;var _0x44196a=_0x5cd1[_0x4c22fc];return _0x44196a;};'use strict';var _=require(_0x15cd('0x0'));var util=require(_0x15cd('0x1'));var logger=require(_0x15cd('0x2'))('api');var moment=require('moment');var BPromise=require(_0x15cd('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x15cd('0x4'));var rimraf=require(_0x15cd('0x5'));var config=require(_0x15cd('0x6'));var attributes=require(_0x15cd('0x7'));module[_0x15cd('0x8')]=function(_0x36bf51,_0x5e0348){return _0x36bf51['define'](_0x15cd('0x9'),attributes,{'tableName':_0x15cd('0xa'),'paranoid':![],'indexes':[{'name':_0x15cd('0xb'),'fields':['idField',_0x15cd('0xc')],'unique':!![]}],'timestamps':!![]});};