Built motion from commit (unavailable).|2.5.23
[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 _0xb369=['int_desk_fields','idField','FieldId','lodash','util','api','moment','bluebird','request-promise','path','rimraf','./intDeskField.attributes','exports','DeskField'];(function(_0x1ddcae,_0x4ab650){var _0x2dfc0e=function(_0x347569){while(--_0x347569){_0x1ddcae['push'](_0x1ddcae['shift']());}};_0x2dfc0e(++_0x4ab650);}(_0xb369,0xb9));var _0x9b36=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0xb369[_0x2c91e9];return _0x13f0ff;};'use strict';var _=require(_0x9b36('0x0'));var util=require(_0x9b36('0x1'));var logger=require('../../config/logger')(_0x9b36('0x2'));var moment=require(_0x9b36('0x3'));var BPromise=require(_0x9b36('0x4'));var rp=require(_0x9b36('0x5'));var fs=require('fs');var path=require(_0x9b36('0x6'));var rimraf=require(_0x9b36('0x7'));var config=require('../../config/environment');var attributes=require(_0x9b36('0x8'));module[_0x9b36('0x9')]=function(_0x51aced,_0xd5c1e5){return _0x51aced['define'](_0x9b36('0xa'),attributes,{'tableName':_0x9b36('0xb'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x9b36('0xc'),_0x9b36('0xd')],'unique':!![]}],'timestamps':!![]});};