Built motion from commit 91ed41ac.|2.5.44
[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 _0x3f75=['api','moment','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','exports','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','../../config/logger'];(function(_0x5c0cba,_0x487be8){var _0x205323=function(_0x250a95){while(--_0x250a95){_0x5c0cba['push'](_0x5c0cba['shift']());}};_0x205323(++_0x487be8);}(_0x3f75,0x15e));var _0x53f7=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3f75[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x53f7('0x0'))(_0x53f7('0x1'));var moment=require(_0x53f7('0x2'));var BPromise=require('bluebird');var rp=require(_0x53f7('0x3'));var fs=require('fs');var path=require(_0x53f7('0x4'));var rimraf=require(_0x53f7('0x5'));var config=require(_0x53f7('0x6'));var attributes=require(_0x53f7('0x7'));module[_0x53f7('0x8')]=function(_0x29b55,_0x43897b){return _0x29b55['define'](_0x53f7('0x9'),attributes,{'tableName':_0x53f7('0xa'),'paranoid':![],'indexes':[{'name':_0x53f7('0xb'),'fields':[_0x53f7('0xc'),'sectionId']}],'timestamps':!![]});};