Built motion from commit (unavailable).|2.4.0
[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 _0x0f4e=['api','path','rimraf','../../config/environment','exports','define','user_profiles','lodash','../../config/logger'];(function(_0x37bc10,_0x528f6f){var _0x10fff1=function(_0x295057){while(--_0x295057){_0x37bc10['push'](_0x37bc10['shift']());}};_0x10fff1(++_0x528f6f);}(_0x0f4e,0x166));var _0xe0f4=function(_0x14634f,_0x5ed190){_0x14634f=_0x14634f-0x0;var _0x5021f9=_0x0f4e[_0x14634f];return _0x5021f9;};'use strict';var _=require(_0xe0f4('0x0'));var util=require('util');var logger=require(_0xe0f4('0x1'))(_0xe0f4('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xe0f4('0x3'));var rimraf=require(_0xe0f4('0x4'));var config=require(_0xe0f4('0x5'));var attributes=require('./userProfile.attributes');module[_0xe0f4('0x6')]=function(_0xdfedc8,_0xba1629){return _0xdfedc8[_0xe0f4('0x7')]('UserProfile',attributes,{'tableName':_0xe0f4('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};