Built motion from commit cb845558.|2.6.34
[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 _0xf8e6=['FieldId','lodash','util','../../config/logger','api','path','rimraf','../../config/environment','./intZendeskField.attributes','exports','int_zendesk_fields','zendesk_unique_index'];(function(_0x3327e2,_0x251554){var _0x59fb5c=function(_0xf092ac){while(--_0xf092ac){_0x3327e2['push'](_0x3327e2['shift']());}};_0x59fb5c(++_0x251554);}(_0xf8e6,0xc1));var _0x6f8e=function(_0x3eed2b,_0x2da4e6){_0x3eed2b=_0x3eed2b-0x0;var _0xd4b2ec=_0xf8e6[_0x3eed2b];return _0xd4b2ec;};'use strict';var _=require(_0x6f8e('0x0'));var util=require(_0x6f8e('0x1'));var logger=require(_0x6f8e('0x2'))(_0x6f8e('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x6f8e('0x4'));var rimraf=require(_0x6f8e('0x5'));var config=require(_0x6f8e('0x6'));var attributes=require(_0x6f8e('0x7'));module[_0x6f8e('0x8')]=function(_0x4a1671,_0x1b7ff2){return _0x4a1671['define']('ZendeskField',attributes,{'tableName':_0x6f8e('0x9'),'paranoid':![],'indexes':[{'name':_0x6f8e('0xa'),'fields':['idField',_0x6f8e('0xb')],'unique':!![]}],'timestamps':!![]});};