Built motion from commit 1fa89557.|2.6.10
[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 _0xbfab=['moment','bluebird','rimraf','../../config/environment','exports','define','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util','../../config/logger'];(function(_0xefd519,_0xc62635){var _0x4bb882=function(_0x37e0a1){while(--_0x37e0a1){_0xefd519['push'](_0xefd519['shift']());}};_0x4bb882(++_0xc62635);}(_0xbfab,0x89));var _0xbbfa=function(_0xae7c2f,_0xf31e04){_0xae7c2f=_0xae7c2f-0x0;var _0x5d7001=_0xbfab[_0xae7c2f];return _0x5d7001;};'use strict';var _=require(_0xbbfa('0x0'));var util=require(_0xbbfa('0x1'));var logger=require(_0xbbfa('0x2'))('api');var moment=require(_0xbbfa('0x3'));var BPromise=require(_0xbbfa('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xbbfa('0x5'));var config=require(_0xbbfa('0x6'));var attributes=require('./intDeskField.attributes');module[_0xbbfa('0x7')]=function(_0x393f88,_0x270581){return _0x393f88[_0xbbfa('0x8')](_0xbbfa('0x9'),attributes,{'tableName':_0xbbfa('0xa'),'paranoid':![],'indexes':[{'name':_0xbbfa('0xb'),'fields':[_0xbbfa('0xc'),_0xbbfa('0xd')],'unique':!![]}],'timestamps':!![]});};