Built motion from commit (unavailable).|2.5.25
[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 _0xcfef=['util','../../config/logger','api','rimraf','../../config/environment','./disposition.attributes','exports','define','tools_dispositions','name_voice','name','name_chat','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','name_openchannel','name_whatsapp','WhatsappAccountId'];(function(_0x574ce3,_0x59eef4){var _0x3447a0=function(_0x27f8cb){while(--_0x27f8cb){_0x574ce3['push'](_0x574ce3['shift']());}};_0x3447a0(++_0x59eef4);}(_0xcfef,0x1cc));var _0xfcfe=function(_0x2ea90e,_0x374b0b){_0x2ea90e=_0x2ea90e-0x0;var _0x3743b3=_0xcfef[_0x2ea90e];return _0x3743b3;};'use strict';var _=require('lodash');var util=require(_0xfcfe('0x0'));var logger=require(_0xfcfe('0x1'))(_0xfcfe('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xfcfe('0x3'));var config=require(_0xfcfe('0x4'));var attributes=require(_0xfcfe('0x5'));module[_0xfcfe('0x6')]=function(_0x518bcd,_0x531494){return _0x518bcd[_0xfcfe('0x7')]('Disposition',attributes,{'tableName':_0xfcfe('0x8'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xfcfe('0x9'),'fields':[_0xfcfe('0xa'),'ListId']},{'unique':!![],'name':_0xfcfe('0xb'),'fields':['name','ChatWebsiteId']},{'unique':!![],'name':_0xfcfe('0xc'),'fields':['name',_0xfcfe('0xd')]},{'unique':!![],'name':_0xfcfe('0xe'),'fields':[_0xfcfe('0xa'),_0xfcfe('0xf')]},{'unique':!![],'name':_0xfcfe('0x10'),'fields':[_0xfcfe('0xa'),'FaxAccountId']},{'unique':!![],'name':_0xfcfe('0x11'),'fields':['name','OpenchannelAccountId']},{'unique':!![],'name':_0xfcfe('0x12'),'fields':['name',_0xfcfe('0x13')]}],'timestamps':!![]});};