880d9035697ef06494f21b8dc1477024ee23f139
[motion2.git] / server / api / disposition / disposition.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 _0xe4b4=['bluebird','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','define','Disposition','name_voice','name','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','name_fax','FaxAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','moment'];(function(_0xa148b7,_0x2f3eb2){var _0x51efd3=function(_0x34bcec){while(--_0x34bcec){_0xa148b7['push'](_0xa148b7['shift']());}};_0x51efd3(++_0x2f3eb2);}(_0xe4b4,0xbc));var _0x4e4b=function(_0x18e84d,_0x400654){_0x18e84d=_0x18e84d-0x0;var _0x154f7c=_0xe4b4[_0x18e84d];return _0x154f7c;};'use strict';var _=require(_0x4e4b('0x0'));var util=require(_0x4e4b('0x1'));var logger=require(_0x4e4b('0x2'))('api');var moment=require(_0x4e4b('0x3'));var BPromise=require(_0x4e4b('0x4'));var rp=require(_0x4e4b('0x5'));var fs=require('fs');var path=require(_0x4e4b('0x6'));var rimraf=require(_0x4e4b('0x7'));var config=require(_0x4e4b('0x8'));var attributes=require(_0x4e4b('0x9'));module[_0x4e4b('0xa')]=function(_0x5b0401,_0xf1787f){return _0x5b0401[_0x4e4b('0xb')](_0x4e4b('0xc'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x4e4b('0xd'),'fields':[_0x4e4b('0xe'),'ListId']},{'unique':!![],'name':_0x4e4b('0xf'),'fields':[_0x4e4b('0xe'),_0x4e4b('0x10')]},{'unique':!![],'name':_0x4e4b('0x11'),'fields':[_0x4e4b('0xe'),_0x4e4b('0x12')]},{'unique':!![],'name':_0x4e4b('0x13'),'fields':[_0x4e4b('0xe'),'SmsAccountId']},{'unique':!![],'name':_0x4e4b('0x14'),'fields':['name',_0x4e4b('0x15')]},{'unique':!![],'name':'name_openchannel','fields':[_0x4e4b('0xe'),'OpenchannelAccountId']},{'unique':!![],'name':_0x4e4b('0x16'),'fields':[_0x4e4b('0xe'),_0x4e4b('0x17')]}],'timestamps':!![]});};