Built motion from commit (unavailable).|2.5.12
[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 _0xe190=['rimraf','../../config/environment','./userProfileResource.attributes','define','UserProfileResource','compositeIndex','resourceId','sectionId','lodash','api','moment'];(function(_0x39ae79,_0x5d9473){var _0x29f34b=function(_0x16536e){while(--_0x16536e){_0x39ae79['push'](_0x39ae79['shift']());}};_0x29f34b(++_0x5d9473);}(_0xe190,0x168));var _0x0e19=function(_0x153990,_0x310bbe){_0x153990=_0x153990-0x0;var _0x40fbd3=_0xe190[_0x153990];return _0x40fbd3;};'use strict';var _=require(_0x0e19('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x0e19('0x1'));var moment=require(_0x0e19('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x0e19('0x3'));var config=require(_0x0e19('0x4'));var attributes=require(_0x0e19('0x5'));module['exports']=function(_0x3f71ce,_0x4354a6){return _0x3f71ce[_0x0e19('0x6')](_0x0e19('0x7'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x0e19('0x8'),'fields':[_0x0e19('0x9'),_0x0e19('0xa')]}],'timestamps':!![]});};