Built motion from commit (unavailable).|2.5.7
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0x40cb=['UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','define'];(function(_0x40ef3c,_0x5216b1){var _0x29d355=function(_0x27db07){while(--_0x27db07){_0x40ef3c['push'](_0x40ef3c['shift']());}};_0x29d355(++_0x5216b1);}(_0x40cb,0x1c7));var _0xb40c=function(_0x4f3793,_0xdd235d){_0x4f3793=_0x4f3793-0x0;var _0x5972b6=_0x40cb[_0x4f3793];return _0x5972b6;};'use strict';var _=require('lodash');var util=require(_0xb40c('0x0'));var logger=require(_0xb40c('0x1'))(_0xb40c('0x2'));var moment=require(_0xb40c('0x3'));var BPromise=require(_0xb40c('0x4'));var rp=require(_0xb40c('0x5'));var fs=require('fs');var path=require(_0xb40c('0x6'));var rimraf=require(_0xb40c('0x7'));var config=require(_0xb40c('0x8'));var attributes=require('./userProfileResource.attributes');module['exports']=function(_0x4d7468,_0x5aba0b){return _0x4d7468[_0xb40c('0x9')](_0xb40c('0xa'),attributes,{'tableName':_0xb40c('0xb'),'paranoid':![],'indexes':[{'name':_0xb40c('0xc'),'fields':[_0xb40c('0xd'),_0xb40c('0xe')]}],'timestamps':!![]});};