641f3026ec1e497dbca11fe266c2d2d00625121b
[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 _0xdefc=['./intFreshdeskField.attributes','exports','FreshdeskField','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment'];(function(_0x19df6a,_0x55d5d9){var _0x8376d4=function(_0x7a3f59){while(--_0x7a3f59){_0x19df6a['push'](_0x19df6a['shift']());}};_0x8376d4(++_0x55d5d9);}(_0xdefc,0x1b3));var _0xcdef=function(_0x37a06f,_0x4062f7){_0x37a06f=_0x37a06f-0x0;var _0x54b1ca=_0xdefc[_0x37a06f];return _0x54b1ca;};'use strict';var _=require(_0xcdef('0x0'));var util=require(_0xcdef('0x1'));var logger=require(_0xcdef('0x2'))('api');var moment=require('moment');var BPromise=require(_0xcdef('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xcdef('0x4'));var rimraf=require(_0xcdef('0x5'));var config=require(_0xcdef('0x6'));var attributes=require(_0xcdef('0x7'));module[_0xcdef('0x8')]=function(_0x107383,_0x269261){return _0x107383['define'](_0xcdef('0x9'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0xcdef('0xa'),'fields':[_0xcdef('0xb'),_0xcdef('0xc')],'unique':!![]}],'timestamps':!![]});};