f6c55b0382ff543479178d30234c72f40b74cfaa
[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 _0x6b19=['FieldId','lodash','util','api','request-promise','path','rimraf','../../config/environment','./intFreshdeskField.attributes','define','freshdesk_unique_index'];(function(_0x5c8614,_0x126dca){var _0x4ca884=function(_0x28543d){while(--_0x28543d){_0x5c8614['push'](_0x5c8614['shift']());}};_0x4ca884(++_0x126dca);}(_0x6b19,0xe8));var _0x96b1=function(_0x1736be,_0x3061d2){_0x1736be=_0x1736be-0x0;var _0x44f4f4=_0x6b19[_0x1736be];return _0x44f4f4;};'use strict';var _=require(_0x96b1('0x0'));var util=require(_0x96b1('0x1'));var logger=require('../../config/logger')(_0x96b1('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x96b1('0x3'));var fs=require('fs');var path=require(_0x96b1('0x4'));var rimraf=require(_0x96b1('0x5'));var config=require(_0x96b1('0x6'));var attributes=require(_0x96b1('0x7'));module['exports']=function(_0x8b5ab8,_0x546193){return _0x8b5ab8[_0x96b1('0x8')]('FreshdeskField',attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x96b1('0x9'),'fields':['idField',_0x96b1('0xa')],'unique':!![]}],'timestamps':!![]});};