c5bf9bec961ff7dbcd32d68db26ea81bbf69ef26
[motion2.git] / server / api / userProfile / userProfile.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 _0x74a3=['bluebird','path','rimraf','../../config/environment','./userProfile.attributes','exports','UserProfile','../../config/logger','api','moment'];(function(_0x5000b7,_0x53da62){var _0x28182b=function(_0x4bdcef){while(--_0x4bdcef){_0x5000b7['push'](_0x5000b7['shift']());}};_0x28182b(++_0x53da62);}(_0x74a3,0x165));var _0x374a=function(_0x4fc9e6,_0xc51915){_0x4fc9e6=_0x4fc9e6-0x0;var _0x551d28=_0x74a3[_0x4fc9e6];return _0x551d28;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x374a('0x0'))(_0x374a('0x1'));var moment=require(_0x374a('0x2'));var BPromise=require(_0x374a('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x374a('0x4'));var rimraf=require(_0x374a('0x5'));var config=require(_0x374a('0x6'));var attributes=require(_0x374a('0x7'));module[_0x374a('0x8')]=function(_0x5ed192,_0x298ca7){return _0x5ed192['define'](_0x374a('0x9'),attributes,{'tableName':'user_profiles','paranoid':![],'indexes':[],'timestamps':!![]});};