7a8634700b81b10454334c2f3dfc320b0909c792
[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 _0x1be2=['FieldId','lodash','util','../../config/logger','api','moment','rimraf','./intFreshdeskField.attributes','exports','FreshdeskField','freshdesk_unique_index','idField'];(function(_0x173102,_0x18f218){var _0x4797f9=function(_0x56ffed){while(--_0x56ffed){_0x173102['push'](_0x173102['shift']());}};_0x4797f9(++_0x18f218);}(_0x1be2,0x181));var _0x21be=function(_0x5b9b7e,_0x51b232){_0x5b9b7e=_0x5b9b7e-0x0;var _0x1a1158=_0x1be2[_0x5b9b7e];return _0x1a1158;};'use strict';var _=require(_0x21be('0x0'));var util=require(_0x21be('0x1'));var logger=require(_0x21be('0x2'))(_0x21be('0x3'));var moment=require(_0x21be('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x21be('0x5'));var config=require('../../config/environment');var attributes=require(_0x21be('0x6'));module[_0x21be('0x7')]=function(_0x2bccf5,_0x376603){return _0x2bccf5['define'](_0x21be('0x8'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x21be('0x9'),'fields':[_0x21be('0xa'),_0x21be('0xb')],'unique':!![]}],'timestamps':!![]});};