Built motion from commit (unavailable).|2.5.14
[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 _0xf619=['bluebird','rimraf','../../config/environment','./intFreshdeskField.attributes','define','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','util','../../config/logger','moment'];(function(_0x308dfd,_0x287b83){var _0x35415e=function(_0x40ffc0){while(--_0x40ffc0){_0x308dfd['push'](_0x308dfd['shift']());}};_0x35415e(++_0x287b83);}(_0xf619,0x1dd));var _0x9f61=function(_0x24e9b6,_0xd553e9){_0x24e9b6=_0x24e9b6-0x0;var _0x1ac494=_0xf619[_0x24e9b6];return _0x1ac494;};'use strict';var _=require('lodash');var util=require(_0x9f61('0x0'));var logger=require(_0x9f61('0x1'))('api');var moment=require(_0x9f61('0x2'));var BPromise=require(_0x9f61('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x9f61('0x4'));var config=require(_0x9f61('0x5'));var attributes=require(_0x9f61('0x6'));module['exports']=function(_0x56f262,_0x2536c0){return _0x56f262[_0x9f61('0x7')]('FreshdeskField',attributes,{'tableName':_0x9f61('0x8'),'paranoid':![],'indexes':[{'name':_0x9f61('0x9'),'fields':[_0x9f61('0xa'),_0x9f61('0xb')],'unique':!![]}],'timestamps':!![]});};