Built motion from commit (unavailable).|2.5.13
[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 _0x7337=['path','../../config/environment','exports','define','UserProfile','lodash','util','api','bluebird','request-promise'];(function(_0x140920,_0x5464db){var _0x436ed0=function(_0x56b784){while(--_0x56b784){_0x140920['push'](_0x140920['shift']());}};_0x436ed0(++_0x5464db);}(_0x7337,0xcd));var _0x7733=function(_0x33bac5,_0x4eacc6){_0x33bac5=_0x33bac5-0x0;var _0x5a8313=_0x7337[_0x33bac5];return _0x5a8313;};'use strict';var _=require(_0x7733('0x0'));var util=require(_0x7733('0x1'));var logger=require('../../config/logger')(_0x7733('0x2'));var moment=require('moment');var BPromise=require(_0x7733('0x3'));var rp=require(_0x7733('0x4'));var fs=require('fs');var path=require(_0x7733('0x5'));var rimraf=require('rimraf');var config=require(_0x7733('0x6'));var attributes=require('./userProfile.attributes');module[_0x7733('0x7')]=function(_0x19dbf3,_0xec5998){return _0x19dbf3[_0x7733('0x8')](_0x7733('0x9'),attributes,{'tableName':'user_profiles','paranoid':![],'indexes':[],'timestamps':!![]});};