62f2aa323785d06324ac899cbbeab359393db4ee
[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 _0x5502=['WhatsappAccountId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','define','name_voice','name','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp'];(function(_0x426267,_0x422e6e){var _0x59e163=function(_0x1abaa3){while(--_0x1abaa3){_0x426267['push'](_0x426267['shift']());}};_0x59e163(++_0x422e6e);}(_0x5502,0x69));var _0x2550=function(_0xb1812a,_0x1f4c13){_0xb1812a=_0xb1812a-0x0;var _0x5ab66d=_0x5502[_0xb1812a];return _0x5ab66d;};'use strict';var _=require(_0x2550('0x0'));var util=require(_0x2550('0x1'));var logger=require(_0x2550('0x2'))(_0x2550('0x3'));var moment=require(_0x2550('0x4'));var BPromise=require(_0x2550('0x5'));var rp=require(_0x2550('0x6'));var fs=require('fs');var path=require(_0x2550('0x7'));var rimraf=require(_0x2550('0x8'));var config=require(_0x2550('0x9'));var attributes=require(_0x2550('0xa'));module[_0x2550('0xb')]=function(_0x5f76a9,_0x507b52){return _0x5f76a9[_0x2550('0xc')]('Disposition',attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x2550('0xd'),'fields':[_0x2550('0xe'),'ListId']},{'unique':!![],'name':_0x2550('0xf'),'fields':['name',_0x2550('0x10')]},{'unique':!![],'name':_0x2550('0x11'),'fields':[_0x2550('0xe'),_0x2550('0x12')]},{'unique':!![],'name':_0x2550('0x13'),'fields':[_0x2550('0xe'),'SmsAccountId']},{'unique':!![],'name':_0x2550('0x14'),'fields':[_0x2550('0xe'),_0x2550('0x15')]},{'unique':!![],'name':_0x2550('0x16'),'fields':['name',_0x2550('0x17')]},{'unique':!![],'name':_0x2550('0x18'),'fields':['name',_0x2550('0x19')]}],'timestamps':!![]});};