Built motion from commit (unavailable).|2.5.1
[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 _0x7633=['./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','../../config/logger','api','request-promise','path','rimraf','../../config/environment'];(function(_0x44dba1,_0x270ad5){var _0x2fbd3f=function(_0x5e0865){while(--_0x5e0865){_0x44dba1['push'](_0x44dba1['shift']());}};_0x2fbd3f(++_0x270ad5);}(_0x7633,0xe4));var _0x3763=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x7633[_0x397e5f];return _0x5302b8;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x3763('0x0'))(_0x3763('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x3763('0x2'));var fs=require('fs');var path=require(_0x3763('0x3'));var rimraf=require(_0x3763('0x4'));var config=require(_0x3763('0x5'));var attributes=require(_0x3763('0x6'));module[_0x3763('0x7')]=function(_0x2b461d,_0x26f689){return _0x2b461d[_0x3763('0x8')](_0x3763('0x9'),attributes,{'tableName':_0x3763('0xa'),'paranoid':![],'indexes':[{'name':_0x3763('0xb'),'fields':[_0x3763('0xc'),'sectionId']}],'timestamps':!![]});};