5ba0cf5329a981681ce169f88abc5f65a29b0e84
[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 _0xe235=['define','ZendeskField','int_zendesk_fields','FieldId','lodash','util','../../config/logger','moment','path','../../config/environment','./intZendeskField.attributes','exports'];(function(_0x2b4f4c,_0x4520b2){var _0x5aec53=function(_0x3bf8ba){while(--_0x3bf8ba){_0x2b4f4c['push'](_0x2b4f4c['shift']());}};_0x5aec53(++_0x4520b2);}(_0xe235,0x1d8));var _0x5e23=function(_0x28c14f,_0x566182){_0x28c14f=_0x28c14f-0x0;var _0x2271c8=_0xe235[_0x28c14f];return _0x2271c8;};'use strict';var _=require(_0x5e23('0x0'));var util=require(_0x5e23('0x1'));var logger=require(_0x5e23('0x2'))('api');var moment=require(_0x5e23('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x5e23('0x4'));var rimraf=require('rimraf');var config=require(_0x5e23('0x5'));var attributes=require(_0x5e23('0x6'));module[_0x5e23('0x7')]=function(_0x1e86e5,_0x326f1d){return _0x1e86e5[_0x5e23('0x8')](_0x5e23('0x9'),attributes,{'tableName':_0x5e23('0xa'),'paranoid':![],'indexes':[{'name':'zendesk_unique_index','fields':['idField',_0x5e23('0xb')],'unique':!![]}],'timestamps':!![]});};