1444ae9d85cf793b10904ecade8d1ddfe5a33ae6
[motion2.git] / server / api / cmCompany / cmCompany.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 _0x5f13=['lodash','util','../../config/logger','api','moment','rimraf','../../config/environment','./cmCompany.attributes','exports','define','CmCompany','cm_companies'];(function(_0x432286,_0xc7f906){var _0x475b6e=function(_0x5974c3){while(--_0x5974c3){_0x432286['push'](_0x432286['shift']());}};_0x475b6e(++_0xc7f906);}(_0x5f13,0x1a4));var _0x35f1=function(_0x4243a3,_0x447337){_0x4243a3=_0x4243a3-0x0;var _0x1b2a33=_0x5f13[_0x4243a3];return _0x1b2a33;};'use strict';var _=require(_0x35f1('0x0'));var util=require(_0x35f1('0x1'));var logger=require(_0x35f1('0x2'))(_0x35f1('0x3'));var moment=require(_0x35f1('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x35f1('0x5'));var config=require(_0x35f1('0x6'));var attributes=require(_0x35f1('0x7'));module[_0x35f1('0x8')]=function(_0x31142f,_0x5b8d16){return _0x31142f[_0x35f1('0x9')](_0x35f1('0xa'),attributes,{'tableName':_0x35f1('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};