Built motion from commit cafec4f3.|2.6.31
[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 _0x0f11=['./cmCompany.attributes','exports','define','CmCompany','cm_companies','lodash','util','../../config/logger','api','moment','path','../../config/environment'];(function(_0x52b7b9,_0x43ed4b){var _0x5b5d30=function(_0x4a5b9c){while(--_0x4a5b9c){_0x52b7b9['push'](_0x52b7b9['shift']());}};_0x5b5d30(++_0x43ed4b);}(_0x0f11,0xd1));var _0x10f1=function(_0x2e8e60,_0x2f4b7c){_0x2e8e60=_0x2e8e60-0x0;var _0x660c09=_0x0f11[_0x2e8e60];return _0x660c09;};'use strict';var _=require(_0x10f1('0x0'));var util=require(_0x10f1('0x1'));var logger=require(_0x10f1('0x2'))(_0x10f1('0x3'));var moment=require(_0x10f1('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x10f1('0x5'));var rimraf=require('rimraf');var config=require(_0x10f1('0x6'));var attributes=require(_0x10f1('0x7'));module[_0x10f1('0x8')]=function(_0x14a004,_0x321459){return _0x14a004[_0x10f1('0x9')](_0x10f1('0xa'),attributes,{'tableName':_0x10f1('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};