Built motion from commit (unavailable).|2.5.4
[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 _0x7df1=['bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','exports','define','user_profile_has_resources','resourceId','sectionId','api'];(function(_0x4064a5,_0x15662d){var _0xf7b4f0=function(_0x224d89){while(--_0x224d89){_0x4064a5['push'](_0x4064a5['shift']());}};_0xf7b4f0(++_0x15662d);}(_0x7df1,0x113));var _0x17df=function(_0x48411f,_0x2b840b){_0x48411f=_0x48411f-0x0;var _0x4282a9=_0x7df1[_0x48411f];return _0x4282a9;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x17df('0x0'));var moment=require('moment');var BPromise=require(_0x17df('0x1'));var rp=require(_0x17df('0x2'));var fs=require('fs');var path=require(_0x17df('0x3'));var rimraf=require(_0x17df('0x4'));var config=require(_0x17df('0x5'));var attributes=require(_0x17df('0x6'));module[_0x17df('0x7')]=function(_0x23863b,_0x31ce14){return _0x23863b[_0x17df('0x8')]('UserProfileResource',attributes,{'tableName':_0x17df('0x9'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x17df('0xa'),_0x17df('0xb')]}],'timestamps':!![]});};