Built motion from commit (unavailable).|2.5.3
[motion2.git] / server / api / intZendeskField / intZendeskField.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 _0x3f9b=['./intZendeskField.attributes','exports','define','ZendeskField','int_zendesk_fields','zendesk_unique_index','../../config/logger','moment','bluebird','../../config/environment'];(function(_0xb5fc3e,_0x234703){var _0x2efc3c=function(_0x4e4e44){while(--_0x4e4e44){_0xb5fc3e['push'](_0xb5fc3e['shift']());}};_0x2efc3c(++_0x234703);}(_0x3f9b,0x11e));var _0xb3f9=function(_0x38f821,_0x186f35){_0x38f821=_0x38f821-0x0;var _0x508a69=_0x3f9b[_0x38f821];return _0x508a69;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xb3f9('0x0'))('api');var moment=require(_0xb3f9('0x1'));var BPromise=require(_0xb3f9('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xb3f9('0x3'));var attributes=require(_0xb3f9('0x4'));module[_0xb3f9('0x5')]=function(_0x57c82f,_0x26b29c){return _0x57c82f[_0xb3f9('0x6')](_0xb3f9('0x7'),attributes,{'tableName':_0xb3f9('0x8'),'paranoid':![],'indexes':[{'name':_0xb3f9('0x9'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};