29f316a2a832c307f619bf84bff2284dc925ebd8
[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 _0xb31f=['rimraf','../../config/environment','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','sectionId','api','moment','bluebird','request-promise','path'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xb31f,0x19b));var _0xfb31=function(_0x291f8b,_0x3b5591){_0x291f8b=_0x291f8b-0x0;var _0x275171=_0xb31f[_0x291f8b];return _0x275171;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xfb31('0x0'));var moment=require(_0xfb31('0x1'));var BPromise=require(_0xfb31('0x2'));var rp=require(_0xfb31('0x3'));var fs=require('fs');var path=require(_0xfb31('0x4'));var rimraf=require(_0xfb31('0x5'));var config=require(_0xfb31('0x6'));var attributes=require('./userProfileResource.attributes');module['exports']=function(_0x55e93e,_0x25e023){return _0x55e93e[_0xfb31('0x7')](_0xfb31('0x8'),attributes,{'tableName':_0xfb31('0x9'),'paranoid':![],'indexes':[{'name':_0xfb31('0xa'),'fields':[_0xfb31('0xb'),_0xfb31('0xc')]}],'timestamps':!![]});};