2e272ed8ffc7cd173e799ace107be5af5f7a4fc2
[motion2.git] / server / api / intDeskField / intDeskField.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 _0xe200=['./intDeskField.attributes','exports','define','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','rimraf','../../config/environment'];(function(_0x2080a3,_0x48acfa){var _0x8d7d17=function(_0x2dbc06){while(--_0x2dbc06){_0x2080a3['push'](_0x2080a3['shift']());}};_0x8d7d17(++_0x48acfa);}(_0xe200,0x7f));var _0x0e20=function(_0x4d1f50,_0x292f3c){_0x4d1f50=_0x4d1f50-0x0;var _0x5576d7=_0xe200[_0x4d1f50];return _0x5576d7;};'use strict';var _=require(_0x0e20('0x0'));var util=require(_0x0e20('0x1'));var logger=require(_0x0e20('0x2'))(_0x0e20('0x3'));var moment=require(_0x0e20('0x4'));var BPromise=require(_0x0e20('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x0e20('0x6'));var config=require(_0x0e20('0x7'));var attributes=require(_0x0e20('0x8'));module[_0x0e20('0x9')]=function(_0x31f066,_0x521241){return _0x31f066[_0x0e20('0xa')]('DeskField',attributes,{'tableName':_0x0e20('0xb'),'paranoid':![],'indexes':[{'name':_0x0e20('0xc'),'fields':[_0x0e20('0xd'),_0x0e20('0xe')],'unique':!![]}],'timestamps':!![]});};