Built motion from commit (unavailable).|2.5.11
[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 _0xa29c=['DeskField','int_desk_fields','idField','FieldId','api','moment','bluebird','request-promise','path','rimraf','exports'];(function(_0x358b71,_0xd4ee77){var _0x2725d3=function(_0x1df4fd){while(--_0x1df4fd){_0x358b71['push'](_0x358b71['shift']());}};_0x2725d3(++_0xd4ee77);}(_0xa29c,0x122));var _0xca29=function(_0x1b363a,_0x48f07b){_0x1b363a=_0x1b363a-0x0;var _0x364c22=_0xa29c[_0x1b363a];return _0x364c22;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xca29('0x0'));var moment=require(_0xca29('0x1'));var BPromise=require(_0xca29('0x2'));var rp=require(_0xca29('0x3'));var fs=require('fs');var path=require(_0xca29('0x4'));var rimraf=require(_0xca29('0x5'));var config=require('../../config/environment');var attributes=require('./intDeskField.attributes');module[_0xca29('0x6')]=function(_0x58915f,_0x484718){return _0x58915f['define'](_0xca29('0x7'),attributes,{'tableName':_0xca29('0x8'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0xca29('0x9'),_0xca29('0xa')],'unique':!![]}],'timestamps':!![]});};