4d9cd9be08e8f7a93a187e174427ca2748add8c5
[motion2.git] / server / api / cmHopper / cmHopper.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 _0x3ef2=['moment','bluebird','request-promise','path','../../config/environment','./cmHopper.attributes','exports','define','scheduledat','phone','priority','lodash','util','api'];(function(_0x336ce6,_0x7fd6b){var _0x557559=function(_0x28ee97){while(--_0x28ee97){_0x336ce6['push'](_0x336ce6['shift']());}};_0x557559(++_0x7fd6b);}(_0x3ef2,0x115));var _0x23ef=function(_0x2e23fd,_0xa7571f){_0x2e23fd=_0x2e23fd-0x0;var _0xa04920=_0x3ef2[_0x2e23fd];return _0xa04920;};'use strict';var _=require(_0x23ef('0x0'));var util=require(_0x23ef('0x1'));var logger=require('../../config/logger')(_0x23ef('0x2'));var moment=require(_0x23ef('0x3'));var BPromise=require(_0x23ef('0x4'));var rp=require(_0x23ef('0x5'));var fs=require('fs');var path=require(_0x23ef('0x6'));var rimraf=require('rimraf');var config=require(_0x23ef('0x7'));var attributes=require(_0x23ef('0x8'));module[_0x23ef('0x9')]=function(_0x3bd3d6,_0x400164){return _0x3bd3d6[_0x23ef('0xa')]('CmHopper',attributes,{'tableName':'cm_hopper','paranoid':![],'indexes':[{'name':_0x23ef('0xb'),'fields':['scheduledat']},{'name':'phone','fields':[_0x23ef('0xc')]},{'name':_0x23ef('0xd'),'fields':[_0x23ef('0xd')]}],'timestamps':!![]});};