Built motion from commit (unavailable).|2.5.22
[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 _0x10e1=['util','../../config/logger','api','bluebird','path','rimraf','../../config/environment','./intDeskField.attributes','define','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash'];(function(_0x3809a2,_0x5aadbb){var _0x527af8=function(_0x3ac111){while(--_0x3ac111){_0x3809a2['push'](_0x3809a2['shift']());}};_0x527af8(++_0x5aadbb);}(_0x10e1,0x12b));var _0x110e=function(_0x2adbeb,_0x5581be){_0x2adbeb=_0x2adbeb-0x0;var _0x5e18a6=_0x10e1[_0x2adbeb];return _0x5e18a6;};'use strict';var _=require(_0x110e('0x0'));var util=require(_0x110e('0x1'));var logger=require(_0x110e('0x2'))(_0x110e('0x3'));var moment=require('moment');var BPromise=require(_0x110e('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x110e('0x5'));var rimraf=require(_0x110e('0x6'));var config=require(_0x110e('0x7'));var attributes=require(_0x110e('0x8'));module['exports']=function(_0x1eda8a,_0x29108b){return _0x1eda8a[_0x110e('0x9')](_0x110e('0xa'),attributes,{'tableName':_0x110e('0xb'),'paranoid':![],'indexes':[{'name':_0x110e('0xc'),'fields':[_0x110e('0xd'),_0x110e('0xe')],'unique':!![]}],'timestamps':!![]});};