09eba4806fa6bae16e8e171297fe780c571a4689
[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 _0xc481=['define','user_profile_has_resources','compositeIndex','resourceId','util','../../config/logger','bluebird','request-promise','path','rimraf','./userProfileResource.attributes'];(function(_0x3839f1,_0x2f3f72){var _0x1e3f7e=function(_0x18f24a){while(--_0x18f24a){_0x3839f1['push'](_0x3839f1['shift']());}};_0x1e3f7e(++_0x2f3f72);}(_0xc481,0x138));var _0x1c48=function(_0x46e363,_0x45d7e2){_0x46e363=_0x46e363-0x0;var _0x3fb059=_0xc481[_0x46e363];return _0x3fb059;};'use strict';var _=require('lodash');var util=require(_0x1c48('0x0'));var logger=require(_0x1c48('0x1'))('api');var moment=require('moment');var BPromise=require(_0x1c48('0x2'));var rp=require(_0x1c48('0x3'));var fs=require('fs');var path=require(_0x1c48('0x4'));var rimraf=require(_0x1c48('0x5'));var config=require('../../config/environment');var attributes=require(_0x1c48('0x6'));module['exports']=function(_0x19151f,_0x915f51){return _0x19151f[_0x1c48('0x7')]('UserProfileResource',attributes,{'tableName':_0x1c48('0x8'),'paranoid':![],'indexes':[{'name':_0x1c48('0x9'),'fields':[_0x1c48('0xa'),'sectionId']}],'timestamps':!![]});};