Built motion from commit da24aabd.|2.6.20
[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 _0xc0c1=['rimraf','../../config/environment','./intDeskField.attributes','exports','define','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util','../../config/logger','moment','bluebird'];(function(_0x9f493f,_0x30c4d8){var _0x827c92=function(_0x35ff1f){while(--_0x35ff1f){_0x9f493f['push'](_0x9f493f['shift']());}};_0x827c92(++_0x30c4d8);}(_0xc0c1,0x109));var _0x1c0c=function(_0x47e780,_0x5dec2e){_0x47e780=_0x47e780-0x0;var _0x51d02c=_0xc0c1[_0x47e780];return _0x51d02c;};'use strict';var _=require(_0x1c0c('0x0'));var util=require(_0x1c0c('0x1'));var logger=require(_0x1c0c('0x2'))('api');var moment=require(_0x1c0c('0x3'));var BPromise=require(_0x1c0c('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x1c0c('0x5'));var config=require(_0x1c0c('0x6'));var attributes=require(_0x1c0c('0x7'));module[_0x1c0c('0x8')]=function(_0x2fad54,_0x3af1c2){return _0x2fad54[_0x1c0c('0x9')](_0x1c0c('0xa'),attributes,{'tableName':_0x1c0c('0xb'),'paranoid':![],'indexes':[{'name':_0x1c0c('0xc'),'fields':[_0x1c0c('0xd'),_0x1c0c('0xe')],'unique':!![]}],'timestamps':!![]});};