cee363653f39def9686fac8842f1441f3de57ab6
[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 _0xb016=['../../config/environment','exports','cm_companies','lodash','util','moment','request-promise','path','rimraf'];(function(_0x1bb1e8,_0x5d7592){var _0x252e4e=function(_0x487c1e){while(--_0x487c1e){_0x1bb1e8['push'](_0x1bb1e8['shift']());}};_0x252e4e(++_0x5d7592);}(_0xb016,0x159));var _0x6b01=function(_0x3e7e09,_0x136297){_0x3e7e09=_0x3e7e09-0x0;var _0x3e6be0=_0xb016[_0x3e7e09];return _0x3e6be0;};'use strict';var _=require(_0x6b01('0x0'));var util=require(_0x6b01('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x6b01('0x2'));var BPromise=require('bluebird');var rp=require(_0x6b01('0x3'));var fs=require('fs');var path=require(_0x6b01('0x4'));var rimraf=require(_0x6b01('0x5'));var config=require(_0x6b01('0x6'));var attributes=require('./cmCompany.attributes');module[_0x6b01('0x7')]=function(_0x65407a,_0x192b2d){return _0x65407a['define']('CmCompany',attributes,{'tableName':_0x6b01('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};