Built motion from commit (unavailable).|2.5.2
[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 _0x588d=['lodash','api','moment','request-promise','path','rimraf','./userProfileResource.attributes','exports','define','user_profile_has_resources','resourceId'];(function(_0x3e112d,_0x2bb132){var _0x531c31=function(_0x1954bc){while(--_0x1954bc){_0x3e112d['push'](_0x3e112d['shift']());}};_0x531c31(++_0x2bb132);}(_0x588d,0xb0));var _0xd588=function(_0x188d0c,_0x346fc6){_0x188d0c=_0x188d0c-0x0;var _0x25ae17=_0x588d[_0x188d0c];return _0x25ae17;};'use strict';var _=require(_0xd588('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xd588('0x1'));var moment=require(_0xd588('0x2'));var BPromise=require('bluebird');var rp=require(_0xd588('0x3'));var fs=require('fs');var path=require(_0xd588('0x4'));var rimraf=require(_0xd588('0x5'));var config=require('../../config/environment');var attributes=require(_0xd588('0x6'));module[_0xd588('0x7')]=function(_0x5e3245,_0x304fc8){return _0x5e3245[_0xd588('0x8')]('UserProfileResource',attributes,{'tableName':_0xd588('0x9'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0xd588('0xa'),'sectionId']}],'timestamps':!![]});};