Built motion from commit f7863d46.|2.5.41
[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 _0xb421=['./cmCompany.attributes','exports','CmCompany','cm_companies','util','../../config/logger','api','moment','path','rimraf','../../config/environment'];(function(_0x4b8adf,_0x1017d1){var _0x173feb=function(_0x19cfc6){while(--_0x19cfc6){_0x4b8adf['push'](_0x4b8adf['shift']());}};_0x173feb(++_0x1017d1);}(_0xb421,0x138));var _0x1b42=function(_0x102ba5,_0x546607){_0x102ba5=_0x102ba5-0x0;var _0x5df6e8=_0xb421[_0x102ba5];return _0x5df6e8;};'use strict';var _=require('lodash');var util=require(_0x1b42('0x0'));var logger=require(_0x1b42('0x1'))(_0x1b42('0x2'));var moment=require(_0x1b42('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x1b42('0x4'));var rimraf=require(_0x1b42('0x5'));var config=require(_0x1b42('0x6'));var attributes=require(_0x1b42('0x7'));module[_0x1b42('0x8')]=function(_0x422423,_0x4a74c9){return _0x422423['define'](_0x1b42('0x9'),attributes,{'tableName':_0x1b42('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};