Built motion from commit (unavailable).|2.5.18
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0x998a=['util','../../config/logger','api','moment','bluebird','request-promise','path','./intFreshdeskField.attributes','exports','define','freshdesk_unique_index','FieldId'];(function(_0x4f1d02,_0x4a4694){var _0x52fda1=function(_0x4091fe){while(--_0x4091fe){_0x4f1d02['push'](_0x4f1d02['shift']());}};_0x52fda1(++_0x4a4694);}(_0x998a,0xb4));var _0xa998=function(_0xe0eac4,_0x14791b){_0xe0eac4=_0xe0eac4-0x0;var _0x38419b=_0x998a[_0xe0eac4];return _0x38419b;};'use strict';var _=require('lodash');var util=require(_0xa998('0x0'));var logger=require(_0xa998('0x1'))(_0xa998('0x2'));var moment=require(_0xa998('0x3'));var BPromise=require(_0xa998('0x4'));var rp=require(_0xa998('0x5'));var fs=require('fs');var path=require(_0xa998('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xa998('0x7'));module[_0xa998('0x8')]=function(_0x12a390,_0x2a8f35){return _0x12a390[_0xa998('0x9')]('FreshdeskField',attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0xa998('0xa'),'fields':['idField',_0xa998('0xb')],'unique':!![]}],'timestamps':!![]});};