4cf7764f9b5ef16e8b19ce37b9c9d9ad855b63dd
[motion2.git] / server / api / userProfileSection / userProfileSection.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 _0xb725=['UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','../../config/logger','api','moment','rimraf','../../config/environment','./userProfileSection.attributes','exports','define'];(function(_0x3e444a,_0x2f02ff){var _0x341dae=function(_0x2f3ead){while(--_0x2f3ead){_0x3e444a['push'](_0x3e444a['shift']());}};_0x341dae(++_0x2f02ff);}(_0xb725,0xa1));var _0x5b72=function(_0xd292ef,_0xaa1ab3){_0xd292ef=_0xd292ef-0x0;var _0x27420f=_0xb725[_0xd292ef];return _0x27420f;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x5b72('0x0'))(_0x5b72('0x1'));var moment=require(_0x5b72('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x5b72('0x3'));var config=require(_0x5b72('0x4'));var attributes=require(_0x5b72('0x5'));module[_0x5b72('0x6')]=function(_0x4877b7,_0x1ab712){return _0x4877b7[_0x5b72('0x7')](_0x5b72('0x8'),attributes,{'tableName':_0x5b72('0x9'),'paranoid':![],'indexes':[{'name':_0x5b72('0xa'),'fields':[_0x5b72('0xb'),_0x5b72('0xc')]}],'timestamps':!![]});};